mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Map dict to TEXT
Thanks, @minaeid90
This commit is contained in:
parent
bc4c42d688
commit
271b894af5
1 changed files with 2 additions and 0 deletions
|
|
@ -167,6 +167,7 @@ COLUMN_TYPE_MAPPING = {
|
|||
int: "INTEGER",
|
||||
bool: "INTEGER",
|
||||
str: "TEXT",
|
||||
dict: "TEXT",
|
||||
bytes.__class__: "BLOB",
|
||||
bytes: "BLOB",
|
||||
memoryview: "BLOB",
|
||||
|
|
@ -185,6 +186,7 @@ COLUMN_TYPE_MAPPING = {
|
|||
"integer": "INTEGER",
|
||||
"float": "FLOAT",
|
||||
"blob": "BLOB",
|
||||
|
||||
}
|
||||
# If numpy is available, add more types
|
||||
if np:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue