From 271b894af52eb6437ae6cd84eba9867ad8dd43f6 Mon Sep 17 00:00:00 2001 From: Mina Rizk Date: Mon, 15 Nov 2021 02:27:40 +0200 Subject: [PATCH] Map dict to TEXT Thanks, @minaeid90 --- sqlite_utils/db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index 1e75861..591a286 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -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: