mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-13 03:54:23 +02:00
Fix for REAL columns by CSV --detect-types
Refs https://github.com/simonw/sqlite-utils/issues/645#issuecomment-3568947189
This commit is contained in:
parent
40cb853cba
commit
3b18b9e149
4 changed files with 26 additions and 4 deletions
|
|
@ -419,7 +419,7 @@ def dump(path, load_extension):
|
|||
@click.argument(
|
||||
"col_type",
|
||||
type=click.Choice(
|
||||
["integer", "int", "float", "text", "str", "blob", "bytes"],
|
||||
["integer", "int", "float", "real", "text", "str", "blob", "bytes"],
|
||||
case_sensitive=False,
|
||||
),
|
||||
required=False,
|
||||
|
|
|
|||
|
|
@ -216,7 +216,7 @@ COLUMN_TYPE_MAPPING = {
|
|||
"str": "TEXT",
|
||||
"integer": "INTEGER",
|
||||
"int": "INTEGER",
|
||||
"float": "FLOAT",
|
||||
"float": "REAL",
|
||||
"real": "REAL",
|
||||
"blob": "BLOB",
|
||||
"bytes": "BLOB",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue