@atscript/db-sqlite 0.1.103 → 0.1.104

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 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.103",
3
+ "version": "0.1.104",
4
4
  "description": "SQLite adapter for @atscript/db with swappable driver support.",
5
5
  "keywords": [
6
6
  "atscript",
@@ -49,8 +49,8 @@
49
49
  "@atscript/typescript": "^0.1.75",
50
50
  "@uniqu/core": "^0.1.6",
51
51
  "better-sqlite3": ">=11.0.0",
52
- "@atscript/db": "^0.1.103",
53
- "@atscript/db-sql-tools": "^0.1.103"
52
+ "@atscript/db": "^0.1.104",
53
+ "@atscript/db-sql-tools": "^0.1.104"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "better-sqlite3": {