@atscript/db-mysql 0.1.102 → 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 +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -751,6 +751,7 @@ var MysqlAdapter = class MysqlAdapter extends _atscript_db.BaseDbAdapter {
|
|
|
751
751
|
await this._exec().exec(ddl);
|
|
752
752
|
}
|
|
753
753
|
typeMapper(field) {
|
|
754
|
+
if (field.encrypted) return "TEXT";
|
|
754
755
|
if (this._vectorFields.has(field.path)) {
|
|
755
756
|
const vec = this._vectorFields.get(field.path);
|
|
756
757
|
return this._supportsVector ? `VECTOR(${vec.dimensions})` : "JSON";
|
|
@@ -779,6 +780,10 @@ var MysqlAdapter = class MysqlAdapter extends _atscript_db.BaseDbAdapter {
|
|
|
779
780
|
const sql = `DROP INDEX ${qi(name)} ON ${quoteTableName(this.resolveTableName())}`;
|
|
780
781
|
this._log(sql);
|
|
781
782
|
await this._exec().exec(sql);
|
|
783
|
+
},
|
|
784
|
+
warnUnsupportedTypes: {
|
|
785
|
+
adapter: "mysql",
|
|
786
|
+
types: ["geo"]
|
|
782
787
|
}
|
|
783
788
|
});
|
|
784
789
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -750,6 +750,7 @@ var MysqlAdapter = class MysqlAdapter extends BaseDbAdapter {
|
|
|
750
750
|
await this._exec().exec(ddl);
|
|
751
751
|
}
|
|
752
752
|
typeMapper(field) {
|
|
753
|
+
if (field.encrypted) return "TEXT";
|
|
753
754
|
if (this._vectorFields.has(field.path)) {
|
|
754
755
|
const vec = this._vectorFields.get(field.path);
|
|
755
756
|
return this._supportsVector ? `VECTOR(${vec.dimensions})` : "JSON";
|
|
@@ -778,6 +779,10 @@ var MysqlAdapter = class MysqlAdapter extends BaseDbAdapter {
|
|
|
778
779
|
const sql = `DROP INDEX ${qi(name)} ON ${quoteTableName(this.resolveTableName())}`;
|
|
779
780
|
this._log(sql);
|
|
780
781
|
await this._exec().exec(sql);
|
|
782
|
+
},
|
|
783
|
+
warnUnsupportedTypes: {
|
|
784
|
+
adapter: "mysql",
|
|
785
|
+
types: ["geo"]
|
|
781
786
|
}
|
|
782
787
|
});
|
|
783
788
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/db-mysql",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.104",
|
|
4
4
|
"description": "MySQL adapter for @atscript/db with mysql2 driver support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@atscript/core": "^0.1.
|
|
45
|
-
"@atscript/typescript": "^0.1.
|
|
44
|
+
"@atscript/core": "^0.1.75",
|
|
45
|
+
"@atscript/typescript": "^0.1.75",
|
|
46
46
|
"@uniqu/core": "^0.1.6",
|
|
47
47
|
"mysql2": "^3.11.0",
|
|
48
|
-
"unplugin-atscript": "^0.1.
|
|
48
|
+
"unplugin-atscript": "^0.1.75"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atscript/core": "^0.1.
|
|
52
|
-
"@atscript/typescript": "^0.1.
|
|
51
|
+
"@atscript/core": "^0.1.75",
|
|
52
|
+
"@atscript/typescript": "^0.1.75",
|
|
53
53
|
"@uniqu/core": "^0.1.6",
|
|
54
54
|
"mysql2": ">=3.0.0",
|
|
55
|
-
"@atscript/db": "^0.1.
|
|
56
|
-
"@atscript/db-sql-tools": "^0.1.
|
|
55
|
+
"@atscript/db": "^0.1.104",
|
|
56
|
+
"@atscript/db-sql-tools": "^0.1.104"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"mysql2": {
|