Clarify column types in create-table help

This commit is contained in:
Simon Willison 2022-11-29 09:03:35 -08:00
commit ebe504ab21
2 changed files with 4 additions and 0 deletions

View file

@ -886,6 +886,8 @@ See :ref:`cli_create_table`.
height float \
photo blob --pk id
Valid column types are text, integer, float and blob.
Options:
--pk TEXT Column to use as primary key
--not-null TEXT Columns that should be created as NOT NULL

View file

@ -1477,6 +1477,8 @@ def create_table(
name text \\
height float \\
photo blob --pk id
Valid column types are text, integer, float and blob.
"""
db = sqlite_utils.Database(path)
_load_extensions(db, load_extension)