mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-27 04:14:30 +02:00
Clarify column types in create-table help
This commit is contained in:
parent
965ca0d5f5
commit
ebe504ab21
2 changed files with 4 additions and 0 deletions
|
|
@ -886,6 +886,8 @@ See :ref:`cli_create_table`.
|
||||||
height float \
|
height float \
|
||||||
photo blob --pk id
|
photo blob --pk id
|
||||||
|
|
||||||
|
Valid column types are text, integer, float and blob.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--pk TEXT Column to use as primary key
|
--pk TEXT Column to use as primary key
|
||||||
--not-null TEXT Columns that should be created as NOT NULL
|
--not-null TEXT Columns that should be created as NOT NULL
|
||||||
|
|
|
||||||
|
|
@ -1477,6 +1477,8 @@ def create_table(
|
||||||
name text \\
|
name text \\
|
||||||
height float \\
|
height float \\
|
||||||
photo blob --pk id
|
photo blob --pk id
|
||||||
|
|
||||||
|
Valid column types are text, integer, float and blob.
|
||||||
"""
|
"""
|
||||||
db = sqlite_utils.Database(path)
|
db = sqlite_utils.Database(path)
|
||||||
_load_extensions(db, load_extension)
|
_load_extensions(db, load_extension)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue