@atscript/db-sqlite 0.1.103 → 0.1.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -722,6 +722,7 @@ var SqliteAdapter = class SqliteAdapter extends _atscript_db.BaseDbAdapter {
|
|
|
722
722
|
this.driver.exec(ddl);
|
|
723
723
|
}
|
|
724
724
|
typeMapper(field) {
|
|
725
|
+
if (field.encrypted) return "TEXT";
|
|
725
726
|
if (this._vectorFields.has(field.path)) return this._detectVectorSupport() ? "BLOB" : "TEXT";
|
|
726
727
|
if (field.isPrimaryKey && (field.designType === "number" || field.designType === "integer")) return "INTEGER";
|
|
727
728
|
return sqliteTypeFromDesignType(field.designType);
|
|
@@ -751,7 +752,11 @@ var SqliteAdapter = class SqliteAdapter extends _atscript_db.BaseDbAdapter {
|
|
|
751
752
|
this._log(sql);
|
|
752
753
|
this.driver.exec(sql);
|
|
753
754
|
},
|
|
754
|
-
shouldSkipType: (type) => type === "fulltext"
|
|
755
|
+
shouldSkipType: (type) => type === "fulltext",
|
|
756
|
+
warnUnsupportedTypes: {
|
|
757
|
+
adapter: "sqlite",
|
|
758
|
+
types: ["geo"]
|
|
759
|
+
}
|
|
755
760
|
});
|
|
756
761
|
this._syncFtsIndexes(tableName);
|
|
757
762
|
this._syncVecIndexes(tableName);
|
package/dist/index.mjs
CHANGED
|
@@ -721,6 +721,7 @@ var SqliteAdapter = class SqliteAdapter extends BaseDbAdapter {
|
|
|
721
721
|
this.driver.exec(ddl);
|
|
722
722
|
}
|
|
723
723
|
typeMapper(field) {
|
|
724
|
+
if (field.encrypted) return "TEXT";
|
|
724
725
|
if (this._vectorFields.has(field.path)) return this._detectVectorSupport() ? "BLOB" : "TEXT";
|
|
725
726
|
if (field.isPrimaryKey && (field.designType === "number" || field.designType === "integer")) return "INTEGER";
|
|
726
727
|
return sqliteTypeFromDesignType(field.designType);
|
|
@@ -750,7 +751,11 @@ var SqliteAdapter = class SqliteAdapter extends BaseDbAdapter {
|
|
|
750
751
|
this._log(sql);
|
|
751
752
|
this.driver.exec(sql);
|
|
752
753
|
},
|
|
753
|
-
shouldSkipType: (type) => type === "fulltext"
|
|
754
|
+
shouldSkipType: (type) => type === "fulltext",
|
|
755
|
+
warnUnsupportedTypes: {
|
|
756
|
+
adapter: "sqlite",
|
|
757
|
+
types: ["geo"]
|
|
758
|
+
}
|
|
754
759
|
});
|
|
755
760
|
this._syncFtsIndexes(tableName);
|
|
756
761
|
this._syncVecIndexes(tableName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/db-sqlite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.105",
|
|
4
4
|
"description": "SQLite adapter for @atscript/db with swappable driver support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@atscript/core": "^0.1.
|
|
40
|
-
"@atscript/typescript": "^0.1.
|
|
39
|
+
"@atscript/core": "^0.1.76",
|
|
40
|
+
"@atscript/typescript": "^0.1.76",
|
|
41
41
|
"@types/better-sqlite3": "^7.6.13",
|
|
42
42
|
"@uniqu/core": "^0.1.6",
|
|
43
43
|
"better-sqlite3": "^12.6.2",
|
|
44
44
|
"sqlite-vec": "^0.1.9",
|
|
45
|
-
"unplugin-atscript": "^0.1.
|
|
45
|
+
"unplugin-atscript": "^0.1.76"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atscript/core": "^0.1.
|
|
49
|
-
"@atscript/typescript": "^0.1.
|
|
48
|
+
"@atscript/core": "^0.1.76",
|
|
49
|
+
"@atscript/typescript": "^0.1.76",
|
|
50
50
|
"@uniqu/core": "^0.1.6",
|
|
51
51
|
"better-sqlite3": ">=11.0.0",
|
|
52
|
-
"@atscript/db": "^0.1.
|
|
53
|
-
"@atscript/db-sql-tools": "^0.1.
|
|
52
|
+
"@atscript/db": "^0.1.105",
|
|
53
|
+
"@atscript/db-sql-tools": "^0.1.105"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"better-sqlite3": {
|