@atscript/db-postgres 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
|
@@ -832,6 +832,7 @@ var PostgresAdapter = class PostgresAdapter extends _atscript_db.BaseDbAdapter {
|
|
|
832
832
|
await this._exec().exec(ddl);
|
|
833
833
|
}
|
|
834
834
|
typeMapper(field) {
|
|
835
|
+
if (field.encrypted) return "TEXT";
|
|
835
836
|
if (this._vectorFields.has(field.path)) {
|
|
836
837
|
const vec = this._vectorFields.get(field.path);
|
|
837
838
|
return this._supportsVector ? `vector(${vec.dimensions})` : "JSONB";
|
|
@@ -862,6 +863,10 @@ var PostgresAdapter = class PostgresAdapter extends _atscript_db.BaseDbAdapter {
|
|
|
862
863
|
const sql = `DROP INDEX IF EXISTS ${schema ? `${qi(schema)}.` : ""}${qi(name)}`;
|
|
863
864
|
this._log(sql);
|
|
864
865
|
await this._exec().exec(sql);
|
|
866
|
+
},
|
|
867
|
+
warnUnsupportedTypes: {
|
|
868
|
+
adapter: "postgres",
|
|
869
|
+
types: ["geo"]
|
|
865
870
|
}
|
|
866
871
|
});
|
|
867
872
|
if (this._supportsVector) for (const [field, vec] of this._vectorFields) {
|
package/dist/index.mjs
CHANGED
|
@@ -831,6 +831,7 @@ var PostgresAdapter = class PostgresAdapter extends BaseDbAdapter {
|
|
|
831
831
|
await this._exec().exec(ddl);
|
|
832
832
|
}
|
|
833
833
|
typeMapper(field) {
|
|
834
|
+
if (field.encrypted) return "TEXT";
|
|
834
835
|
if (this._vectorFields.has(field.path)) {
|
|
835
836
|
const vec = this._vectorFields.get(field.path);
|
|
836
837
|
return this._supportsVector ? `vector(${vec.dimensions})` : "JSONB";
|
|
@@ -861,6 +862,10 @@ var PostgresAdapter = class PostgresAdapter extends BaseDbAdapter {
|
|
|
861
862
|
const sql = `DROP INDEX IF EXISTS ${schema ? `${qi(schema)}.` : ""}${qi(name)}`;
|
|
862
863
|
this._log(sql);
|
|
863
864
|
await this._exec().exec(sql);
|
|
865
|
+
},
|
|
866
|
+
warnUnsupportedTypes: {
|
|
867
|
+
adapter: "postgres",
|
|
868
|
+
types: ["geo"]
|
|
864
869
|
}
|
|
865
870
|
});
|
|
866
871
|
if (this._supportsVector) for (const [field, vec] of this._vectorFields) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/db-postgres",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.104",
|
|
4
4
|
"description": "PostgreSQL adapter for @atscript/db with pg (node-postgres) driver support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@atscript/core": "^0.1.
|
|
47
|
-
"@atscript/typescript": "^0.1.
|
|
46
|
+
"@atscript/core": "^0.1.75",
|
|
47
|
+
"@atscript/typescript": "^0.1.75",
|
|
48
48
|
"@types/pg": "^8.11.0",
|
|
49
49
|
"@uniqu/core": "^0.1.6",
|
|
50
50
|
"pg": "^8.13.0",
|
|
51
|
-
"unplugin-atscript": "^0.1.
|
|
51
|
+
"unplugin-atscript": "^0.1.75"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atscript/core": "^0.1.
|
|
55
|
-
"@atscript/typescript": "^0.1.
|
|
54
|
+
"@atscript/core": "^0.1.75",
|
|
55
|
+
"@atscript/typescript": "^0.1.75",
|
|
56
56
|
"@uniqu/core": "^0.1.6",
|
|
57
57
|
"pg": ">=8.0.0",
|
|
58
|
-
"@atscript/db": "^0.1.
|
|
59
|
-
"@atscript/db-sql-tools": "^0.1.
|
|
58
|
+
"@atscript/db": "^0.1.104",
|
|
59
|
+
"@atscript/db-sql-tools": "^0.1.104"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"pg": {
|