mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-03 07:54:22 +02:00
db.sqlite_version property and fix for deterministic=True on SQLite 3.8.3
Closes #408
This commit is contained in:
parent
521921b849
commit
d25cdd37a3
4 changed files with 47 additions and 3 deletions
|
|
@ -16,3 +16,12 @@ def test_memory_name():
|
|||
db2 = Database(memory_name="shared")
|
||||
db1["dogs"].insert({"name": "Cleo"})
|
||||
assert list(db2["dogs"].rows) == [{"name": "Cleo"}]
|
||||
|
||||
|
||||
def test_sqlite_version():
|
||||
db = Database(memory=True)
|
||||
version = db.sqlite_version
|
||||
assert isinstance(version, tuple)
|
||||
as_string = ".".join(map(str, version))
|
||||
actual = next(db.query("select sqlite_version() as v"))["v"]
|
||||
assert actual == as_string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue