mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-25 18:34:32 +02:00
Added db[table].rows iterator
This commit is contained in:
parent
62e1edeaf6
commit
3095f2e671
3 changed files with 26 additions and 0 deletions
|
|
@ -46,6 +46,12 @@ def test_columns(existing_db):
|
|||
]
|
||||
|
||||
|
||||
def test_rows(existing_db):
|
||||
assert [{"text": "one"}, {"text": "two"}, {"text": "three"}] == list(
|
||||
existing_db["foo"].rows
|
||||
)
|
||||
|
||||
|
||||
def test_schema(existing_db):
|
||||
assert "CREATE TABLE foo (text TEXT)" == existing_db["foo"].schema
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue