qubu 0.6.0 → 0.6.1
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/README.md +112 -0
- package/dist/codegen.d.mts +1 -1
- package/dist/codegen.mjs +1 -1
- package/dist/{column-r1Y4ivwt.mjs → column-BzN8KFJa.mjs} +39 -2
- package/dist/{column-Da37jYSD.mjs → column-CFvSbil0.mjs} +1 -1
- package/dist/{complete-types-CY0KbzNw.d.mts → complete-types-CNMWBWap.d.mts} +1 -1
- package/dist/{constraints-YGyNPQ_z.mjs → constraints-DM_tarXc.mjs} +2 -2
- package/dist/core.d.mts +1 -1
- package/dist/core.mjs +2 -3
- package/dist/diagnostics-I9vVtXkc.mjs +40 -0
- package/dist/diff.d.mts +2 -2
- package/dist/expressions-BCjc08zw.mjs +129 -0
- package/dist/{index-B2rZf3-2.d.mts → index-CGui70hi.d.mts} +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +58 -15
- package/dist/introspection/mysql.d.mts +26 -0
- package/dist/introspection/mysql.mjs +1145 -0
- package/dist/introspection/postgres.d.mts +40 -0
- package/dist/introspection/postgres.mjs +1554 -0
- package/dist/introspection/sqlite.d.mts +15 -0
- package/dist/introspection/sqlite.mjs +986 -0
- package/dist/introspection.d.mts +3 -78
- package/dist/introspection.mjs +5 -3683
- package/dist/mysql.d.mts +1 -1
- package/dist/mysql.mjs +2 -2
- package/dist/{on-conflict-DZQ85f1t.mjs → on-conflict-CnaY5qso.mjs} +76 -4
- package/dist/postgres-Dey7QXPL.mjs +69 -0
- package/dist/postgres.d.mts +3 -3
- package/dist/postgres.mjs +3 -52
- package/dist/registry-oWDiqD7i.mjs +127 -0
- package/dist/{relational-CxnLCqZQ.mjs → relational-DSAJ-l58.mjs} +1 -2
- package/dist/schema.d.mts +1 -1
- package/dist/schema.mjs +7 -6
- package/dist/{serialize-BN07IK0v.mjs → serialize-CE-gw5_s.mjs} +3 -3
- package/dist/{serialize-CEIIlWhC.d.mts → serialize-OvXCLzjm.d.mts} +1 -1
- package/dist/snapshot/mysql.d.mts +2 -2
- package/dist/snapshot/mysql.mjs +28 -28
- package/dist/snapshot/postgres.d.mts +4 -4
- package/dist/snapshot/postgres.mjs +21 -21
- package/dist/snapshot/sqlite.d.mts +4 -4
- package/dist/snapshot/sqlite.mjs +27 -27
- package/dist/{snapshot-Xam8-q0j.mjs → snapshot-DgsOhf_8.mjs} +4 -42
- package/dist/snapshot.d.mts +4 -4
- package/dist/snapshot.mjs +1 -1
- package/dist/{source-SqrKWjFJ.mjs → source-BDuUXmAk.mjs} +2 -2
- package/dist/sqlite.d.mts +1 -1
- package/dist/sqlite.mjs +6 -6
- package/dist/{table-BwflqeAj.mjs → table-C1QGNe4P.mjs} +3 -3
- package/dist/{types-CTCqtFlS.d.mts → types-BEn0N_al.d.mts} +1 -1
- package/dist/{types-BIJsj2fJ.mjs → types-BLNRatG_.mjs} +2 -4
- package/dist/{types-C0VkiwpR.d.mts → types-DUe6eeI0.d.mts} +57 -28
- package/docs/guides/compose-queries.md +22 -0
- package/docs/guides/drizzle.md +11 -11
- package/docs/guides/mutations.md +89 -0
- package/docs/guides/valtio-sync.md +113 -0
- package/docs/migrations/index.md +50 -12
- package/docs/migrations/operations.md +20 -6
- package/docs/reference/supported-surface.md +17 -6
- package/docs/schema/code-generation.md +3 -2
- package/docs/schema/introspection.md +3 -2
- package/docs/sql-semantic-types.md +8 -0
- package/package.json +13 -1
- package/dist/registry-BRcUuazJ.mjs +0 -256
- package/dist/standard-DfcZEVOj.mjs +0 -12
- package/dist/value-D14I_XgL.mjs +0 -29
package/dist/value-D14I_XgL.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { C as fragment, y as makeSchemaExpression } from "./column-r1Y4ivwt.mjs";
|
|
2
|
-
//#region src/core/primitives/parameter.ts
|
|
3
|
-
function parameter(_value) {
|
|
4
|
-
return fragment((context) => context.parameter(_value));
|
|
5
|
-
}
|
|
6
|
-
//#endregion
|
|
7
|
-
//#region src/expressions/value.ts
|
|
8
|
-
function value(input) {
|
|
9
|
-
const expression = makeSchemaExpression("value", (context) => context.render(parameter(input)));
|
|
10
|
-
return Object.freeze({
|
|
11
|
-
...expression,
|
|
12
|
-
value: input
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
/** Bind a value while declaring its SQL semantic domain. */
|
|
16
|
-
function typedValue(input) {
|
|
17
|
-
return value(input);
|
|
18
|
-
}
|
|
19
|
-
function isExpressionValue(valueToCheck) {
|
|
20
|
-
return typeof valueToCheck === "object" && valueToCheck !== null && "expressionKind" in valueToCheck && "render" in valueToCheck && typeof valueToCheck.render === "function";
|
|
21
|
-
}
|
|
22
|
-
function isValueExpression(valueToCheck) {
|
|
23
|
-
return isExpressionValue(valueToCheck) && valueToCheck.expressionKind === "value" && "value" in valueToCheck;
|
|
24
|
-
}
|
|
25
|
-
function asValue(input) {
|
|
26
|
-
return isExpressionValue(input) ? input : value(input);
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
export { parameter as a, value as i, isValueExpression as n, typedValue as r, asValue as t };
|