mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +02:00
13 lines
249 B
Python
13 lines
249 B
Python
|
|
import pytest
|
||
|
|
import sqlite3
|
||
|
|
|
||
|
|
|
||
|
|
@pytest.fixture()
|
||
|
|
def db():
|
||
|
|
db = sqlite3.connect(":memory:")
|
||
|
|
db.row_factory = sqlite3.Row
|
||
|
|
db.enable_load_extension(True)
|
||
|
|
db.load_extension("dist/vec0")
|
||
|
|
db.enable_load_extension(False)
|
||
|
|
return db
|