mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-09 18:14:09 +02:00
Update create-table --help to mention real
This commit is contained in:
parent
619770bf42
commit
fa5d66bf53
2 changed files with 4 additions and 4 deletions
|
|
@ -930,10 +930,10 @@ See :ref:`cli_create_table`.
|
||||||
sqlite-utils create-table my.db people \
|
sqlite-utils create-table my.db people \
|
||||||
id integer \
|
id integer \
|
||||||
name text \
|
name text \
|
||||||
height float \
|
height real \
|
||||||
photo blob --pk id
|
photo blob --pk id
|
||||||
|
|
||||||
Valid column types are text, integer, float and blob.
|
Valid column types are text, integer, real, float and blob.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--pk TEXT Column to use as primary key
|
--pk TEXT Column to use as primary key
|
||||||
|
|
|
||||||
|
|
@ -1634,10 +1634,10 @@ def create_table(
|
||||||
sqlite-utils create-table my.db people \\
|
sqlite-utils create-table my.db people \\
|
||||||
id integer \\
|
id integer \\
|
||||||
name text \\
|
name text \\
|
||||||
height float \\
|
height real \\
|
||||||
photo blob --pk id
|
photo blob --pk id
|
||||||
|
|
||||||
Valid column types are text, integer, float and blob.
|
Valid column types are text, integer, real, float and blob.
|
||||||
"""
|
"""
|
||||||
db = sqlite_utils.Database(path)
|
db = sqlite_utils.Database(path)
|
||||||
_register_db_for_cleanup(db)
|
_register_db_for_cleanup(db)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue