docs(storage): report controlled cost and verified consistency guarantees
This commit is contained in:
@@ -30,8 +30,10 @@ s=ObjectStore(); d=Database(url=secret('DATABASE_URL'),size=2); d.open()
|
||||
|
||||
|
||||
def inside(code):
|
||||
containers = compose("ps", "-q", "api").split()
|
||||
assert containers, "No running API in this project"
|
||||
value = command(
|
||||
["docker", "compose", "exec", "-T", "api", "python", "-"],
|
||||
["docker", "exec", "-i", containers[0], "python", "-"],
|
||||
input=PREFIX + code + "\ns.close(); d.close()\n",
|
||||
)
|
||||
return json.loads(value)
|
||||
|
||||
Reference in New Issue
Block a user