Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/swarm
/ get_connection
Function
get_connection
examples/personal_shopper/database.py:7–11 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
6
7
def
get_connection():
8
global conn
9
if
conn is None:
10
conn = sqlite3.connect(
"application.db"
)
11
return
conn
12
13
14
def
create_database():
Callers
4
create_database
Function · 0.85
add_user
Function · 0.85
add_purchase
Function · 0.85
add_product
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…