MCPcopy Create free account
hub / github.com/dbcli/mycli / create_db

Function create_db

test/utils.py:265–271  ·  view source on GitHub ↗
(dbname)

Source from the content-addressed store, hash-verified

263
264
265def create_db(dbname):
266 with db_connection().cursor() as cur:
267 try:
268 cur.execute(f"DROP DATABASE IF EXISTS {TEST_DATABASE}")
269 cur.execute(f"CREATE DATABASE {TEST_DATABASE}")
270 except Exception:
271 pass
272
273
274def run(executor, sql, rows_as_list=True):

Callers

nothing calls this directly

Calls 3

db_connectionFunction · 0.85
cursorMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected