@atscript/db 0.1.130 → 0.1.132
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/agg.cjs +19 -5
- package/dist/agg.d.cts +3 -4
- package/dist/agg.d.mts +3 -4
- package/dist/agg.mjs +2 -5
- package/dist/{db-readable-B7eYWS5q.d.cts → buckets-BvoYYQ2Q.d.cts} +1348 -1142
- package/dist/{db-readable-Bn1bV_eC.d.mts → buckets-D2XPrwSC.d.mts} +1348 -1142
- package/dist/{db-error-COrO58t5.mjs → db-error-D5uilS_A.mjs} +13 -1
- package/dist/{db-error-C4JuLcvb.cjs → db-error-DTkkeu5b.cjs} +18 -0
- package/dist/{db-space-C2UCnGHd.d.cts → db-space-BQQEgB3d.d.mts} +2 -2
- package/dist/{db-space-DdIPYD0Q.d.mts → db-space-Cslq5Dux.d.cts} +2 -2
- package/dist/{db-view-hkwQ-fHJ.cjs → db-view-CuFAhzwF.cjs} +487 -123
- package/dist/{db-view-BkF2xEGd.mjs → db-view-DVGWWhA3.mjs} +439 -123
- package/dist/index.cjs +13 -4
- package/dist/index.d.cts +105 -38
- package/dist/index.d.mts +105 -38
- package/dist/index.mjs +5 -5
- package/dist/{nested-writer-CkDo-ZfH.mjs → nested-writer-CqL24ojl.mjs} +1 -1
- package/dist/{nested-writer-DxPhmWFz.cjs → nested-writer-wk1EFUNY.cjs} +1 -1
- package/dist/ops.cjs +1 -1
- package/dist/ops.mjs +1 -1
- package/dist/rel.cjs +2 -2
- package/dist/rel.d.cts +1 -1
- package/dist/rel.d.mts +1 -1
- package/dist/rel.mjs +2 -2
- package/dist/{relation-loader-CUGcxJ18.mjs → relation-loader-B68R1LET.mjs} +1 -1
- package/dist/{relation-loader-C8GOpNYJ.cjs → relation-loader-BD4xANQJ.cjs} +1 -1
- package/dist/sync.cjs +1 -1
- package/dist/sync.d.cts +2 -2
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +1 -1
- package/dist/{validator-lkCJKuoo.cjs → validator-BtZbcLN2.cjs} +1 -1
- package/dist/{validator-wBARmD68.d.cts → validator-CewfnGZj.d.cts} +9 -2
- package/dist/{validator-wBARmD68.d.mts → validator-CewfnGZj.d.mts} +9 -2
- package/dist/{validator-CeD_fqyW.mjs → validator-Ch7UIQl9.mjs} +1 -1
- package/dist/validator.cjs +2 -2
- package/dist/validator.d.cts +1 -1
- package/dist/validator.d.mts +1 -1
- package/dist/validator.mjs +2 -2
- package/package.json +3 -3
|
@@ -71,5 +71,17 @@ var CasMismatchError = class extends DbError {
|
|
|
71
71
|
this.expected = expected;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* The engine cannot resolve a calendar bucket's time zone (`BUCKET_TZ_UNAVAILABLE`,
|
|
76
|
+
* `path` `$select`; moost-db: 501). The zone already passed the core's IANA
|
|
77
|
+
* validation, so this is a store-configuration condition — an outdated or
|
|
78
|
+
* missing server time zone database — never a malformed query. Since 0.1.132.
|
|
79
|
+
*/
|
|
80
|
+
function bucketTimeZoneUnavailable(message) {
|
|
81
|
+
return new DbError("BUCKET_TZ_UNAVAILABLE", [{
|
|
82
|
+
path: "$select",
|
|
83
|
+
message
|
|
84
|
+
}]);
|
|
85
|
+
}
|
|
74
86
|
//#endregion
|
|
75
|
-
export { DepthLimitExceededError as i, CasMismatchError as n, DbError as r, CasExhaustedError as t };
|
|
87
|
+
export { bucketTimeZoneUnavailable as a, DepthLimitExceededError as i, CasMismatchError as n, DbError as r, CasExhaustedError as t };
|
|
@@ -71,6 +71,18 @@ var CasMismatchError = class extends DbError {
|
|
|
71
71
|
this.expected = expected;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* The engine cannot resolve a calendar bucket's time zone (`BUCKET_TZ_UNAVAILABLE`,
|
|
76
|
+
* `path` `$select`; moost-db: 501). The zone already passed the core's IANA
|
|
77
|
+
* validation, so this is a store-configuration condition — an outdated or
|
|
78
|
+
* missing server time zone database — never a malformed query. Since 0.1.132.
|
|
79
|
+
*/
|
|
80
|
+
function bucketTimeZoneUnavailable(message) {
|
|
81
|
+
return new DbError("BUCKET_TZ_UNAVAILABLE", [{
|
|
82
|
+
path: "$select",
|
|
83
|
+
message
|
|
84
|
+
}]);
|
|
85
|
+
}
|
|
74
86
|
//#endregion
|
|
75
87
|
Object.defineProperty(exports, "CasExhaustedError", {
|
|
76
88
|
enumerable: true,
|
|
@@ -96,3 +108,9 @@ Object.defineProperty(exports, "DepthLimitExceededError", {
|
|
|
96
108
|
return DepthLimitExceededError;
|
|
97
109
|
}
|
|
98
110
|
});
|
|
111
|
+
Object.defineProperty(exports, "bucketTimeZoneUnavailable", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function() {
|
|
114
|
+
return bucketTimeZoneUnavailable;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FilterExpr } from "@uniqu/core";
|
|
1
|
+
import { Dt as TableMetadata, H as TDbInsertManyResult, I as TDbDeleteResult, It as DbEncryption, Lt as TDbEncryptionOptions, Mt as BaseDbAdapter, Nt as AtscriptDbReadable, St as TWriteTableResolver, U as TDbInsertResult, Vt as TGenericLogger, X as TDbUpdateResult, et as TDeleteOptions, g as DbRow, m as DbPatch, ot as TFkLookupResolver, pt as TReferencingForeignKey, vt as TTableResolver, w as TCascadeResolver, x as NullableOptional, xt as TWriteOptions, yt as TTouchManyOptions } from "./buckets-D2XPrwSC.mjs";
|
|
3
2
|
import { AtscriptQueryComparison, AtscriptQueryFieldRef, AtscriptQueryFieldRef as AtscriptQueryFieldRef$1, AtscriptQueryNode, AtscriptQueryNode as AtscriptQueryNode$1, AtscriptRef, FlatOf, NavPropsOf, OwnPropsOf, PrimaryKeyOf, TAtscriptAnnotatedType, TAtscriptDataType, Validator } from "@atscript/typescript/utils";
|
|
3
|
+
import { FilterExpr } from "@uniqu/core";
|
|
4
4
|
|
|
5
5
|
//#region src/strategies/integrity.d.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AtscriptQueryComparison, AtscriptQueryFieldRef, AtscriptQueryFieldRef as AtscriptQueryFieldRef$1, AtscriptQueryNode, AtscriptQueryNode as AtscriptQueryNode$1, AtscriptRef, FlatOf, NavPropsOf, OwnPropsOf, PrimaryKeyOf, TAtscriptAnnotatedType, TAtscriptDataType, Validator } from "@atscript/typescript/utils";
|
|
1
|
+
import { Dt as TableMetadata, H as TDbInsertManyResult, I as TDbDeleteResult, It as DbEncryption, Lt as TDbEncryptionOptions, Mt as BaseDbAdapter, Nt as AtscriptDbReadable, St as TWriteTableResolver, U as TDbInsertResult, Vt as TGenericLogger, X as TDbUpdateResult, et as TDeleteOptions, g as DbRow, m as DbPatch, ot as TFkLookupResolver, pt as TReferencingForeignKey, vt as TTableResolver, w as TCascadeResolver, x as NullableOptional, xt as TWriteOptions, yt as TTouchManyOptions } from "./buckets-BvoYYQ2Q.cjs";
|
|
3
2
|
import { FilterExpr } from "@uniqu/core";
|
|
3
|
+
import { AtscriptQueryComparison, AtscriptQueryFieldRef, AtscriptQueryFieldRef as AtscriptQueryFieldRef$1, AtscriptQueryNode, AtscriptQueryNode as AtscriptQueryNode$1, AtscriptRef, FlatOf, NavPropsOf, OwnPropsOf, PrimaryKeyOf, TAtscriptAnnotatedType, TAtscriptDataType, Validator } from "@atscript/typescript/utils";
|
|
4
4
|
|
|
5
5
|
//#region src/strategies/integrity.d.ts
|
|
6
6
|
/**
|