joist-core 2.3.0-next.113 → 2.3.0-next.115
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/build/index.cjs +1 -1
- package/build/index.cjs.map +1 -1
- package/build/index.d.cts +2 -2
- package/build/index.d.mts +2 -2
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/queries/sql/Expr.cjs +14 -0
- package/build/queries/sql/Expr.cjs.map +1 -1
- package/build/queries/sql/Expr.d.cts +8 -0
- package/build/queries/sql/Expr.d.cts.map +1 -1
- package/build/queries/sql/Expr.d.mts +8 -0
- package/build/queries/sql/Expr.d.mts.map +1 -1
- package/build/queries/sql/Expr.js +14 -0
- package/build/queries/sql/Expr.js.map +1 -1
- package/build/queries/sql/Tables.cjs +1 -1
- package/build/queries/sql/Tables.cjs.map +1 -1
- package/build/queries/sql/Tables.d.cts +2 -2
- package/build/queries/sql/Tables.d.mts +2 -2
- package/build/queries/sql/Tables.js +1 -1
- package/build/queries/sql/Tables.js.map +1 -1
- package/build/queries/sql/custom.cjs +7 -7
- package/build/queries/sql/custom.cjs.map +1 -1
- package/build/queries/sql/custom.d.cts +6 -6
- package/build/queries/sql/custom.d.cts.map +1 -1
- package/build/queries/sql/custom.d.mts +6 -6
- package/build/queries/sql/custom.d.mts.map +1 -1
- package/build/queries/sql/custom.js +7 -7
- package/build/queries/sql/custom.js.map +1 -1
- package/build/queries/sql/execute.cjs +1 -1
- package/build/queries/sql/execute.cjs.map +1 -1
- package/build/queries/sql/execute.js +1 -1
- package/build/queries/sql/execute.js.map +1 -1
- package/build/queries/sql/query.cjs.map +1 -1
- package/build/queries/sql/query.d.cts +2 -2
- package/build/queries/sql/query.d.mts +2 -2
- package/build/queries/sql/query.js.map +1 -1
- package/package.json +2 -2
|
@@ -125,7 +125,7 @@ interface RecursiveOptions {
|
|
|
125
125
|
/** Defaults to `"all"`. `"distinct"` emits UNION, which stops a cyclic graph from looping forever. */
|
|
126
126
|
union?: "all" | "distinct";
|
|
127
127
|
}
|
|
128
|
-
/** An expression order-by entry. An undefined order prunes
|
|
128
|
+
/** An expression order-by entry, also returned by `expr.asc()` and `expr.desc()`. An undefined order prunes it. */
|
|
129
129
|
type ExpressionOrderBy = {
|
|
130
130
|
readonly sort: ExprLike<unknown>;
|
|
131
131
|
readonly order: "ASC" | "DESC" | undefined;
|
|
@@ -138,7 +138,7 @@ type OrderByDirection = "ASC" | "DESC" | "ASC NULLS FIRST" | "ASC NULLS LAST" |
|
|
|
138
138
|
* The keys are the keys of a POJO/subquery `select` (rendered as SQL output-column names, so ordering
|
|
139
139
|
* by an aggregate does not repeat its expression), or the entity's sortable fields in entity mode.
|
|
140
140
|
* An `undefined` direction prunes the entry, like any other condition. For expressions that are not
|
|
141
|
-
* in `select`, mix in `{ sort, order }` entries in the array form.
|
|
141
|
+
* in `select`, mix in `expr.asc()`/`expr.desc()` or `{ sort, order }` entries in the array form.
|
|
142
142
|
*/
|
|
143
143
|
type OrderByKeys<S> = S extends readonly NamedSelectExpression[] ? { readonly [K in SelectKey<S[number]>]?: OrderByDirection | undefined; } : S extends {
|
|
144
144
|
readonly [tableMgmt]: {
|
|
@@ -125,7 +125,7 @@ interface RecursiveOptions {
|
|
|
125
125
|
/** Defaults to `"all"`. `"distinct"` emits UNION, which stops a cyclic graph from looping forever. */
|
|
126
126
|
union?: "all" | "distinct";
|
|
127
127
|
}
|
|
128
|
-
/** An expression order-by entry. An undefined order prunes
|
|
128
|
+
/** An expression order-by entry, also returned by `expr.asc()` and `expr.desc()`. An undefined order prunes it. */
|
|
129
129
|
type ExpressionOrderBy = {
|
|
130
130
|
readonly sort: ExprLike<unknown>;
|
|
131
131
|
readonly order: "ASC" | "DESC" | undefined;
|
|
@@ -138,7 +138,7 @@ type OrderByDirection = "ASC" | "DESC" | "ASC NULLS FIRST" | "ASC NULLS LAST" |
|
|
|
138
138
|
* The keys are the keys of a POJO/subquery `select` (rendered as SQL output-column names, so ordering
|
|
139
139
|
* by an aggregate does not repeat its expression), or the entity's sortable fields in entity mode.
|
|
140
140
|
* An `undefined` direction prunes the entry, like any other condition. For expressions that are not
|
|
141
|
-
* in `select`, mix in `{ sort, order }` entries in the array form.
|
|
141
|
+
* in `select`, mix in `expr.asc()`/`expr.desc()` or `{ sort, order }` entries in the array form.
|
|
142
142
|
*/
|
|
143
143
|
type OrderByKeys<S> = S extends readonly NamedSelectExpression[] ? { readonly [K in SelectKey<S[number]>]?: OrderByDirection | undefined; } : S extends {
|
|
144
144
|
readonly [tableMgmt]: {
|