mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-29 04:14:32 +02:00
str, int, bytes aliases for column types, closes #606
This commit is contained in:
parent
9286c1ba43
commit
88bd372205
5 changed files with 32 additions and 3 deletions
|
|
@ -197,9 +197,12 @@ COLUMN_TYPE_MAPPING = {
|
|||
"FLOAT": "FLOAT",
|
||||
"BLOB": "BLOB",
|
||||
"text": "TEXT",
|
||||
"str": "TEXT",
|
||||
"integer": "INTEGER",
|
||||
"int": "INTEGER",
|
||||
"float": "FLOAT",
|
||||
"blob": "BLOB",
|
||||
"bytes": "BLOB",
|
||||
}
|
||||
# If numpy is available, add more types
|
||||
if np:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue