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

Method __init__

database-lib/database_lib/main.py:108–114  ·  view source on GitHub ↗
(self, database: str, zstd_enabled: bool = False)

Source from the content-addressed store, hash-verified

106 __slots__ = ("connection", "cursor", "database", "lock", "zstd_enabled")
107
108 def __init__(self, database: str, zstd_enabled: bool = False):
109 self.database = database
110 self.connection = None
111 self.cursor = None
112 self.lock = threading.Lock()
113 self.zstd_enabled = zstd_enabled
114 self.connect()
115
116 def connect(self):
117 self.connection = sqlite3.connect(self.database, timeout=10.0)

Callers

nothing calls this directly

Calls 1

connectMethod · 0.95

Tested by

no test coverage detected