mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-28 12:54:15 +02:00
Revert "Better help for sqlite-utils create-table"
This reverts commit b3d11f5225.
This commit is contained in:
parent
b3d11f5225
commit
50a4fb722d
2 changed files with 1 additions and 11 deletions
0
docs/dogs.db
Normal file
0
docs/dogs.db
Normal file
|
|
@ -922,17 +922,7 @@ def upsert(
|
||||||
def create_table(
|
def create_table(
|
||||||
path, table, columns, pk, not_null, default, fk, ignore, replace, load_extension
|
path, table, columns, pk, not_null, default, fk, ignore, replace, load_extension
|
||||||
):
|
):
|
||||||
"""
|
"Add a table with the specified columns"
|
||||||
Add a table with the specified columns. Columns should be specified using
|
|
||||||
name, type pairs, for example:
|
|
||||||
|
|
||||||
\b
|
|
||||||
sqlite-utils create-table my.db people \\
|
|
||||||
id integer \\
|
|
||||||
name text \\
|
|
||||||
height float \\
|
|
||||||
photo blob --pk id
|
|
||||||
"""
|
|
||||||
db = sqlite_utils.Database(path)
|
db = sqlite_utils.Database(path)
|
||||||
_load_extensions(db, load_extension)
|
_load_extensions(db, load_extension)
|
||||||
if len(columns) % 2 == 1:
|
if len(columns) % 2 == 1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue