MCPcopy
hub / github.com/benoitc/gunicorn / ensure

Method ensure

gunicorn/dirty/stash.py:268–277  ·  view source on GitHub ↗

Ensure a table exists (create if not exists). This is idempotent - calling it multiple times is safe. Args: table: Table name

(self, table)

Source from the content-addressed store, hash-verified

266 return self._execute(STASH_OP_INFO, table)
267
268 def ensure(self, table):
269 """
270 Ensure a table exists (create if not exists).
271
272 This is idempotent - calling it multiple times is safe.
273
274 Args:
275 table: Table name
276 """
277 self._execute(STASH_OP_ENSURE, table)
278
279 def exists(self, table, key=None):
280 """

Callers 1

ensureFunction · 0.80

Calls 1

_executeMethod · 0.95

Tested by

no test coverage detected