Update create-table --help to mention real

This commit is contained in:
Simon Willison 2026-07-07 17:56:57 -07:00
commit fa5d66bf53
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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)