mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-11 02:54:23 +02:00
db.schema and 'sqlite-utils schema' command, closes #268
This commit is contained in:
parent
9696abfabf
commit
0d2e4f49f3
6 changed files with 90 additions and 2 deletions
|
|
@ -62,8 +62,12 @@ def test_columns(existing_db):
|
|||
]
|
||||
|
||||
|
||||
def test_schema(existing_db):
|
||||
assert "CREATE TABLE foo (text TEXT)" == existing_db["foo"].schema
|
||||
def test_table_schema(existing_db):
|
||||
assert existing_db["foo"].schema == "CREATE TABLE foo (text TEXT)"
|
||||
|
||||
|
||||
def test_database_schema(existing_db):
|
||||
assert existing_db.schema == "CREATE TABLE foo (text TEXT);"
|
||||
|
||||
|
||||
def test_table_repr(fresh_db):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue