@atscript/db 0.1.145 → 0.1.147
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 +1 -1
- package/dist/agg.d.cts +1 -1
- package/dist/agg.d.mts +1 -1
- package/dist/agg.mjs +1 -1
- package/dist/{aggregate-fns-CfsveE1w.mjs → aggregate-fns-C0BymEqa.mjs} +3 -1
- package/dist/{aggregate-fns-CGBv3E8S.cjs → aggregate-fns-CtsRbZn9.cjs} +8 -0
- package/dist/{buckets-DYFu0eZ8.d.cts → buckets-CjdPipCC.d.cts} +522 -17
- package/dist/{buckets-DRycmhOW.d.mts → buckets-DYopfd2Y.d.mts} +522 -17
- package/dist/{column-diff-e2oHc71_.mjs → column-diff-CO06iQvI.mjs} +862 -115
- package/dist/{column-diff-D_Kyuh0S.cjs → column-diff-Dt7EDJsA.cjs} +872 -113
- package/dist/{column-diff-Q9UmWn5x.d.mts → fk-diff-BtOmL4OW.d.mts} +48 -2
- package/dist/{column-diff-w-Mym_3w.d.cts → fk-diff-DLqwVkKG.d.cts} +48 -2
- package/dist/index.cjs +28 -33
- package/dist/index.d.cts +40 -15
- package/dist/index.d.mts +40 -15
- package/dist/index.mjs +5 -33
- package/dist/{nested-writer-CnOOAehr.mjs → nested-writer-D35UsDBT.mjs} +542 -2
- package/dist/{nested-writer-xfQwxplL.cjs → nested-writer-SqtYJHF0.cjs} +666 -0
- package/dist/plugin.cjs +266 -5
- package/dist/plugin.mjs +267 -6
- package/dist/rel.cjs +2 -2
- package/dist/rel.d.cts +2 -2
- package/dist/rel.d.mts +2 -2
- package/dist/rel.mjs +2 -2
- package/dist/{relation-helpers-B-0NRKat.d.mts → relation-helpers-C2bLtE-t.d.mts} +1 -1
- package/dist/{relation-helpers-BOMm_HUI.d.cts → relation-helpers-DH3LvwLV.d.cts} +1 -1
- package/dist/relation-loader-BFhVuJ-B.cjs +369 -0
- package/dist/relation-loader-C0qE8xgR.mjs +370 -0
- package/dist/shared.cjs +1 -1
- package/dist/shared.d.cts +4 -3
- package/dist/shared.d.mts +4 -3
- package/dist/shared.mjs +1 -1
- package/dist/sync.cjs +10 -6
- package/dist/sync.d.cts +2 -25
- package/dist/sync.d.mts +2 -25
- package/dist/sync.mjs +10 -6
- package/dist/{validation-utils-DOsB4e6G.cjs → validation-utils-Da2GjobR.cjs} +35 -24
- package/dist/{validation-utils-CMR4fe2M.mjs → validation-utils-Dq0uZ7ef.mjs} +35 -24
- package/dist/{validator-Bw6ks9Hy.d.mts → validator-CMnTI6r7.d.cts} +9 -6
- package/dist/{validator-Bw6ks9Hy.d.cts → validator-CMnTI6r7.d.mts} +9 -6
- package/dist/validator.d.cts +1 -1
- package/dist/validator.d.mts +1 -1
- package/package.json +8 -8
- package/dist/relation-loader-CBPY6kM7.cjs +0 -461
- package/dist/relation-loader-D9XuXaMv.mjs +0 -462
package/dist/agg.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_aggregate_fns = require("./aggregate-fns-
|
|
2
|
+
const require_aggregate_fns = require("./aggregate-fns-CtsRbZn9.cjs");
|
|
3
3
|
let _uniqu_core = require("@uniqu/core");
|
|
4
4
|
//#region src/agg.ts
|
|
5
5
|
/**
|
package/dist/agg.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as TResolvedBucket } from "./buckets-
|
|
1
|
+
import { n as TResolvedBucket } from "./buckets-CjdPipCC.cjs";
|
|
2
2
|
import { _ as TDbAggregateFn, a as AggregateResult, c as CalendarBucketLabel, d as WeekStart, f as isAggregateExpr, h as resolveAlias, i as AggregateQuery, l as ComputedExpr, m as resolveAggregateSearch, n as AggregateExpr, o as BucketExpr, p as isBucketExpr, r as AggregateFn, s as BucketUnit, t as AggregateControls, u as ResolvedBucket, v as assertAggregateFn } from "./agg-CV7y8nC6.cjs";
|
|
3
3
|
export { type AggregateControls, type AggregateExpr, type AggregateFn, type AggregateQuery, type AggregateResult, type BucketExpr, type BucketUnit, type CalendarBucketLabel, type ComputedExpr, type ResolvedBucket, type TDbAggregateFn, type TResolvedBucket, type WeekStart, assertAggregateFn, isAggregateExpr, isBucketExpr, resolveAggregateSearch, resolveAlias };
|
package/dist/agg.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as TResolvedBucket } from "./buckets-
|
|
1
|
+
import { n as TResolvedBucket } from "./buckets-DYopfd2Y.mjs";
|
|
2
2
|
import { _ as TDbAggregateFn, a as AggregateResult, c as CalendarBucketLabel, d as WeekStart, f as isAggregateExpr, h as resolveAlias, i as AggregateQuery, l as ComputedExpr, m as resolveAggregateSearch, n as AggregateExpr, o as BucketExpr, p as isBucketExpr, r as AggregateFn, s as BucketUnit, t as AggregateControls, u as ResolvedBucket, v as assertAggregateFn } from "./agg-D5DHsAby.mjs";
|
|
3
3
|
export { type AggregateControls, type AggregateExpr, type AggregateFn, type AggregateQuery, type AggregateResult, type BucketExpr, type BucketUnit, type CalendarBucketLabel, type ComputedExpr, type ResolvedBucket, type TDbAggregateFn, type TResolvedBucket, type WeekStart, assertAggregateFn, isAggregateExpr, isBucketExpr, resolveAggregateSearch, resolveAlias };
|
package/dist/agg.mjs
CHANGED
|
@@ -28,6 +28,8 @@ const NULL_WHEN_EMPTY_AGGREGATE_FNS = new Set([
|
|
|
28
28
|
"min",
|
|
29
29
|
"max"
|
|
30
30
|
]);
|
|
31
|
+
/** The `@db.agg.*` annotation names, one per supported aggregate function. */
|
|
32
|
+
const AGG_ANNOTATIONS = SUPPORTED_AGGREGATE_FNS.map((fn) => `db.agg.${fn}`);
|
|
31
33
|
/** `BaseDbAdapter.aggregateFns()` by default: every function except `countDistinct`. */
|
|
32
34
|
const BASE_AGGREGATE_FNS = new Set([
|
|
33
35
|
"sum",
|
|
@@ -55,4 +57,4 @@ function assertAggregateFn(fn, path = "$select") {
|
|
|
55
57
|
}]);
|
|
56
58
|
}
|
|
57
59
|
//#endregion
|
|
58
|
-
export {
|
|
60
|
+
export { SUPPORTED_AGGREGATE_FNS as a, NULL_WHEN_EMPTY_AGGREGATE_FNS as i, ALL_AGGREGATE_FNS as n, assertAggregateFn as o, BASE_AGGREGATE_FNS as r, AGG_ANNOTATIONS as t };
|
|
@@ -28,6 +28,8 @@ const NULL_WHEN_EMPTY_AGGREGATE_FNS = new Set([
|
|
|
28
28
|
"min",
|
|
29
29
|
"max"
|
|
30
30
|
]);
|
|
31
|
+
/** The `@db.agg.*` annotation names, one per supported aggregate function. */
|
|
32
|
+
const AGG_ANNOTATIONS = SUPPORTED_AGGREGATE_FNS.map((fn) => `db.agg.${fn}`);
|
|
31
33
|
/** `BaseDbAdapter.aggregateFns()` by default: every function except `countDistinct`. */
|
|
32
34
|
const BASE_AGGREGATE_FNS = new Set([
|
|
33
35
|
"sum",
|
|
@@ -55,6 +57,12 @@ function assertAggregateFn(fn, path = "$select") {
|
|
|
55
57
|
}]);
|
|
56
58
|
}
|
|
57
59
|
//#endregion
|
|
60
|
+
Object.defineProperty(exports, "AGG_ANNOTATIONS", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function() {
|
|
63
|
+
return AGG_ANNOTATIONS;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
58
66
|
Object.defineProperty(exports, "ALL_AGGREGATE_FNS", {
|
|
59
67
|
enumerable: true,
|
|
60
68
|
get: function() {
|