MCPcopy Index your code
hub / github.com/dbcli/pgcli / create_db

Function create_db

tests/utils.py:47–52  ·  view source on GitHub ↗
(dbname)

Source from the content-addressed store, hash-verified

45
46
47def create_db(dbname):
48 with db_connection().cursor() as cur:
49 try:
50 cur.execute("""CREATE DATABASE _test_db""")
51 except Exception:
52 pass
53
54
55def drop_tables(conn):

Callers 1

connectionFunction · 0.90

Calls 2

db_connectionFunction · 0.85
executeMethod · 0.45

Tested by 1

connectionFunction · 0.72