MCPcopy Create free account
hub / github.com/Freedium-cfd/web / init_db

Method init_db

database-lib/database_lib/main.py:166–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

164 self.connection.execute("PRAGMA auto_vacuum=full")
165
166 def init_db(self):
167 self.ensure_connection()
168 with self.connection:
169 self.cursor.execute(
170 "CREATE TABLE IF NOT EXISTS cache (key TEXT PRIMARY KEY, value TEXT)"
171 )
172 # self.cursor.execute("CREATE INDEX IF NOT EXISTS idx_key ON cache (key)")
173
174 def pull(self, key: str) -> Union[CacheResponse, None]:
175 self.ensure_connection()

Callers 3

mainFunction · 0.95
setUpClassMethod · 0.45
__init__.pyFile · 0.45

Calls 1

ensure_connectionMethod · 0.95

Tested by 2

mainFunction · 0.76
setUpClassMethod · 0.36