@atscript/db-sql-tools 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 +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _uniqu_core = require("@uniqu/core");
|
|
3
|
+
let _atscript_db = require("@atscript/db");
|
|
3
4
|
let _atscript_db_agg = require("@atscript/db/agg");
|
|
4
5
|
//#region src/dialect.ts
|
|
5
6
|
/**
|
|
@@ -30,6 +31,10 @@ const EMPTY_OR = {
|
|
|
30
31
|
function createFilterVisitor(dialect) {
|
|
31
32
|
return {
|
|
32
33
|
comparison(field, op, value) {
|
|
34
|
+
if (op === "$geoWithin") throw new _atscript_db.DbError("GEO_NOT_SUPPORTED", [{
|
|
35
|
+
path: field,
|
|
36
|
+
message: "$geoWithin is not supported by this adapter"
|
|
37
|
+
}]);
|
|
33
38
|
const col = dialect.quoteIdentifier(field);
|
|
34
39
|
const v = dialect.toParam(value);
|
|
35
40
|
switch (op) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { walkFilter } from "@uniqu/core";
|
|
2
|
+
import { DbError } from "@atscript/db";
|
|
2
3
|
import { resolveAlias } from "@atscript/db/agg";
|
|
3
4
|
//#region src/dialect.ts
|
|
4
5
|
/**
|
|
@@ -29,6 +30,10 @@ const EMPTY_OR = {
|
|
|
29
30
|
function createFilterVisitor(dialect) {
|
|
30
31
|
return {
|
|
31
32
|
comparison(field, op, value) {
|
|
33
|
+
if (op === "$geoWithin") throw new DbError("GEO_NOT_SUPPORTED", [{
|
|
34
|
+
path: field,
|
|
35
|
+
message: "$geoWithin is not supported by this adapter"
|
|
36
|
+
}]);
|
|
32
37
|
const col = dialect.quoteIdentifier(field);
|
|
33
38
|
const v = dialect.toParam(value);
|
|
34
39
|
switch (op) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/db-sql-tools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.105",
|
|
4
4
|
"description": "Shared SQL builder utilities for @atscript database adapters.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@uniqu/core": "^0.1.6",
|
|
41
|
-
"unplugin-atscript": "^0.1.
|
|
41
|
+
"unplugin-atscript": "^0.1.76"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@uniqu/core": "^0.1.6",
|
|
45
|
-
"@atscript/db": "^0.1.
|
|
45
|
+
"@atscript/db": "^0.1.105"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "vp pack",
|