@atscript/db 0.1.131 → 0.1.133
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-D8aa-wfP.d.mts → buckets-BENuu_tK.d.mts} +1346 -1141
- package/dist/{db-readable-Cmrg9aLU.d.cts → buckets-CTWy7Y1k.d.cts} +1346 -1141
- 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-B4MjNjY4.d.mts → db-space-Bv3Ar_Xd.d.mts} +1 -1
- package/dist/{db-space-rQFgz3-k.d.cts → db-space-DROLifb-.d.cts} +1 -1
- package/dist/{db-view-DUDnyQ3b.cjs → db-view-B5-bQ5AV.cjs} +552 -120
- package/dist/{db-view-BYH4HJ-U.mjs → db-view-caPATLmX.mjs} +486 -120
- package/dist/index.cjs +16 -4
- package/dist/index.d.cts +163 -38
- package/dist/index.d.mts +163 -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
package/dist/agg.cjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _uniqu_core = require("@uniqu/core");
|
|
2
3
|
//#region src/agg.ts
|
|
3
|
-
/** Resolves output alias: $as if provided, otherwise `{fn}_{field}`. */
|
|
4
|
-
function resolveAlias(expr) {
|
|
5
|
-
return expr.$as ?? `${expr.$fn}_${expr.$field}`;
|
|
6
|
-
}
|
|
7
4
|
/**
|
|
8
5
|
* Reads the `$search` / `$index` controls of an aggregate query.
|
|
9
6
|
*
|
|
@@ -35,5 +32,22 @@ function resolveAggregateSearch(controls) {
|
|
|
35
32
|
};
|
|
36
33
|
}
|
|
37
34
|
//#endregion
|
|
35
|
+
Object.defineProperty(exports, "isAggregateExpr", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function() {
|
|
38
|
+
return _uniqu_core.isAggregateExpr;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "isBucketExpr", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function() {
|
|
44
|
+
return _uniqu_core.isBucketExpr;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
38
47
|
exports.resolveAggregateSearch = resolveAggregateSearch;
|
|
39
|
-
exports
|
|
48
|
+
Object.defineProperty(exports, "resolveAlias", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function() {
|
|
51
|
+
return _uniqu_core.resolveAlias;
|
|
52
|
+
}
|
|
53
|
+
});
|
package/dist/agg.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as TResolvedBucket } from "./buckets-CTWy7Y1k.cjs";
|
|
2
|
+
import { AggregateControls, AggregateExpr, AggregateFn, AggregateQuery, AggregateResult, BucketExpr, BucketUnit, CalendarBucketLabel, ComputedExpr, ResolvedBucket, WeekStart, isAggregateExpr, isBucketExpr, resolveAlias } from "@uniqu/core";
|
|
2
3
|
|
|
3
4
|
//#region src/agg.d.ts
|
|
4
|
-
/** Resolves output alias: $as if provided, otherwise `{fn}_{field}`. */
|
|
5
|
-
declare function resolveAlias(expr: AggregateExpr$1): string;
|
|
6
5
|
/** The text-search request a grouped query carries, once normalised. */
|
|
7
6
|
interface TAggregateSearch {
|
|
8
7
|
/** Non-empty, trimmed search term. */
|
|
@@ -33,4 +32,4 @@ declare function resolveAggregateSearch(controls: {
|
|
|
33
32
|
[key: `$${string}`]: unknown;
|
|
34
33
|
} | undefined): TAggregateSearch | undefined;
|
|
35
34
|
//#endregion
|
|
36
|
-
export { type AggregateControls, type AggregateExpr, type AggregateFn, type AggregateQuery, type AggregateResult, resolveAggregateSearch, resolveAlias };
|
|
35
|
+
export { type AggregateControls, type AggregateExpr, type AggregateFn, type AggregateQuery, type AggregateResult, type BucketExpr, type BucketUnit, type CalendarBucketLabel, type ComputedExpr, type ResolvedBucket, type TResolvedBucket, type WeekStart, isAggregateExpr, isBucketExpr, resolveAggregateSearch, resolveAlias };
|
package/dist/agg.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as TResolvedBucket } from "./buckets-BENuu_tK.mjs";
|
|
2
|
+
import { AggregateControls, AggregateExpr, AggregateFn, AggregateQuery, AggregateResult, BucketExpr, BucketUnit, CalendarBucketLabel, ComputedExpr, ResolvedBucket, WeekStart, isAggregateExpr, isBucketExpr, resolveAlias } from "@uniqu/core";
|
|
2
3
|
|
|
3
4
|
//#region src/agg.d.ts
|
|
4
|
-
/** Resolves output alias: $as if provided, otherwise `{fn}_{field}`. */
|
|
5
|
-
declare function resolveAlias(expr: AggregateExpr$1): string;
|
|
6
5
|
/** The text-search request a grouped query carries, once normalised. */
|
|
7
6
|
interface TAggregateSearch {
|
|
8
7
|
/** Non-empty, trimmed search term. */
|
|
@@ -33,4 +32,4 @@ declare function resolveAggregateSearch(controls: {
|
|
|
33
32
|
[key: `$${string}`]: unknown;
|
|
34
33
|
} | undefined): TAggregateSearch | undefined;
|
|
35
34
|
//#endregion
|
|
36
|
-
export { type AggregateControls, type AggregateExpr, type AggregateFn, type AggregateQuery, type AggregateResult, resolveAggregateSearch, resolveAlias };
|
|
35
|
+
export { type AggregateControls, type AggregateExpr, type AggregateFn, type AggregateQuery, type AggregateResult, type BucketExpr, type BucketUnit, type CalendarBucketLabel, type ComputedExpr, type ResolvedBucket, type TResolvedBucket, type WeekStart, isAggregateExpr, isBucketExpr, resolveAggregateSearch, resolveAlias };
|
package/dist/agg.mjs
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
+
import { isAggregateExpr, isBucketExpr, resolveAlias } from "@uniqu/core";
|
|
1
2
|
//#region src/agg.ts
|
|
2
|
-
/** Resolves output alias: $as if provided, otherwise `{fn}_{field}`. */
|
|
3
|
-
function resolveAlias(expr) {
|
|
4
|
-
return expr.$as ?? `${expr.$fn}_${expr.$field}`;
|
|
5
|
-
}
|
|
6
3
|
/**
|
|
7
4
|
* Reads the `$search` / `$index` controls of an aggregate query.
|
|
8
5
|
*
|
|
@@ -34,4 +31,4 @@ function resolveAggregateSearch(controls) {
|
|
|
34
31
|
};
|
|
35
32
|
}
|
|
36
33
|
//#endregion
|
|
37
|
-
export { resolveAggregateSearch, resolveAlias };
|
|
34
|
+
export { isAggregateExpr, isBucketExpr, resolveAggregateSearch, resolveAlias };
|