initialize path before calling super() (#14203)

This commit is contained in:
Josh Hawkins 2024-10-07 16:17:57 -05:00 committed by GitHub
parent 24ac9f3e5a
commit 6ebad84160
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,10 +6,9 @@ from playhouse.sqliteq import SqliteQueueDatabase
class SqliteVecQueueDatabase(SqliteQueueDatabase):
def __init__(self, *args, load_vec_extension: bool = False, **kwargs) -> None:
self.load_vec_extension: bool = load_vec_extension
super().__init__(*args, **kwargs)
# no extension necessary, sqlite will load correctly for each platform
self.sqlite_vec_path = "/usr/local/lib/vec0"
super().__init__(*args, **kwargs)
def _connect(self, *args, **kwargs) -> sqlite3.Connection:
conn: sqlite3.Connection = super()._connect(*args, **kwargs)