Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
47
def
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
55
def
drop_tables(conn):
Callers
1
connection
Function · 0.90
Calls
2
db_connection
Function · 0.85
execute
Method · 0.45
Tested by
1
connection
Function · 0.72