str, int, bytes aliases for column types, closes #606

This commit is contained in:
Simon Willison 2023-12-06 10:49:21 -08:00
commit 88bd372205
5 changed files with 32 additions and 3 deletions

View file

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