MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / create_or_open

Function create_or_open

files/dataset_scripts/convert2sqlite.py:65–73  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

63
64
65def create_or_open(name: str):
66 exists = os.path.exists(name)
67 conn = sqlite3.connect(name)
68 if not exists:
69 initialize_schema(conn)
70 else:
71 load_existing(conn.cursor())
72
73 return conn
74
75
76def load_existing(cursor):

Callers 1

mainFunction · 0.85

Calls 3

initialize_schemaFunction · 0.85
load_existingFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected