Add dict type to be mapped as TEXT in sqllite

the library deal with postgres type jsob as dictionary, add dict type as a TEXT for mapping to sqlite>
This commit is contained in:
Mina Rizk 2021-08-25 22:52:33 +02:00 committed by GitHub
commit 69619f68c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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