mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-04 00:14:11 +02:00
Added vacuum to CLI and Python API
This commit is contained in:
parent
fd5829b27d
commit
231224ba1a
6 changed files with 40 additions and 0 deletions
|
|
@ -176,3 +176,8 @@ def test_create_view(fresh_db):
|
|||
fresh_db.create_view("bar", "select bar from data")
|
||||
rows = fresh_db.conn.execute("select * from bar").fetchall()
|
||||
assert [("bar",)] == rows
|
||||
|
||||
|
||||
def test_vacuum(fresh_db):
|
||||
fresh_db["data"].insert({"foo": "foo", "bar": "bar"})
|
||||
fresh_db.vacuum()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue