Map dict to TEXT

Thanks, @minaeid90
This commit is contained in:
Mina Rizk 2021-11-15 02:27:40 +02:00 • committed by GitHub
commit 271b894af5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,6 +167,7 @@ COLUMN_TYPE_MAPPING = {
int: "INTEGER", int: "INTEGER",
bool: "INTEGER", bool: "INTEGER",
str: "TEXT", str: "TEXT",
dict: "TEXT",
bytes.__class__: "BLOB", bytes.__class__: "BLOB",
bytes: "BLOB", bytes: "BLOB",
memoryview: "BLOB", memoryview: "BLOB",
@ -185,6 +186,7 @@ COLUMN_TYPE_MAPPING = {
"integer": "INTEGER", "integer": "INTEGER",
"float": "FLOAT", "float": "FLOAT",
"blob": "BLOB", "blob": "BLOB",
} }
# If numpy is available, add more types # If numpy is available, add more types
if np: if np: