Skip to content

Commit 10d3f4f

Browse files
committed
fix: add support for JSON and JSONB data types in SQLite connector
1 parent df1ea55 commit 10d3f4f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

adminforth/dataConnectors/sqlite.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ class SQLiteConnector extends AdminForthBaseConnector implements IAdminForthData
101101
const [precision, scale] = baseType.match(/\d+/g);
102102
field.precision = parseInt(precision);
103103
field.scale = parseInt(scale);
104+
} else if (baseType == 'json' || baseType == 'jsonb') {
105+
field.type = AdminForthDataTypes.JSON;
106+
field._underlineType = baseType;
104107
} else if (baseType === 'decimal') {
105108
field.type = AdminForthDataTypes.DECIMAL;
106109
field._underlineType = 'decimal';

0 commit comments

Comments
 (0)