Method
__init__
(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
Tested by
no test coverage detected