Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/psycopg/psycopg
/ connect
Method
connect
tests/dbapi20_tpc.py:16–18 ·
view source on GitHub ↗
Make a database connection.
(self)
Source
from the content-addressed store, hash-verified
14
driver: Any = None
15
16
def
connect(self):
17
""
"Make a database connection."
""
18
raise
NotImplementedError
19
20
_last_id = 0
21
_global_id_prefix =
"dbapi20_tpc:"
Callers
15
test_xid
Method · 0.95
test_tpc_begin
Method · 0.95
test_tpc_commit_without_prepare
Method · 0.95
test_tpc_rollback_without_prepare
Method · 0.95
test_tpc_commit_with_prepare
Method · 0.95
test_tpc_rollback_with_prepare
Method · 0.95
test_tpc_begin_in_transaction_fails
Method · 0.95
test_tpc_begin_in_tpc_transaction_fails
Method · 0.95
test_commit_in_tpc_fails
Method · 0.95
test_rollback_in_tpc_fails
Method · 0.95
main
Function · 0.45
test_connect
Function · 0.45
Calls
no outgoing calls
Tested by
15
test_xid
Method · 0.76
test_tpc_begin
Method · 0.76
test_tpc_commit_without_prepare
Method · 0.76
test_tpc_rollback_without_prepare
Method · 0.76
test_tpc_commit_with_prepare
Method · 0.76
test_tpc_rollback_with_prepare
Method · 0.76
test_tpc_begin_in_transaction_fails
Method · 0.76
test_tpc_begin_in_tpc_transaction_fails
Method · 0.76
test_commit_in_tpc_fails
Method · 0.76
test_rollback_in_tpc_fails
Method · 0.76
test_connect
Function · 0.36
test_connect_bad
Function · 0.36