@prisma/orm-family-sql 8.0.0-rc.20-dev.14 → 8.0.0-rc.21
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/{attribute-specs-DA_RwQFB.d.mts → attribute-specs-Dcd2ZUrY.d.mts} +4 -3
- package/dist/attribute-specs-Dcd2ZUrY.d.mts.map +1 -0
- package/dist/{authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts → authoring-entity-types-CgKIgWq5-CZK1F9a_.d.mts} +2 -2
- package/dist/{authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts.map → authoring-entity-types-CgKIgWq5-CZK1F9a_.d.mts.map} +1 -1
- package/dist/compare-strings-BVf3BgCV-CefXnrMB.mjs +10 -0
- package/dist/compare-strings-BVf3BgCV-CefXnrMB.mjs.map +1 -0
- package/dist/{contract-builder-C_Zi57iD.d.mts → contract-builder-B-Q9T1CO.d.mts} +10 -79
- package/dist/contract-builder-B-Q9T1CO.d.mts.map +1 -0
- package/dist/{contract-builder-50lF0kz1.mjs → contract-builder-DMNe_jX9.mjs} +109 -96
- package/dist/contract-builder-DMNe_jX9.mjs.map +1 -0
- package/dist/contract-prisma7__provider.mjs +2 -2
- package/dist/contract-psl.d.mts +2 -2
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +1 -1
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__diagnostics.d.mts +3 -4
- package/dist/contract-psl__diagnostics.d.mts.map +1 -1
- package/dist/contract-psl__diagnostics.mjs +1 -1
- package/dist/contract-psl__provider.mjs +1 -1
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +1 -1
- package/dist/contract-ts.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +1 -1
- package/dist/contract-ts__contract-builder.mjs +1 -1
- package/dist/contract.d.mts +2 -1
- package/dist/contract.mjs +2 -1
- package/dist/contract__generated-id-column-aliases.d.mts +2 -0
- package/dist/contract__generated-id-column-aliases.mjs +2 -0
- package/dist/{control-CffuMKgt.d.mts → control-B6W_VEZ9.d.mts} +50 -176
- package/dist/control-B6W_VEZ9.d.mts.map +1 -0
- package/dist/{control-D7N_L18S.mjs → control-D6wIw5Fi.mjs} +4 -5
- package/dist/control-D6wIw5Fi.mjs.map +1 -0
- package/dist/diagnostics-C7jR1Jyf.mjs +109 -0
- package/dist/diagnostics-C7jR1Jyf.mjs.map +1 -0
- package/dist/family.d.mts +4 -4
- package/dist/family.mjs +5 -6
- package/dist/family__control.d.mts +1 -1
- package/dist/family__control.mjs +1 -1
- package/dist/family__pack.d.mts +2 -2
- package/dist/family__pack.mjs +27 -3
- package/dist/family__pack.mjs.map +1 -0
- package/dist/family__psl-build.mjs +1 -1
- package/dist/family__runtime.d.mts +1 -1
- package/dist/family__runtime.mjs +1 -1
- package/dist/generated-id-column-aliases-DCuTuZrU.d.mts +71 -0
- package/dist/generated-id-column-aliases-DCuTuZrU.d.mts.map +1 -0
- package/dist/generated-id-column-aliases-DPUii1fN.mjs +51 -0
- package/dist/generated-id-column-aliases-DPUii1fN.mjs.map +1 -0
- package/dist/{generator-functions-Cg5QkM46-C1ByFzyT.mjs → generator-functions-Hy4pDDr9-AUCNpeg5.mjs} +49 -187
- package/dist/generator-functions-Hy4pDDr9-AUCNpeg5.mjs.map +1 -0
- package/dist/{interpreter-D5qk4B---CG0C7kdx.mjs → interpreter-CS21wD1i-G0u1x8t_.mjs} +13 -10
- package/dist/interpreter-CS21wD1i-G0u1x8t_.mjs.map +1 -0
- package/dist/orm-client.d.mts +2 -2
- package/dist/orm-client.mjs +2 -2
- package/dist/orm-client.mjs.map +1 -1
- package/dist/{pack-DA8HZ2mo.d.mts → pack-Cap3oVPy.d.mts} +69 -280
- package/dist/pack-Cap3oVPy.d.mts.map +1 -0
- package/dist/{psl-build-DFBG6vhz.mjs → psl-build-DqqYhOsa.mjs} +2 -2
- package/dist/psl-build-DqqYhOsa.mjs.map +1 -0
- package/dist/{psl-column-resolution-ChZqioOc-BREg4J7d.d.mts → psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts} +4 -4
- package/dist/psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts.map +1 -0
- package/dist/{psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs → psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs} +20 -107
- package/dist/psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs.map +1 -0
- package/dist/{runtime-6tH1yOxK.mjs → runtime-CCzfa1mY.mjs} +2 -3
- package/dist/{runtime-6tH1yOxK.mjs.map → runtime-CCzfa1mY.mjs.map} +1 -1
- package/dist/{runtime-CF6rAlE5.d.mts → runtime-JKWb27L5.d.mts} +2 -3
- package/dist/{runtime-CF6rAlE5.d.mts.map → runtime-JKWb27L5.d.mts.map} +1 -1
- package/package.json +19 -18
- package/dist/attribute-specs-DA_RwQFB.d.mts.map +0 -1
- package/dist/contract-builder-50lF0kz1.mjs.map +0 -1
- package/dist/contract-builder-C_Zi57iD.d.mts.map +0 -1
- package/dist/control-CffuMKgt.d.mts.map +0 -1
- package/dist/control-D7N_L18S.mjs.map +0 -1
- package/dist/diagnostics-RHJxoiIk.mjs +0 -23
- package/dist/diagnostics-RHJxoiIk.mjs.map +0 -1
- package/dist/generator-functions-Cg5QkM46-C1ByFzyT.mjs.map +0 -1
- package/dist/interpreter-D5qk4B---CG0C7kdx.mjs.map +0 -1
- package/dist/pack-DA8HZ2mo.d.mts.map +0 -1
- package/dist/pack-DOTaBfUC.mjs +0 -80
- package/dist/pack-DOTaBfUC.mjs.map +0 -1
- package/dist/psl-build-DFBG6vhz.mjs.map +0 -1
- package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts.map +0 -1
- package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs.map +0 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { n as generatedIdColumnAliases, t as GENERATED_ID_COLUMN_ALIAS_NAMESPACES } from "./generated-id-column-aliases-DPUii1fN.mjs";
|
|
2
|
+
import "./sql-expression-CKgKznXS.mjs";
|
|
3
|
+
import { a as parseQuotedStringLiteral } from "./psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs";
|
|
4
|
+
import { t as compareStrings } from "./compare-strings-BVf3BgCV-CefXnrMB.mjs";
|
|
5
|
+
import { isAuthoringTypeDescriptor, printTaggedLiteral } from "@prisma/orm-framework/components/authoring";
|
|
6
|
+
import { describeRemovedFieldPreset, removedPresetWithPhases, removedPresetWrittenAs } from "@prisma/orm-framework/psl-parser/interpret";
|
|
7
|
+
//#region ../../../2-sql-family/2-authoring/contract-psl/dist/diagnostics.mjs
|
|
8
|
+
const NANOID_OPTIONS = /^\{\s*(?:size\s*:\s*(\d+)\s*,?\s*)?\}$/;
|
|
9
|
+
function nanoidSize(call) {
|
|
10
|
+
const [options, ...rest] = call.args;
|
|
11
|
+
if (options === void 0) return {};
|
|
12
|
+
if (rest.length > 0 || options.kind !== "positional") return void 0;
|
|
13
|
+
const match = NANOID_OPTIONS.exec(options.value);
|
|
14
|
+
if (match === null) return void 0;
|
|
15
|
+
return match[1] === void 0 ? {} : { size: match[1] };
|
|
16
|
+
}
|
|
17
|
+
function qualified(namespace, name) {
|
|
18
|
+
return [...namespace, name].join(".");
|
|
19
|
+
}
|
|
20
|
+
/** The rows of a preset whose rewrite writes the generated id column alias `alias`, then `attributes` when given, in each namespace that may name it. */
|
|
21
|
+
function idAlias(alias, attributes) {
|
|
22
|
+
return GENERATED_ID_COLUMN_ALIAS_NAMESPACES.flatMap((namespace) => removedPresetWrittenAs(`${qualified(namespace, alias)}${attributes === void 0 ? "" : ` ${attributes}`}`, generatedIdColumnAliases[alias].output.type.codecId));
|
|
23
|
+
}
|
|
24
|
+
function nanoid(id) {
|
|
25
|
+
return GENERATED_ID_COLUMN_ALIAS_NAMESPACES.map((namespace) => {
|
|
26
|
+
const write = (size) => {
|
|
27
|
+
const column = size === void 0 ? qualified(namespace, "Nanoid") : qualified(namespace, `Char(${size})`);
|
|
28
|
+
return id ? `${column} @id @onCreate(nanoid(${size ?? ""}))` : column;
|
|
29
|
+
};
|
|
30
|
+
return {
|
|
31
|
+
type: [...namespace, "Nanoid"],
|
|
32
|
+
codecId: generatedIdColumnAliases.Nanoid.output.type.codecId,
|
|
33
|
+
rewrite: (call) => {
|
|
34
|
+
const options = nanoidSize(call);
|
|
35
|
+
return options === void 0 ? `Write ${write(void 0)}, or ${write("n")} for a size of n.` : `Write ${write(options.size)}.`;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/** The SQL family's removed field presets: each row applies only where its rewrite's type stores the preset's codec, and a row with no codec id writes a type alias only the targets with the preset contribute. A generated id preset is written with the target's top-level alias where it has one, and with the `sql.` alias elsewhere. */
|
|
41
|
+
const removedSqlFieldPresets = {
|
|
42
|
+
uuidString: idAlias("UuidString"),
|
|
43
|
+
ulid: idAlias("Ulid"),
|
|
44
|
+
nanoid: nanoid(false),
|
|
45
|
+
cuid2: idAlias("Cuid2"),
|
|
46
|
+
ksuid: idAlias("Ksuid"),
|
|
47
|
+
"id.uuidv4String": idAlias("UuidString", "@id @onCreate(uuid())"),
|
|
48
|
+
"id.uuidv7String": idAlias("UuidString", "@id @onCreate(uuid(7))"),
|
|
49
|
+
"id.ulid": idAlias("Ulid", "@id @onCreate(ulid())"),
|
|
50
|
+
"id.nanoid": nanoid(true),
|
|
51
|
+
"id.cuid2": idAlias("Cuid2", "@id @onCreate(cuid(2))"),
|
|
52
|
+
"id.ksuid": idAlias("Ksuid", "@id @onCreate(ksuid())"),
|
|
53
|
+
text: removedPresetWrittenAs("String", "pg/text@1"),
|
|
54
|
+
int: removedPresetWrittenAs("Int", "pg/int4@1"),
|
|
55
|
+
bigint: removedPresetWrittenAs("BigInt", "pg/int8@1"),
|
|
56
|
+
float: removedPresetWrittenAs("Float", "pg/float8@1"),
|
|
57
|
+
decimal: removedPresetWrittenAs("Decimal", "pg/numeric@1"),
|
|
58
|
+
boolean: removedPresetWrittenAs("Boolean", "pg/bool@1"),
|
|
59
|
+
json: removedPresetWrittenAs("Jsonb", "pg/jsonb@1"),
|
|
60
|
+
bytes: removedPresetWrittenAs("Bytes", "pg/bytea@1"),
|
|
61
|
+
dateTime: removedPresetWrittenAs("DateTime", "pg/timestamptz-temporal@1"),
|
|
62
|
+
uuidNative: removedPresetWrittenAs("Uuid", "pg/uuid@1"),
|
|
63
|
+
"id.uuidv4Native": removedPresetWrittenAs("Uuid @id @onCreate(uuid())", "pg/uuid@1"),
|
|
64
|
+
"id.uuidv7Native": removedPresetWrittenAs("Uuid @id @onCreate(uuid(7))", "pg/uuid@1"),
|
|
65
|
+
"temporal.createdAt": removedPresetWrittenAs("temporal.CreatedAt"),
|
|
66
|
+
"temporal.updatedAt": removedPresetWrittenAs("temporal.UpdatedAt"),
|
|
67
|
+
"temporal.createdAtString": removedPresetWrittenAs("temporal.CreatedAtString"),
|
|
68
|
+
"temporal.updatedAtString": removedPresetWrittenAs("temporal.UpdatedAtString"),
|
|
69
|
+
"temporal.createdAtJsDate": removedPresetWrittenAs("temporal.CreatedAtJsDate"),
|
|
70
|
+
"temporal.updatedAtJsDate": removedPresetWrittenAs("temporal.UpdatedAtJsDate"),
|
|
71
|
+
"temporal.timestamp": removedPresetWithPhases("TimestampTemporal", "pg/timestamp-temporal@1", true),
|
|
72
|
+
"temporal.timestamptz": removedPresetWithPhases("TimestamptzTemporal", "pg/timestamptz-temporal@1", true),
|
|
73
|
+
"temporal.timestampString": removedPresetWithPhases("TimestampString", "pg/timestamp-string@1", true),
|
|
74
|
+
"temporal.timestamptzString": removedPresetWithPhases("TimestamptzString", "pg/timestamptz-string@1", true),
|
|
75
|
+
"temporal.timestamptzJsDate": removedPresetWithPhases("TimestamptzJsDate", "pg/timestamptz-date@1", true),
|
|
76
|
+
"temporal.date": removedPresetWithPhases("Date", "pg/date-temporal@1", false),
|
|
77
|
+
"temporal.dateString": removedPresetWithPhases("DateString", "pg/date-string@1", false),
|
|
78
|
+
"temporal.time": removedPresetWithPhases("Time", "pg/time-temporal@1", true),
|
|
79
|
+
"temporal.timeString": removedPresetWithPhases("TimeString", "pg/time-string@1", true),
|
|
80
|
+
"temporal.timetz": removedPresetWithPhases("Timetz", "pg/timetz@1", true),
|
|
81
|
+
"temporal.datetime": removedPresetWithPhases("DateTime", "sqlite/datetime@1", false)
|
|
82
|
+
};
|
|
83
|
+
/** The default message for a bare type name, followed by the types of that name in a contributed namespace in sorted order, such as `sql.Ulid` for `Ulid`, or `undefined` when no namespace has one. */
|
|
84
|
+
function suggestNamespacedTypes(written, types) {
|
|
85
|
+
const candidates = Object.entries(types).flatMap(([namespace, member]) => {
|
|
86
|
+
if (isAuthoringTypeDescriptor(member) || !Object.hasOwn(member, written)) return [];
|
|
87
|
+
const type = member[written];
|
|
88
|
+
return type !== void 0 && isAuthoringTypeDescriptor(type) ? [`${namespace}.${written}`] : [];
|
|
89
|
+
}).sort(compareStrings);
|
|
90
|
+
return candidates.length === 0 ? void 0 : `Cannot find type "${written}". Did you mean ${candidates.join(" or ")}?`;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The message for a field type the binder cannot find. A call to a field preset Prisma 8 removed names what to write instead, and a bare name that a contributed namespace holds names that type. `Unsupported("x")`, the Prisma 6 and Prisma 7 way to keep a column of a type those versions do not know, is named as no Prisma 8 type; any other name keeps the binder's message.
|
|
94
|
+
*/
|
|
95
|
+
function describeUnresolvedSqlType(contributions) {
|
|
96
|
+
return ({ field, written, isDeclared }) => {
|
|
97
|
+
const call = field.typeConstructor;
|
|
98
|
+
if (call === void 0) return field.typeNamespaceId === void 0 ? suggestNamespacedTypes(written, contributions.type) : void 0;
|
|
99
|
+
if (written !== "Unsupported") return describeRemovedFieldPreset(removedSqlFieldPresets, call, contributions.type, isDeclared);
|
|
100
|
+
const [argument, ...rest] = call.args;
|
|
101
|
+
const typeName = argument?.kind === "positional" && rest.length === 0 ? parseQuotedStringLiteral(argument.value) : void 0;
|
|
102
|
+
if (typeName === void 0) return void 0;
|
|
103
|
+
return `Unsupported(${JSON.stringify(typeName)}) is not a Prisma 8 type. Write the column's type with a type constructor, or as Raw(${printTaggedLiteral("sql", typeName)}) when no type constructor names it. If ${JSON.stringify(typeName)} comes from a database extension that has a Prisma 8 pack, add the pack to extensions in prisma.config.ts.`;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
export { describeUnresolvedSqlType as t };
|
|
108
|
+
|
|
109
|
+
//# sourceMappingURL=diagnostics-C7jR1Jyf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnostics-C7jR1Jyf.mjs","names":[],"sources":["../../../../2-sql-family/2-authoring/contract-psl/dist/diagnostics.mjs"],"sourcesContent":["import { a as parseQuotedStringLiteral } from \"./psl-attribute-parsing-BCsFWsSp.mjs\";\nimport { t as compareStrings } from \"./compare-strings-BVf3BgCV.mjs\";\nimport { isAuthoringTypeDescriptor, printTaggedLiteral } from \"@internal/framework-components/authoring\";\nimport { describeRemovedFieldPreset, removedPresetWithPhases, removedPresetWrittenAs } from \"@internal/psl-parser/interpret\";\nimport { SQL_EXPRESSION_TAG } from \"@internal/sql-contract/sql-expression\";\nimport { GENERATED_ID_COLUMN_ALIAS_NAMESPACES, generatedIdColumnAliases } from \"@internal/sql-contract/generated-id-column-aliases\";\n//#region src/removed-field-presets.ts\nconst NANOID_OPTIONS = /^\\{\\s*(?:size\\s*:\\s*(\\d+)\\s*,?\\s*)?\\}$/;\nfunction nanoidSize(call) {\n\tconst [options, ...rest] = call.args;\n\tif (options === void 0) return {};\n\tif (rest.length > 0 || options.kind !== \"positional\") return void 0;\n\tconst match = NANOID_OPTIONS.exec(options.value);\n\tif (match === null) return void 0;\n\treturn match[1] === void 0 ? {} : { size: match[1] };\n}\nfunction qualified(namespace, name) {\n\treturn [...namespace, name].join(\".\");\n}\n/** The rows of a preset whose rewrite writes the generated id column alias `alias`, then `attributes` when given, in each namespace that may name it. */\nfunction idAlias(alias, attributes) {\n\treturn GENERATED_ID_COLUMN_ALIAS_NAMESPACES.flatMap((namespace) => removedPresetWrittenAs(`${qualified(namespace, alias)}${attributes === void 0 ? \"\" : ` ${attributes}`}`, generatedIdColumnAliases[alias].output.type.codecId));\n}\nfunction nanoid(id) {\n\treturn GENERATED_ID_COLUMN_ALIAS_NAMESPACES.map((namespace) => {\n\t\tconst write = (size) => {\n\t\t\tconst column = size === void 0 ? qualified(namespace, \"Nanoid\") : qualified(namespace, `Char(${size})`);\n\t\t\treturn id ? `${column} @id @onCreate(nanoid(${size ?? \"\"}))` : column;\n\t\t};\n\t\treturn {\n\t\t\ttype: [...namespace, \"Nanoid\"],\n\t\t\tcodecId: generatedIdColumnAliases.Nanoid.output.type.codecId,\n\t\t\trewrite: (call) => {\n\t\t\t\tconst options = nanoidSize(call);\n\t\t\t\treturn options === void 0 ? `Write ${write(void 0)}, or ${write(\"n\")} for a size of n.` : `Write ${write(options.size)}.`;\n\t\t\t}\n\t\t};\n\t});\n}\n/** The SQL family's removed field presets: each row applies only where its rewrite's type stores the preset's codec, and a row with no codec id writes a type alias only the targets with the preset contribute. A generated id preset is written with the target's top-level alias where it has one, and with the `sql.` alias elsewhere. */\nconst removedSqlFieldPresets = {\n\tuuidString: idAlias(\"UuidString\"),\n\tulid: idAlias(\"Ulid\"),\n\tnanoid: nanoid(false),\n\tcuid2: idAlias(\"Cuid2\"),\n\tksuid: idAlias(\"Ksuid\"),\n\t\"id.uuidv4String\": idAlias(\"UuidString\", \"@id @onCreate(uuid())\"),\n\t\"id.uuidv7String\": idAlias(\"UuidString\", \"@id @onCreate(uuid(7))\"),\n\t\"id.ulid\": idAlias(\"Ulid\", \"@id @onCreate(ulid())\"),\n\t\"id.nanoid\": nanoid(true),\n\t\"id.cuid2\": idAlias(\"Cuid2\", \"@id @onCreate(cuid(2))\"),\n\t\"id.ksuid\": idAlias(\"Ksuid\", \"@id @onCreate(ksuid())\"),\n\ttext: removedPresetWrittenAs(\"String\", \"pg/text@1\"),\n\tint: removedPresetWrittenAs(\"Int\", \"pg/int4@1\"),\n\tbigint: removedPresetWrittenAs(\"BigInt\", \"pg/int8@1\"),\n\tfloat: removedPresetWrittenAs(\"Float\", \"pg/float8@1\"),\n\tdecimal: removedPresetWrittenAs(\"Decimal\", \"pg/numeric@1\"),\n\tboolean: removedPresetWrittenAs(\"Boolean\", \"pg/bool@1\"),\n\tjson: removedPresetWrittenAs(\"Jsonb\", \"pg/jsonb@1\"),\n\tbytes: removedPresetWrittenAs(\"Bytes\", \"pg/bytea@1\"),\n\tdateTime: removedPresetWrittenAs(\"DateTime\", \"pg/timestamptz-temporal@1\"),\n\tuuidNative: removedPresetWrittenAs(\"Uuid\", \"pg/uuid@1\"),\n\t\"id.uuidv4Native\": removedPresetWrittenAs(\"Uuid @id @onCreate(uuid())\", \"pg/uuid@1\"),\n\t\"id.uuidv7Native\": removedPresetWrittenAs(\"Uuid @id @onCreate(uuid(7))\", \"pg/uuid@1\"),\n\t\"temporal.createdAt\": removedPresetWrittenAs(\"temporal.CreatedAt\"),\n\t\"temporal.updatedAt\": removedPresetWrittenAs(\"temporal.UpdatedAt\"),\n\t\"temporal.createdAtString\": removedPresetWrittenAs(\"temporal.CreatedAtString\"),\n\t\"temporal.updatedAtString\": removedPresetWrittenAs(\"temporal.UpdatedAtString\"),\n\t\"temporal.createdAtJsDate\": removedPresetWrittenAs(\"temporal.CreatedAtJsDate\"),\n\t\"temporal.updatedAtJsDate\": removedPresetWrittenAs(\"temporal.UpdatedAtJsDate\"),\n\t\"temporal.timestamp\": removedPresetWithPhases(\"TimestampTemporal\", \"pg/timestamp-temporal@1\", true),\n\t\"temporal.timestamptz\": removedPresetWithPhases(\"TimestamptzTemporal\", \"pg/timestamptz-temporal@1\", true),\n\t\"temporal.timestampString\": removedPresetWithPhases(\"TimestampString\", \"pg/timestamp-string@1\", true),\n\t\"temporal.timestamptzString\": removedPresetWithPhases(\"TimestamptzString\", \"pg/timestamptz-string@1\", true),\n\t\"temporal.timestamptzJsDate\": removedPresetWithPhases(\"TimestamptzJsDate\", \"pg/timestamptz-date@1\", true),\n\t\"temporal.date\": removedPresetWithPhases(\"Date\", \"pg/date-temporal@1\", false),\n\t\"temporal.dateString\": removedPresetWithPhases(\"DateString\", \"pg/date-string@1\", false),\n\t\"temporal.time\": removedPresetWithPhases(\"Time\", \"pg/time-temporal@1\", true),\n\t\"temporal.timeString\": removedPresetWithPhases(\"TimeString\", \"pg/time-string@1\", true),\n\t\"temporal.timetz\": removedPresetWithPhases(\"Timetz\", \"pg/timetz@1\", true),\n\t\"temporal.datetime\": removedPresetWithPhases(\"DateTime\", \"sqlite/datetime@1\", false)\n};\n//#endregion\n//#region src/unresolved-type.ts\n/** The default message for a bare type name, followed by the types of that name in a contributed namespace in sorted order, such as `sql.Ulid` for `Ulid`, or `undefined` when no namespace has one. */\nfunction suggestNamespacedTypes(written, types) {\n\tconst candidates = Object.entries(types).flatMap(([namespace, member]) => {\n\t\tif (isAuthoringTypeDescriptor(member) || !Object.hasOwn(member, written)) return [];\n\t\tconst type = member[written];\n\t\treturn type !== void 0 && isAuthoringTypeDescriptor(type) ? [`${namespace}.${written}`] : [];\n\t}).sort(compareStrings);\n\treturn candidates.length === 0 ? void 0 : `Cannot find type \"${written}\". Did you mean ${candidates.join(\" or \")}?`;\n}\n/**\n* The message for a field type the binder cannot find. A call to a field preset Prisma 8 removed names what to write instead, and a bare name that a contributed namespace holds names that type. `Unsupported(\"x\")`, the Prisma 6 and Prisma 7 way to keep a column of a type those versions do not know, is named as no Prisma 8 type; any other name keeps the binder's message.\n*/\nfunction describeUnresolvedSqlType(contributions) {\n\treturn ({ field, written, isDeclared }) => {\n\t\tconst call = field.typeConstructor;\n\t\tif (call === void 0) return field.typeNamespaceId === void 0 ? suggestNamespacedTypes(written, contributions.type) : void 0;\n\t\tif (written !== \"Unsupported\") return describeRemovedFieldPreset(removedSqlFieldPresets, call, contributions.type, isDeclared);\n\t\tconst [argument, ...rest] = call.args;\n\t\tconst typeName = argument?.kind === \"positional\" && rest.length === 0 ? parseQuotedStringLiteral(argument.value) : void 0;\n\t\tif (typeName === void 0) return void 0;\n\t\treturn `Unsupported(${JSON.stringify(typeName)}) is not a Prisma 8 type. Write the column's type with a type constructor, or as Raw(${printTaggedLiteral(SQL_EXPRESSION_TAG, typeName)}) when no type constructor names it. If ${JSON.stringify(typeName)} comes from a database extension that has a Prisma 8 pack, add the pack to extensions in prisma.config.ts.`;\n\t};\n}\n//#endregion\nexport { describeUnresolvedSqlType };\n\n//# sourceMappingURL=diagnostics.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,iBAAiB;AACvB,SAAS,WAAW,MAAM;CACzB,MAAM,CAAC,SAAS,GAAG,QAAQ,KAAK;CAChC,IAAI,YAAY,KAAK,GAAG,OAAO,CAAC;CAChC,IAAI,KAAK,SAAS,KAAK,QAAQ,SAAS,cAAc,OAAO,KAAK;CAClE,MAAM,QAAQ,eAAe,KAAK,QAAQ,KAAK;CAC/C,IAAI,UAAU,MAAM,OAAO,KAAK;CAChC,OAAO,MAAM,OAAO,KAAK,IAAI,CAAC,IAAI,EAAE,MAAM,MAAM,GAAG;AACpD;AACA,SAAS,UAAU,WAAW,MAAM;CACnC,OAAO,CAAC,GAAG,WAAW,IAAI,CAAC,CAAC,KAAK,GAAG;AACrC;;AAEA,SAAS,QAAQ,OAAO,YAAY;CACnC,OAAO,qCAAqC,SAAS,cAAc,uBAAuB,GAAG,UAAU,WAAW,KAAK,IAAI,eAAe,KAAK,IAAI,KAAK,IAAI,gBAAgB,yBAAyB,MAAM,CAAC,OAAO,KAAK,OAAO,CAAC;AACjO;AACA,SAAS,OAAO,IAAI;CACnB,OAAO,qCAAqC,KAAK,cAAc;EAC9D,MAAM,SAAS,SAAS;GACvB,MAAM,SAAS,SAAS,KAAK,IAAI,UAAU,WAAW,QAAQ,IAAI,UAAU,WAAW,QAAQ,KAAK,EAAE;GACtG,OAAO,KAAK,GAAG,OAAO,wBAAwB,QAAQ,GAAG,MAAM;EAChE;EACA,OAAO;GACN,MAAM,CAAC,GAAG,WAAW,QAAQ;GAC7B,SAAS,yBAAyB,OAAO,OAAO,KAAK;GACrD,UAAU,SAAS;IAClB,MAAM,UAAU,WAAW,IAAI;IAC/B,OAAO,YAAY,KAAK,IAAI,SAAS,MAAM,KAAK,CAAC,EAAE,OAAO,MAAM,GAAG,EAAE,qBAAqB,SAAS,MAAM,QAAQ,IAAI,EAAE;GACxH;EACD;CACD,CAAC;AACF;;AAEA,MAAM,yBAAyB;CAC9B,YAAY,QAAQ,YAAY;CAChC,MAAM,QAAQ,MAAM;CACpB,QAAQ,OAAO,KAAK;CACpB,OAAO,QAAQ,OAAO;CACtB,OAAO,QAAQ,OAAO;CACtB,mBAAmB,QAAQ,cAAc,uBAAuB;CAChE,mBAAmB,QAAQ,cAAc,wBAAwB;CACjE,WAAW,QAAQ,QAAQ,uBAAuB;CAClD,aAAa,OAAO,IAAI;CACxB,YAAY,QAAQ,SAAS,wBAAwB;CACrD,YAAY,QAAQ,SAAS,wBAAwB;CACrD,MAAM,uBAAuB,UAAU,WAAW;CAClD,KAAK,uBAAuB,OAAO,WAAW;CAC9C,QAAQ,uBAAuB,UAAU,WAAW;CACpD,OAAO,uBAAuB,SAAS,aAAa;CACpD,SAAS,uBAAuB,WAAW,cAAc;CACzD,SAAS,uBAAuB,WAAW,WAAW;CACtD,MAAM,uBAAuB,SAAS,YAAY;CAClD,OAAO,uBAAuB,SAAS,YAAY;CACnD,UAAU,uBAAuB,YAAY,2BAA2B;CACxE,YAAY,uBAAuB,QAAQ,WAAW;CACtD,mBAAmB,uBAAuB,8BAA8B,WAAW;CACnF,mBAAmB,uBAAuB,+BAA+B,WAAW;CACpF,sBAAsB,uBAAuB,oBAAoB;CACjE,sBAAsB,uBAAuB,oBAAoB;CACjE,4BAA4B,uBAAuB,0BAA0B;CAC7E,4BAA4B,uBAAuB,0BAA0B;CAC7E,4BAA4B,uBAAuB,0BAA0B;CAC7E,4BAA4B,uBAAuB,0BAA0B;CAC7E,sBAAsB,wBAAwB,qBAAqB,2BAA2B,IAAI;CAClG,wBAAwB,wBAAwB,uBAAuB,6BAA6B,IAAI;CACxG,4BAA4B,wBAAwB,mBAAmB,yBAAyB,IAAI;CACpG,8BAA8B,wBAAwB,qBAAqB,2BAA2B,IAAI;CAC1G,8BAA8B,wBAAwB,qBAAqB,yBAAyB,IAAI;CACxG,iBAAiB,wBAAwB,QAAQ,sBAAsB,KAAK;CAC5E,uBAAuB,wBAAwB,cAAc,oBAAoB,KAAK;CACtF,iBAAiB,wBAAwB,QAAQ,sBAAsB,IAAI;CAC3E,uBAAuB,wBAAwB,cAAc,oBAAoB,IAAI;CACrF,mBAAmB,wBAAwB,UAAU,eAAe,IAAI;CACxE,qBAAqB,wBAAwB,YAAY,qBAAqB,KAAK;AACpF;;AAIA,SAAS,uBAAuB,SAAS,OAAO;CAC/C,MAAM,aAAa,OAAO,QAAQ,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,YAAY;EACzE,IAAI,0BAA0B,MAAM,KAAK,CAAC,OAAO,OAAO,QAAQ,OAAO,GAAG,OAAO,CAAC;EAClF,MAAM,OAAO,OAAO;EACpB,OAAO,SAAS,KAAK,KAAK,0BAA0B,IAAI,IAAI,CAAC,GAAG,UAAU,GAAG,SAAS,IAAI,CAAC;CAC5F,CAAC,CAAC,CAAC,KAAK,cAAc;CACtB,OAAO,WAAW,WAAW,IAAI,KAAK,IAAI,qBAAqB,QAAQ,kBAAkB,WAAW,KAAK,MAAM,EAAE;AAClH;;;;AAIA,SAAS,0BAA0B,eAAe;CACjD,QAAQ,EAAE,OAAO,SAAS,iBAAiB;EAC1C,MAAM,OAAO,MAAM;EACnB,IAAI,SAAS,KAAK,GAAG,OAAO,MAAM,oBAAoB,KAAK,IAAI,uBAAuB,SAAS,cAAc,IAAI,IAAI,KAAK;EAC1H,IAAI,YAAY,eAAe,OAAO,2BAA2B,wBAAwB,MAAM,cAAc,MAAM,UAAU;EAC7H,MAAM,CAAC,UAAU,GAAG,QAAQ,KAAK;EACjC,MAAM,WAAW,UAAU,SAAS,gBAAgB,KAAK,WAAW,IAAI,yBAAyB,SAAS,KAAK,IAAI,KAAK;EACxH,IAAI,aAAa,KAAK,GAAG,OAAO,KAAK;EACrC,OAAO,eAAe,KAAK,UAAU,QAAQ,EAAE,uFAAuF,mBAAA,OAAuC,QAAQ,EAAE,0CAA0C,KAAK,UAAU,QAAQ,EAAE;CAC3P;AACD"}
|
package/dist/family.d.mts
CHANGED
|
@@ -3,15 +3,15 @@ import { h as checkSqlDefaultText } from "./validators-FJs8HvFr.mjs";
|
|
|
3
3
|
import { n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-BfyLe7rh-C_rrUuhb.mjs";
|
|
4
4
|
import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-DcuULeD9.mjs";
|
|
5
5
|
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-tqHKiJ88.mjs";
|
|
6
|
-
import { $ as StatementPlanningTarget, $t as resolveTableRenameAgainst, A as NoTable, At as encodeStoredValue, B as SchemaTables, Bt as partitionIssuesByControlPolicy, C as MigrationPlannerConflict, Ct as contractToSchemaIR, D as NO_RENAMED_ORIGINS, Dt as createSqlTextSources, E as ModelTable, Et as createMigrationPlan, F as ReportedBody, Ft as fieldStatementColumns, G as SqlDescribedContractSpace, Gt as plannerFailure, H as SqlControlFamilyInstance, Ht as planFieldEventCalls, I as ReportedLiteralDefault, It as isUnfilledSlot, J as SqlQuotingRules, Jt as readReportedDefault, K as SqlPslBuildContext, Kt as plannerSuccess, L as RequiredColumn, Lt as modelRenameStorageEffect, M as PlannedStatements, Mt as fieldEventStorage, N as ReadColumnDefault, Nt as fieldOfColumn, O as NamespaceRename, Ot as detectDestructiveChanges, P as ReadReportedDefault, Pt as fieldRenameStorageEffect, Q as StatementOwnership, Qt as resolveColumnRenameAgainst, R as RequiredColumnMark, Rt as otherSpaceDeclaring, S as MigrationPlanner, St as contractNamespaceToSchemaIR, T as ModelStorageEffect, Tt as convertedColumnOf, U as SqlControlTargetDescriptor, Ut as planFieldEventOperations, V as SingleOperationCall, Vt as planEnumValueRewrites, W as SqlDefaultFunctionName, Wt as planStatements, X as SqlTextSources, Xt as requiredColumnOf, Y as SqlSlot, Yt as requiredColumnMeta, Z as StatementColumn, Zt as requiredColumnsOfMigration, _ as INIT_ADDITIVE_POLICY, _n as withEnumValueOperations, _t as assembleAuthoringContributions, a as ColumnRename, an as runnerFailure, at as SuppressionRecord, b as MigrationPlan, bt as columnTakesTemporaryValue, c as ContractColumns, cn as sqlDefaultFunctions, ct as TableNameCaseGuardTable, d as ConvertedColumn, dn as storageNameOfOperation, dt as TableRenameRequest, en as rowsHoldingValueMeta, et as StoredEnumValue, f as DefaultResolver, fn as subjectsOfCalls, ft as TargetMigrationsCapability, g as FieldStorageEffect, gn as unmatchedTableRename, gt as appliedStatementsInOrder, h as FieldStatementColumns, hn as unmatchedColumnRename, i as ColumnOnOneSide, in as rowsWithoutValueSummary, it as SubjectStorage, j as PlanFieldEventOperationsOptions, jt as extractCodecControlHooks, k as NamespaceStatementTarget, kt as detectTableNameCaseChanges, l as ContractToSchemaIROptions, ln as sqlOfSlot, lt as TableRename, m as FieldEventCall, mn as unknownCallNames, mt as WorkingSchemaOrigins, n as CallSubjects, nn as rowsHoldingValueSummary, nt as StoredValueReplacement, o as ColumnRenameRequest, on as runnerSuccess, ot as TABLE_NAME_CASE_CHANGED_CODE, p as DefaultResolverColumn, pn as unconvertedFieldOf, pt as TargetRefusal, q as SqlQuote, qt as readColumnDefault, r as CallWithCompanions, rn as rowsWithoutValueFailure, rt as StoredValueRewrite, s as ContractColumn, sn as slotSource, st as TableMove, t as COLUMN_RENAME_UNMATCHED_CODE, tn as rowsHoldingValueOf, tt as StoredValueCodec, u as ControlPolicySubject, un as sqlTypeLookupsOf, ut as TableRenameByHand, v as MigrationOperationClass, vt as backfillOfDefaultedField, w as MigrationPlannerResult, wt as convertedColumnMeta, x as MigrationPlanOperation, xt as contractColumns, y as MigrationOperationPolicy, yt as checkSqlExpressionText, z as RowsHoldingValueMark, zt as partitionCallsByControlPolicy } from "./control-
|
|
6
|
+
import { $ as StatementPlanningTarget, $t as resolveTableRenameAgainst, A as NoTable, At as encodeStoredValue, B as SchemaTables, Bt as partitionIssuesByControlPolicy, C as MigrationPlannerConflict, Ct as contractToSchemaIR, D as NO_RENAMED_ORIGINS, Dt as createSqlTextSources, E as ModelTable, Et as createMigrationPlan, F as ReportedBody, Ft as fieldStatementColumns, G as SqlDescribedContractSpace, Gt as plannerFailure, H as SqlControlFamilyInstance, Ht as planFieldEventCalls, I as ReportedLiteralDefault, It as isUnfilledSlot, J as SqlQuotingRules, Jt as readReportedDefault, K as SqlPslBuildContext, Kt as plannerSuccess, L as RequiredColumn, Lt as modelRenameStorageEffect, M as PlannedStatements, Mt as fieldEventStorage, N as ReadColumnDefault, Nt as fieldOfColumn, O as NamespaceRename, Ot as detectDestructiveChanges, P as ReadReportedDefault, Pt as fieldRenameStorageEffect, Q as StatementOwnership, Qt as resolveColumnRenameAgainst, R as RequiredColumnMark, Rt as otherSpaceDeclaring, S as MigrationPlanner, St as contractNamespaceToSchemaIR, T as ModelStorageEffect, Tt as convertedColumnOf, U as SqlControlTargetDescriptor, Ut as planFieldEventOperations, V as SingleOperationCall, Vt as planEnumValueRewrites, W as SqlDefaultFunctionName, Wt as planStatements, X as SqlTextSources, Xt as requiredColumnOf, Y as SqlSlot, Yt as requiredColumnMeta, Z as StatementColumn, Zt as requiredColumnsOfMigration, _ as INIT_ADDITIVE_POLICY, _n as withEnumValueOperations, _t as assembleAuthoringContributions, a as ColumnRename, an as runnerFailure, at as SuppressionRecord, b as MigrationPlan, bt as columnTakesTemporaryValue, c as ContractColumns, cn as sqlDefaultFunctions, ct as TableNameCaseGuardTable, d as ConvertedColumn, dn as storageNameOfOperation, dt as TableRenameRequest, en as rowsHoldingValueMeta, et as StoredEnumValue, f as DefaultResolver, fn as subjectsOfCalls, ft as TargetMigrationsCapability, g as FieldStorageEffect, gn as unmatchedTableRename, gt as appliedStatementsInOrder, h as FieldStatementColumns, hn as unmatchedColumnRename, i as ColumnOnOneSide, in as rowsWithoutValueSummary, it as SubjectStorage, j as PlanFieldEventOperationsOptions, jt as extractCodecControlHooks, k as NamespaceStatementTarget, kt as detectTableNameCaseChanges, l as ContractToSchemaIROptions, ln as sqlOfSlot, lt as TableRename, m as FieldEventCall, mn as unknownCallNames, mt as WorkingSchemaOrigins, n as CallSubjects, nn as rowsHoldingValueSummary, nt as StoredValueReplacement, o as ColumnRenameRequest, on as runnerSuccess, ot as TABLE_NAME_CASE_CHANGED_CODE, p as DefaultResolverColumn, pn as unconvertedFieldOf, pt as TargetRefusal, q as SqlQuote, qt as readColumnDefault, r as CallWithCompanions, rn as rowsWithoutValueFailure, rt as StoredValueRewrite, s as ContractColumn, sn as slotSource, st as TableMove, t as COLUMN_RENAME_UNMATCHED_CODE, tn as rowsHoldingValueOf, tt as StoredValueCodec, u as ControlPolicySubject, un as sqlTypeLookupsOf, ut as TableRenameByHand, v as MigrationOperationClass, vt as backfillOfDefaultedField, w as MigrationPlannerResult, wt as convertedColumnMeta, x as MigrationPlanOperation, xt as contractColumns, y as MigrationOperationPolicy, yt as checkSqlExpressionText, z as RowsHoldingValueMark, zt as partitionCallsByControlPolicy } from "./control-B6W_VEZ9.mjs";
|
|
7
7
|
import { t as resolveIntrospectedColumnType } from "./control-adapter-CZ84jQ_z.mjs";
|
|
8
8
|
import { a as VerifySqlSchemaByDiffInput, c as classifySqlDiffIssue, d as verifySqlSchemaByDiff, i as StorageTypeVerdictInput, l as computeSqlDiffVerdict, n as SqlDiffVerdictInput, o as arraysEqual, r as StorageTypeVerdict, s as classifyDiffSubjectGranularity, t as SqlDiffVerdict, u as computeStorageTypeVerdict } from "./diff-FNTO8gbI.mjs";
|
|
9
9
|
import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-BvptQsFW.mjs";
|
|
10
10
|
import { t as SqlMigration } from "./migration-qalbcIUs.mjs";
|
|
11
|
-
import {
|
|
11
|
+
import { i as sqlTargetTypeConstructors, r as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./pack-Cap3oVPy.mjs";
|
|
12
12
|
import { a as writeDefaultLiteral, i as writeDataTypeValue, n as DefaultMappingResult, r as mapDefault, t as DefaultMappingOptions } from "./default-mapping-CAOONlKQ-4m07nb-O.mjs";
|
|
13
13
|
import { a as InferredTypeConstructors, c as PslTypeCall, d as inferColumnTypes, f as inferredTypeConstructors, i as InferredTypeConstructor, l as fewestArgumentsCall, m as writtenTypeArguments, n as GeneratorCallRefusal, o as IntrospectedTable, p as toEnumMemberName, r as GeneratorCallsResult, s as PhaseCallText, t as ColumnTypeOf, u as generatorCallsFor } from "./psl-build-RelubU2E.mjs";
|
|
14
14
|
import { a as buildChildRelationField, c as inferRelations, d as toFieldName, f as toModelName, i as RelationField, l as pluralize, n as InferredRelations, o as deriveBackRelationFieldName, r as PslPrinterOptions, s as deriveRelationFieldName, t as EnumInfo, u as toEnumName } from "./psl-infer-DzoxPZGd.mjs";
|
|
15
|
-
import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-
|
|
15
|
+
import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-JKWb27L5.mjs";
|
|
16
16
|
import { n as parseContractMarkerRow, t as ContractMarkerRow } from "./verify-DHXbuZPB.mjs";
|
|
17
|
-
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ColumnTypeOf, type ContractColumn, type ContractColumns, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultResolver, type DefaultResolverColumn, type EnumInfo, type ExecuteRequestLowerer, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, type GeneratorCallRefusal, type GeneratorCallsResult, INIT_ADDITIVE_POLICY, type InferredRelations, type InferredTypeConstructor, type InferredTypeConstructors, type IntrospectedTable, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, NO_RENAMED_ORIGINS, type NamespaceRename, type NamespaceStatementTarget, type NoTable, type PhaseCallText, type PlanFieldEventOperationsOptions, type PlannedStatements, type PslPrinterOptions, type PslTypeCall, type ReadColumnDefault, type ReadReportedDefault, type RelationField, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, type RowsHoldingValueMark, type SchemaTables, type SingleOperationCall, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementOwnership, type StatementPlanningTarget, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type StoredEnumValue, type StoredValueCodec, type StoredValueReplacement, type StoredValueRewrite, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableMove, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, type TargetRefusal, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, type WorkingSchemaOrigins, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, otherSpaceDeclaring, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsHoldingValueMeta, rowsHoldingValueOf, rowsHoldingValueSummary, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls,
|
|
17
|
+
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ColumnTypeOf, type ContractColumn, type ContractColumns, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultResolver, type DefaultResolverColumn, type EnumInfo, type ExecuteRequestLowerer, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, type GeneratorCallRefusal, type GeneratorCallsResult, INIT_ADDITIVE_POLICY, type InferredRelations, type InferredTypeConstructor, type InferredTypeConstructors, type IntrospectedTable, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, NO_RENAMED_ORIGINS, type NamespaceRename, type NamespaceStatementTarget, type NoTable, type PhaseCallText, type PlanFieldEventOperationsOptions, type PlannedStatements, type PslPrinterOptions, type PslTypeCall, type ReadColumnDefault, type ReadReportedDefault, type RelationField, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, type RowsHoldingValueMark, type SchemaTables, type SingleOperationCall, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementOwnership, type StatementPlanningTarget, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type StoredEnumValue, type StoredValueCodec, type StoredValueReplacement, type StoredValueRewrite, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableMove, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, type TargetRefusal, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, type WorkingSchemaOrigins, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, otherSpaceDeclaring, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsHoldingValueMeta, rowsHoldingValueOf, rowsHoldingValueSummary, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff, withEnumValueOperations, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
|
package/dist/family.mjs
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { t as resolveStorageTable } from "./resolve-storage-table-BHLQsOza.mjs";
|
|
2
2
|
import { n as checkSqlDefaultText } from "./validators-BwA7ttZM.mjs";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as sqlTargetTypeConstructors, s as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./generator-functions-Hy4pDDr9-AUCNpeg5.mjs";
|
|
4
4
|
import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as extractCodecControlHooks } from "./schema-verify-C3wbdviw-DMjIubOr.mjs";
|
|
5
5
|
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs";
|
|
6
6
|
import { n as parseContractMarkerRow } from "./verify-BVk5bjdH-DhKm6hB3.mjs";
|
|
7
|
-
import { $ as sqlTypeLookupsOf, A as planEnumValueRewrites, B as requiredColumnsOfMigration, C as fieldRenameStorageEffect, D as otherSpaceDeclaring, E as modelRenameStorageEffect, F as plannerSuccess, G as rowsHoldingValueSummary, H as resolveTableRenameAgainst, I as readColumnDefault, J as runnerFailure, K as rowsWithoutValueFailure, L as readReportedDefault, M as planFieldEventOperations, N as planStatements, O as partitionCallsByControlPolicy, P as plannerFailure, Q as sqlOfSlot, R as requiredColumnMeta, S as fieldOfColumn, T as isUnfilledSlot, U as rowsHoldingValueMeta, V as resolveColumnRenameAgainst, W as rowsHoldingValueOf, X as slotSource, Y as runnerSuccess, Z as sqlDefaultFunctions, _ as createSqlTextSources, a as appliedStatementsInOrder, at as unmatchedTableRename, b as encodeStoredValue, c as checkSqlExpressionText, d as contractNamespaceToSchemaIR, et as storageNameOfOperation, f as contractToSchemaIR, g as createMigrationPlan, h as convertedColumnOf, i as TABLE_NAME_CASE_CHANGED_CODE, it as unmatchedColumnRename, j as planFieldEventCalls, k as partitionIssuesByControlPolicy, l as columnTakesTemporaryValue, m as convertedColumnMeta, n as INIT_ADDITIVE_POLICY, nt as unconvertedFieldOf, o as assembleAuthoringContributions, ot as withEnumValueOperations, q as rowsWithoutValueSummary, r as NO_RENAMED_ORIGINS, rt as unknownCallNames, s as backfillOfDefaultedField, t as COLUMN_RENAME_UNMATCHED_CODE, tt as subjectsOfCalls, u as contractColumns, v as detectDestructiveChanges, w as fieldStatementColumns, x as fieldEventStorage, y as detectTableNameCaseChanges, z as requiredColumnOf } from "./control-
|
|
7
|
+
import { $ as sqlTypeLookupsOf, A as planEnumValueRewrites, B as requiredColumnsOfMigration, C as fieldRenameStorageEffect, D as otherSpaceDeclaring, E as modelRenameStorageEffect, F as plannerSuccess, G as rowsHoldingValueSummary, H as resolveTableRenameAgainst, I as readColumnDefault, J as runnerFailure, K as rowsWithoutValueFailure, L as readReportedDefault, M as planFieldEventOperations, N as planStatements, O as partitionCallsByControlPolicy, P as plannerFailure, Q as sqlOfSlot, R as requiredColumnMeta, S as fieldOfColumn, T as isUnfilledSlot, U as rowsHoldingValueMeta, V as resolveColumnRenameAgainst, W as rowsHoldingValueOf, X as slotSource, Y as runnerSuccess, Z as sqlDefaultFunctions, _ as createSqlTextSources, a as appliedStatementsInOrder, at as unmatchedTableRename, b as encodeStoredValue, c as checkSqlExpressionText, d as contractNamespaceToSchemaIR, et as storageNameOfOperation, f as contractToSchemaIR, g as createMigrationPlan, h as convertedColumnOf, i as TABLE_NAME_CASE_CHANGED_CODE, it as unmatchedColumnRename, j as planFieldEventCalls, k as partitionIssuesByControlPolicy, l as columnTakesTemporaryValue, m as convertedColumnMeta, n as INIT_ADDITIVE_POLICY, nt as unconvertedFieldOf, o as assembleAuthoringContributions, ot as withEnumValueOperations, q as rowsWithoutValueSummary, r as NO_RENAMED_ORIGINS, rt as unknownCallNames, s as backfillOfDefaultedField, t as COLUMN_RENAME_UNMATCHED_CODE, tt as subjectsOfCalls, u as contractColumns, v as detectDestructiveChanges, w as fieldStatementColumns, x as fieldEventStorage, y as detectTableNameCaseChanges, z as requiredColumnOf } from "./control-D6wIw5Fi.mjs";
|
|
8
8
|
import { t as resolveIntrospectedColumnType } from "./control-adapter-SlQkTEwT.mjs";
|
|
9
9
|
import { t as arraysEqual } from "./diff-C1rFOhek.mjs";
|
|
10
10
|
import { t as SqlSchemaVerifierBase } from "./ir-DzsUDO8e.mjs";
|
|
11
11
|
import { t as SqlMigration } from "./migration-BJQjkqFz.mjs";
|
|
12
|
-
import { n as temporalCodecPresetWithPrecision, r as temporalStringAuthoringPresets } from "./pack-DOTaBfUC.mjs";
|
|
13
12
|
import { s as toEnumMemberName } from "./psl-names-C3cwe0rg-D1CTmC3a.mjs";
|
|
14
|
-
import { a as mapDefault, c as writtenTypeArguments, i as inferredTypeConstructors, n as generatorCallsFor, o as writeDataTypeValue, r as inferColumnTypes, s as writeDefaultLiteral, t as fewestArgumentsCall } from "./psl-build-
|
|
13
|
+
import { a as mapDefault, c as writtenTypeArguments, i as inferredTypeConstructors, n as generatorCallsFor, o as writeDataTypeValue, r as inferColumnTypes, s as writeDefaultLiteral, t as fewestArgumentsCall } from "./psl-build-DqqYhOsa.mjs";
|
|
15
14
|
import { a as pluralize, c as toModelName, i as inferRelations, n as deriveBackRelationFieldName, o as toEnumName, r as deriveRelationFieldName, s as toFieldName, t as buildChildRelationField } from "./psl-infer--g4i84Go.mjs";
|
|
16
|
-
import { i as timestampNowRuntimeGenerator, n as resolveDomainModel, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./runtime-
|
|
17
|
-
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, SqlMigration as Migration, NO_RENAMED_ORIGINS, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, TABLE_NAME_CASE_CHANGED_CODE, UNBOUND_DOMAIN_NAMESPACE_ID, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, otherSpaceDeclaring, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsHoldingValueMeta, rowsHoldingValueOf, rowsHoldingValueSummary, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls,
|
|
15
|
+
import { i as timestampNowRuntimeGenerator, n as resolveDomainModel, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./runtime-CCzfa1mY.mjs";
|
|
16
|
+
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, SqlMigration as Migration, NO_RENAMED_ORIGINS, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, TABLE_NAME_CASE_CHANGED_CODE, UNBOUND_DOMAIN_NAMESPACE_ID, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, otherSpaceDeclaring, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsHoldingValueMeta, rowsHoldingValueOf, rowsHoldingValueSummary, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff, withEnumValueOperations, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as checkSqlDefaultText } from "./validators-FJs8HvFr.mjs";
|
|
2
2
|
import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-DcuULeD9.mjs";
|
|
3
3
|
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-tqHKiJ88.mjs";
|
|
4
|
-
import { $ as StatementPlanningTarget, $t as resolveTableRenameAgainst, A as NoTable, At as encodeStoredValue, B as SchemaTables, Bt as partitionIssuesByControlPolicy, C as MigrationPlannerConflict, Ct as contractToSchemaIR, D as NO_RENAMED_ORIGINS, Dt as createSqlTextSources, E as ModelTable, Et as createMigrationPlan, F as ReportedBody, Ft as fieldStatementColumns, G as SqlDescribedContractSpace, Gt as plannerFailure, H as SqlControlFamilyInstance, Ht as planFieldEventCalls, I as ReportedLiteralDefault, It as isUnfilledSlot, J as SqlQuotingRules, Jt as readReportedDefault, K as SqlPslBuildContext, Kt as plannerSuccess, L as RequiredColumn, Lt as modelRenameStorageEffect, M as PlannedStatements, Mt as fieldEventStorage, N as ReadColumnDefault, Nt as fieldOfColumn, O as NamespaceRename, Ot as detectDestructiveChanges, P as ReadReportedDefault, Pt as fieldRenameStorageEffect, Q as StatementOwnership, Qt as resolveColumnRenameAgainst, R as RequiredColumnMark, Rt as otherSpaceDeclaring, S as MigrationPlanner, St as contractNamespaceToSchemaIR, T as ModelStorageEffect, Tt as convertedColumnOf, U as SqlControlTargetDescriptor, Ut as planFieldEventOperations, V as SingleOperationCall, Vt as planEnumValueRewrites, W as SqlDefaultFunctionName, Wt as planStatements, X as SqlTextSources, Xt as requiredColumnOf, Y as SqlSlot, Yt as requiredColumnMeta, Z as StatementColumn, Zt as requiredColumnsOfMigration, _ as INIT_ADDITIVE_POLICY, _n as withEnumValueOperations, _t as assembleAuthoringContributions, a as ColumnRename, an as runnerFailure, at as SuppressionRecord, b as MigrationPlan, bt as columnTakesTemporaryValue, c as ContractColumns, cn as sqlDefaultFunctions, ct as TableNameCaseGuardTable, d as ConvertedColumn, dn as storageNameOfOperation, dt as TableRenameRequest, en as rowsHoldingValueMeta, et as StoredEnumValue, f as DefaultResolver, fn as subjectsOfCalls, ft as TargetMigrationsCapability, g as FieldStorageEffect, gn as unmatchedTableRename, gt as appliedStatementsInOrder, h as FieldStatementColumns, hn as unmatchedColumnRename, ht as _default, i as ColumnOnOneSide, in as rowsWithoutValueSummary, it as SubjectStorage, j as PlanFieldEventOperationsOptions, jt as extractCodecControlHooks, k as NamespaceStatementTarget, kt as detectTableNameCaseChanges, l as ContractToSchemaIROptions, ln as sqlOfSlot, lt as TableRename, m as FieldEventCall, mn as unknownCallNames, mt as WorkingSchemaOrigins, n as CallSubjects, nn as rowsHoldingValueSummary, nt as StoredValueReplacement, o as ColumnRenameRequest, on as runnerSuccess, ot as TABLE_NAME_CASE_CHANGED_CODE, p as DefaultResolverColumn, pn as unconvertedFieldOf, pt as TargetRefusal, q as SqlQuote, qt as readColumnDefault, r as CallWithCompanions, rn as rowsWithoutValueFailure, rt as StoredValueRewrite, s as ContractColumn, sn as slotSource, st as TableMove, t as COLUMN_RENAME_UNMATCHED_CODE, tn as rowsHoldingValueOf, tt as StoredValueCodec, u as ControlPolicySubject, un as sqlTypeLookupsOf, ut as TableRenameByHand, v as MigrationOperationClass, vt as backfillOfDefaultedField, w as MigrationPlannerResult, wt as convertedColumnMeta, x as MigrationPlanOperation, xt as contractColumns, y as MigrationOperationPolicy, yt as checkSqlExpressionText, z as RowsHoldingValueMark, zt as partitionCallsByControlPolicy } from "./control-
|
|
4
|
+
import { $ as StatementPlanningTarget, $t as resolveTableRenameAgainst, A as NoTable, At as encodeStoredValue, B as SchemaTables, Bt as partitionIssuesByControlPolicy, C as MigrationPlannerConflict, Ct as contractToSchemaIR, D as NO_RENAMED_ORIGINS, Dt as createSqlTextSources, E as ModelTable, Et as createMigrationPlan, F as ReportedBody, Ft as fieldStatementColumns, G as SqlDescribedContractSpace, Gt as plannerFailure, H as SqlControlFamilyInstance, Ht as planFieldEventCalls, I as ReportedLiteralDefault, It as isUnfilledSlot, J as SqlQuotingRules, Jt as readReportedDefault, K as SqlPslBuildContext, Kt as plannerSuccess, L as RequiredColumn, Lt as modelRenameStorageEffect, M as PlannedStatements, Mt as fieldEventStorage, N as ReadColumnDefault, Nt as fieldOfColumn, O as NamespaceRename, Ot as detectDestructiveChanges, P as ReadReportedDefault, Pt as fieldRenameStorageEffect, Q as StatementOwnership, Qt as resolveColumnRenameAgainst, R as RequiredColumnMark, Rt as otherSpaceDeclaring, S as MigrationPlanner, St as contractNamespaceToSchemaIR, T as ModelStorageEffect, Tt as convertedColumnOf, U as SqlControlTargetDescriptor, Ut as planFieldEventOperations, V as SingleOperationCall, Vt as planEnumValueRewrites, W as SqlDefaultFunctionName, Wt as planStatements, X as SqlTextSources, Xt as requiredColumnOf, Y as SqlSlot, Yt as requiredColumnMeta, Z as StatementColumn, Zt as requiredColumnsOfMigration, _ as INIT_ADDITIVE_POLICY, _n as withEnumValueOperations, _t as assembleAuthoringContributions, a as ColumnRename, an as runnerFailure, at as SuppressionRecord, b as MigrationPlan, bt as columnTakesTemporaryValue, c as ContractColumns, cn as sqlDefaultFunctions, ct as TableNameCaseGuardTable, d as ConvertedColumn, dn as storageNameOfOperation, dt as TableRenameRequest, en as rowsHoldingValueMeta, et as StoredEnumValue, f as DefaultResolver, fn as subjectsOfCalls, ft as TargetMigrationsCapability, g as FieldStorageEffect, gn as unmatchedTableRename, gt as appliedStatementsInOrder, h as FieldStatementColumns, hn as unmatchedColumnRename, ht as _default, i as ColumnOnOneSide, in as rowsWithoutValueSummary, it as SubjectStorage, j as PlanFieldEventOperationsOptions, jt as extractCodecControlHooks, k as NamespaceStatementTarget, kt as detectTableNameCaseChanges, l as ContractToSchemaIROptions, ln as sqlOfSlot, lt as TableRename, m as FieldEventCall, mn as unknownCallNames, mt as WorkingSchemaOrigins, n as CallSubjects, nn as rowsHoldingValueSummary, nt as StoredValueReplacement, o as ColumnRenameRequest, on as runnerSuccess, ot as TABLE_NAME_CASE_CHANGED_CODE, p as DefaultResolverColumn, pn as unconvertedFieldOf, pt as TargetRefusal, q as SqlQuote, qt as readColumnDefault, r as CallWithCompanions, rn as rowsWithoutValueFailure, rt as StoredValueRewrite, s as ContractColumn, sn as slotSource, st as TableMove, t as COLUMN_RENAME_UNMATCHED_CODE, tn as rowsHoldingValueOf, tt as StoredValueCodec, u as ControlPolicySubject, un as sqlTypeLookupsOf, ut as TableRenameByHand, v as MigrationOperationClass, vt as backfillOfDefaultedField, w as MigrationPlannerResult, wt as convertedColumnMeta, x as MigrationPlanOperation, xt as contractColumns, y as MigrationOperationPolicy, yt as checkSqlExpressionText, z as RowsHoldingValueMark, zt as partitionCallsByControlPolicy } from "./control-B6W_VEZ9.mjs";
|
|
5
5
|
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ContractColumn, type ContractColumns, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultResolver, type DefaultResolverColumn, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, NO_RENAMED_ORIGINS, type NamespaceRename, type NamespaceStatementTarget, type NoTable, type PlanFieldEventOperationsOptions, type PlannedStatements, type ReadColumnDefault, type ReadReportedDefault, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type RowsHoldingValueMark, type SchemaTables, type SingleOperationCall, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementOwnership, type StatementPlanningTarget, type StorageTypePlanResult, type StoredEnumValue, type StoredValueCodec, type StoredValueReplacement, type StoredValueRewrite, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableMove, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, type TargetRefusal, type WorkingSchemaOrigins, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, otherSpaceDeclaring, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsHoldingValueMeta, rowsHoldingValueOf, rowsHoldingValueSummary, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, withEnumValueOperations };
|
package/dist/family__control.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as checkSqlDefaultText } from "./validators-BwA7ttZM.mjs";
|
|
2
2
|
import { s as extractCodecControlHooks } from "./schema-verify-C3wbdviw-DMjIubOr.mjs";
|
|
3
|
-
import { $ as sqlTypeLookupsOf, A as planEnumValueRewrites, B as requiredColumnsOfMigration, C as fieldRenameStorageEffect, D as otherSpaceDeclaring, E as modelRenameStorageEffect, F as plannerSuccess, G as rowsHoldingValueSummary, H as resolveTableRenameAgainst, I as readColumnDefault, J as runnerFailure, K as rowsWithoutValueFailure, L as readReportedDefault, M as planFieldEventOperations, N as planStatements, O as partitionCallsByControlPolicy, P as plannerFailure, Q as sqlOfSlot, R as requiredColumnMeta, S as fieldOfColumn, T as isUnfilledSlot, U as rowsHoldingValueMeta, V as resolveColumnRenameAgainst, W as rowsHoldingValueOf, X as slotSource, Y as runnerSuccess, Z as sqlDefaultFunctions, _ as createSqlTextSources, a as appliedStatementsInOrder, at as unmatchedTableRename, b as encodeStoredValue, c as checkSqlExpressionText, d as contractNamespaceToSchemaIR, et as storageNameOfOperation, f as contractToSchemaIR, g as createMigrationPlan, h as convertedColumnOf, i as TABLE_NAME_CASE_CHANGED_CODE, it as unmatchedColumnRename, j as planFieldEventCalls, k as partitionIssuesByControlPolicy, l as columnTakesTemporaryValue, m as convertedColumnMeta, n as INIT_ADDITIVE_POLICY, nt as unconvertedFieldOf, o as assembleAuthoringContributions, ot as withEnumValueOperations, p as control_default, q as rowsWithoutValueSummary, r as NO_RENAMED_ORIGINS, rt as unknownCallNames, s as backfillOfDefaultedField, t as COLUMN_RENAME_UNMATCHED_CODE, tt as subjectsOfCalls, u as contractColumns, v as detectDestructiveChanges, w as fieldStatementColumns, x as fieldEventStorage, y as detectTableNameCaseChanges, z as requiredColumnOf } from "./control-
|
|
3
|
+
import { $ as sqlTypeLookupsOf, A as planEnumValueRewrites, B as requiredColumnsOfMigration, C as fieldRenameStorageEffect, D as otherSpaceDeclaring, E as modelRenameStorageEffect, F as plannerSuccess, G as rowsHoldingValueSummary, H as resolveTableRenameAgainst, I as readColumnDefault, J as runnerFailure, K as rowsWithoutValueFailure, L as readReportedDefault, M as planFieldEventOperations, N as planStatements, O as partitionCallsByControlPolicy, P as plannerFailure, Q as sqlOfSlot, R as requiredColumnMeta, S as fieldOfColumn, T as isUnfilledSlot, U as rowsHoldingValueMeta, V as resolveColumnRenameAgainst, W as rowsHoldingValueOf, X as slotSource, Y as runnerSuccess, Z as sqlDefaultFunctions, _ as createSqlTextSources, a as appliedStatementsInOrder, at as unmatchedTableRename, b as encodeStoredValue, c as checkSqlExpressionText, d as contractNamespaceToSchemaIR, et as storageNameOfOperation, f as contractToSchemaIR, g as createMigrationPlan, h as convertedColumnOf, i as TABLE_NAME_CASE_CHANGED_CODE, it as unmatchedColumnRename, j as planFieldEventCalls, k as partitionIssuesByControlPolicy, l as columnTakesTemporaryValue, m as convertedColumnMeta, n as INIT_ADDITIVE_POLICY, nt as unconvertedFieldOf, o as assembleAuthoringContributions, ot as withEnumValueOperations, p as control_default, q as rowsWithoutValueSummary, r as NO_RENAMED_ORIGINS, rt as unknownCallNames, s as backfillOfDefaultedField, t as COLUMN_RENAME_UNMATCHED_CODE, tt as subjectsOfCalls, u as contractColumns, v as detectDestructiveChanges, w as fieldStatementColumns, x as fieldEventStorage, y as detectTableNameCaseChanges, z as requiredColumnOf } from "./control-D6wIw5Fi.mjs";
|
|
4
4
|
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, NO_RENAMED_ORIGINS, TABLE_NAME_CASE_CHANGED_CODE, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, control_default as default, detectDestructiveChanges, detectTableNameCaseChanges, encodeStoredValue, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, otherSpaceDeclaring, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planEnumValueRewrites, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsHoldingValueMeta, rowsHoldingValueOf, rowsHoldingValueSummary, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, withEnumValueOperations };
|
package/dist/family__pack.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { sqlFamilyPack as default, idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors
|
|
1
|
+
import { i as sqlTargetTypeConstructors, n as sqlFamilyPack, r as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./pack-Cap3oVPy.mjs";
|
|
2
|
+
export { sqlFamilyPack as default, idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors };
|
package/dist/family__pack.mjs
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { f as sqlExpressionRegistration } from "./sql-expression-CKgKznXS.mjs";
|
|
2
|
+
import { b as sqlAttributeSpecs } from "./psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs";
|
|
3
|
+
import { a as sqlFamilyGeneratorFunctions, c as sqlTargetTypeConstructors, i as sqlFamilyGeneratorDescriptors, n as sqlFamilyAuthoringTypes, o as sqlFamilyPslBlockDescriptors, r as sqlFamilyEntityTypes, s as sqlIntegerArgumentGeneratorFunctions, t as idGeneratorFunctionBindings } from "./generator-functions-Hy4pDDr9-AUCNpeg5.mjs";
|
|
4
|
+
//#region ../../../2-sql-family/9-family/dist/pack.mjs
|
|
5
|
+
const sqlFamilyPack = {
|
|
6
|
+
kind: "family",
|
|
7
|
+
id: "sql",
|
|
8
|
+
familyId: "sql",
|
|
9
|
+
version: "0.0.1",
|
|
10
|
+
dataTypes: sqlExpressionRegistration.dataTypes,
|
|
11
|
+
authoring: {
|
|
12
|
+
type: sqlFamilyAuthoringTypes,
|
|
13
|
+
dataTypes: sqlExpressionRegistration.authoring.dataTypes,
|
|
14
|
+
entityTypes: sqlFamilyEntityTypes,
|
|
15
|
+
pslBlockDescriptors: sqlFamilyPslBlockDescriptors,
|
|
16
|
+
attributeSpecs: sqlAttributeSpecs
|
|
17
|
+
},
|
|
18
|
+
generatorFunctions: sqlFamilyGeneratorFunctions,
|
|
19
|
+
controlMutationDefaults: {
|
|
20
|
+
defaultFunctionRegistry: /* @__PURE__ */ new Map(),
|
|
21
|
+
generatorDescriptors: sqlFamilyGeneratorDescriptors
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { sqlFamilyPack as default, idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=family__pack.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"family__pack.mjs","names":[],"sources":["../../../../2-sql-family/9-family/dist/pack.mjs"],"sourcesContent":["import { a as sqlFamilyAuthoringTypes, c as sqlFamilyPslBlockDescriptors, i as sqlIntegerArgumentGeneratorFunctions, n as sqlFamilyGeneratorDescriptors, o as sqlTargetTypeConstructors, r as sqlFamilyGeneratorFunctions, s as sqlFamilyEntityTypes, t as idGeneratorFunctionBindings } from \"./generator-functions-Hy4pDDr9.mjs\";\nimport { sqlExpressionRegistration } from \"@internal/sql-contract/sql-expression\";\nimport { sqlAttributeSpecs } from \"@internal/sql-contract-psl/attribute-specs\";\n//#region src/exports/pack.ts\nconst sqlFamilyPack = {\n\tkind: \"family\",\n\tid: \"sql\",\n\tfamilyId: \"sql\",\n\tversion: \"0.0.1\",\n\tdataTypes: sqlExpressionRegistration.dataTypes,\n\tauthoring: {\n\t\ttype: sqlFamilyAuthoringTypes,\n\t\tdataTypes: sqlExpressionRegistration.authoring.dataTypes,\n\t\tentityTypes: sqlFamilyEntityTypes,\n\t\tpslBlockDescriptors: sqlFamilyPslBlockDescriptors,\n\t\tattributeSpecs: sqlAttributeSpecs\n\t},\n\tgeneratorFunctions: sqlFamilyGeneratorFunctions,\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: /* @__PURE__ */ new Map(),\n\t\tgeneratorDescriptors: sqlFamilyGeneratorDescriptors\n\t}\n};\n//#endregion\nexport { sqlFamilyPack as default, idGeneratorFunctionBindings, sqlIntegerArgumentGeneratorFunctions, sqlTargetTypeConstructors };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;;;AAIA,MAAM,gBAAgB;CACrB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,SAAS;CACT,WAAW,0BAA0B;CACrC,WAAW;EACV,MAAM;EACN,WAAW,0BAA0B,UAAU;EAC/C,aAAa;EACb,qBAAqB;EACrB,gBAAgB;CACjB;CACA,oBAAoB;CACpB,yBAAyB;EACxB,yCAAyC,IAAI,IAAI;EACjD,sBAAsB;CACvB;AACD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { s as toEnumMemberName } from "./psl-names-C3cwe0rg-D1CTmC3a.mjs";
|
|
2
|
-
import { a as mapDefault, c as writtenTypeArguments, i as inferredTypeConstructors, n as generatorCallsFor, o as writeDataTypeValue, r as inferColumnTypes, s as writeDefaultLiteral, t as fewestArgumentsCall } from "./psl-build-
|
|
2
|
+
import { a as mapDefault, c as writtenTypeArguments, i as inferredTypeConstructors, n as generatorCallsFor, o as writeDataTypeValue, r as inferColumnTypes, s as writeDefaultLiteral, t as fewestArgumentsCall } from "./psl-build-DqqYhOsa.mjs";
|
|
3
3
|
export { fewestArgumentsCall, generatorCallsFor, inferColumnTypes, inferredTypeConstructors, mapDefault, toEnumMemberName, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DCqtmnSU.mjs";
|
|
2
|
-
import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-
|
|
2
|
+
import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-JKWb27L5.mjs";
|
|
3
3
|
export { type ResolvedDomainModel, type ResolvedStorageTable, UNBOUND_DOMAIN_NAMESPACE_ID, sqlRuntimeFamilyDescriptor as default, resolveDomainModel, resolveStorageTable, timestampNowRuntimeGenerator };
|
package/dist/family__runtime.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as resolveStorageTable } from "./resolve-storage-table-BHLQsOza.mjs";
|
|
2
|
-
import { i as timestampNowRuntimeGenerator, n as resolveDomainModel, r as runtime_default, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./runtime-
|
|
2
|
+
import { i as timestampNowRuntimeGenerator, n as resolveDomainModel, r as runtime_default, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./runtime-CCzfa1mY.mjs";
|
|
3
3
|
export { UNBOUND_DOMAIN_NAMESPACE_ID, runtime_default as default, resolveDomainModel, resolveStorageTable, timestampNowRuntimeGenerator };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//#region ../../../2-sql-family/1-core/contract/dist/generated-id-column-aliases.d.mts
|
|
2
|
+
//#region src/generated-id-column-aliases.d.ts
|
|
3
|
+
/** The column of each id format the client generates, named by a type alias that carries no generator, so a foreign key uses it as its key does. The SQL family contributes them in `sql`, and a target may also name them at the top level. ADR 310. */
|
|
4
|
+
declare const generatedIdColumnAliases: {
|
|
5
|
+
readonly UuidString: {
|
|
6
|
+
readonly kind: "typeAlias";
|
|
7
|
+
readonly documentation: "Fixed-length text of 36 characters, the column a UUID is stored in as text.";
|
|
8
|
+
readonly output: {
|
|
9
|
+
readonly type: {
|
|
10
|
+
readonly codecId: "sql/char@1";
|
|
11
|
+
readonly typeParams: {
|
|
12
|
+
readonly length: 36;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
readonly Ulid: {
|
|
18
|
+
readonly kind: "typeAlias";
|
|
19
|
+
readonly documentation: "Fixed-length text of 26 characters, the column a ULID is stored in.";
|
|
20
|
+
readonly output: {
|
|
21
|
+
readonly type: {
|
|
22
|
+
readonly codecId: "sql/char@1";
|
|
23
|
+
readonly typeParams: {
|
|
24
|
+
readonly length: 26;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly Nanoid: {
|
|
30
|
+
readonly kind: "typeAlias";
|
|
31
|
+
readonly documentation: "Fixed-length text of 21 characters, the column a nanoid of the default size is stored in.";
|
|
32
|
+
readonly output: {
|
|
33
|
+
readonly type: {
|
|
34
|
+
readonly codecId: "sql/char@1";
|
|
35
|
+
readonly typeParams: {
|
|
36
|
+
readonly length: 21;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly Cuid2: {
|
|
42
|
+
readonly kind: "typeAlias";
|
|
43
|
+
readonly documentation: "Fixed-length text of 24 characters, the column a CUID2 is stored in.";
|
|
44
|
+
readonly output: {
|
|
45
|
+
readonly type: {
|
|
46
|
+
readonly codecId: "sql/char@1";
|
|
47
|
+
readonly typeParams: {
|
|
48
|
+
readonly length: 24;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly Ksuid: {
|
|
54
|
+
readonly kind: "typeAlias";
|
|
55
|
+
readonly documentation: "Fixed-length text of 27 characters, the column a KSUID is stored in.";
|
|
56
|
+
readonly output: {
|
|
57
|
+
readonly type: {
|
|
58
|
+
readonly codecId: "sql/char@1";
|
|
59
|
+
readonly typeParams: {
|
|
60
|
+
readonly length: 27;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type GeneratedIdColumnAlias = keyof typeof generatedIdColumnAliases;
|
|
67
|
+
/** Where a stack names a generated id column alias, in the order a rewrite prefers: a target's own top-level name, then the family's `sql.` name. */
|
|
68
|
+
declare const GENERATED_ID_COLUMN_ALIAS_NAMESPACES: readonly [readonly [], readonly ["sql"]];
|
|
69
|
+
//#endregion
|
|
70
|
+
export { GeneratedIdColumnAlias as n, generatedIdColumnAliases as r, GENERATED_ID_COLUMN_ALIAS_NAMESPACES as t };
|
|
71
|
+
//# sourceMappingURL=generated-id-column-aliases-DCuTuZrU.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-id-column-aliases-DCuTuZrU.d.mts","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/generated-id-column-aliases.d.mts"],"mappings":";;;cAEc;WACH;aACE;aACA;aACA;eACE;iBACE;iBACA;mBACE;;;;;WAKR;aACE;aACA;aACA;eACE;iBACE;iBACA;mBACE;;;;;WAKR;aACE;aACA;aACA;eACE;iBACE;iBACA;mBACE;;;;;WAKR;aACE;aACA;aACA;eACE;iBACE;iBACA;mBACE;;;;;WAKR;aACE;aACA;aACA;eACE;iBACE;iBACA;mBACE;;;;;;KAMd,sCAAsC;;cAE7B"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//#region ../../../2-sql-family/1-core/contract/dist/generated-id-column-aliases.mjs
|
|
2
|
+
const CHAR_CODEC_ID = "sql/char@1";
|
|
3
|
+
/** The column of each id format the client generates, named by a type alias that carries no generator, so a foreign key uses it as its key does. The SQL family contributes them in `sql`, and a target may also name them at the top level. ADR 310. */
|
|
4
|
+
const generatedIdColumnAliases = {
|
|
5
|
+
UuidString: {
|
|
6
|
+
kind: "typeAlias",
|
|
7
|
+
documentation: "Fixed-length text of 36 characters, the column a UUID is stored in as text.",
|
|
8
|
+
output: { type: {
|
|
9
|
+
codecId: CHAR_CODEC_ID,
|
|
10
|
+
typeParams: { length: 36 }
|
|
11
|
+
} }
|
|
12
|
+
},
|
|
13
|
+
Ulid: {
|
|
14
|
+
kind: "typeAlias",
|
|
15
|
+
documentation: "Fixed-length text of 26 characters, the column a ULID is stored in.",
|
|
16
|
+
output: { type: {
|
|
17
|
+
codecId: CHAR_CODEC_ID,
|
|
18
|
+
typeParams: { length: 26 }
|
|
19
|
+
} }
|
|
20
|
+
},
|
|
21
|
+
Nanoid: {
|
|
22
|
+
kind: "typeAlias",
|
|
23
|
+
documentation: "Fixed-length text of 21 characters, the column a nanoid of the default size is stored in.",
|
|
24
|
+
output: { type: {
|
|
25
|
+
codecId: CHAR_CODEC_ID,
|
|
26
|
+
typeParams: { length: 21 }
|
|
27
|
+
} }
|
|
28
|
+
},
|
|
29
|
+
Cuid2: {
|
|
30
|
+
kind: "typeAlias",
|
|
31
|
+
documentation: "Fixed-length text of 24 characters, the column a CUID2 is stored in.",
|
|
32
|
+
output: { type: {
|
|
33
|
+
codecId: CHAR_CODEC_ID,
|
|
34
|
+
typeParams: { length: 24 }
|
|
35
|
+
} }
|
|
36
|
+
},
|
|
37
|
+
Ksuid: {
|
|
38
|
+
kind: "typeAlias",
|
|
39
|
+
documentation: "Fixed-length text of 27 characters, the column a KSUID is stored in.",
|
|
40
|
+
output: { type: {
|
|
41
|
+
codecId: CHAR_CODEC_ID,
|
|
42
|
+
typeParams: { length: 27 }
|
|
43
|
+
} }
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
/** Where a stack names a generated id column alias, in the order a rewrite prefers: a target's own top-level name, then the family's `sql.` name. */
|
|
47
|
+
const GENERATED_ID_COLUMN_ALIAS_NAMESPACES = [[], ["sql"]];
|
|
48
|
+
//#endregion
|
|
49
|
+
export { generatedIdColumnAliases as n, GENERATED_ID_COLUMN_ALIAS_NAMESPACES as t };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=generated-id-column-aliases-DPUii1fN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-id-column-aliases-DPUii1fN.mjs","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/generated-id-column-aliases.mjs"],"sourcesContent":["//#region src/generated-id-column-aliases.ts\nconst CHAR_CODEC_ID = \"sql/char@1\";\n/** The column of each id format the client generates, named by a type alias that carries no generator, so a foreign key uses it as its key does. The SQL family contributes them in `sql`, and a target may also name them at the top level. ADR 310. */\nconst generatedIdColumnAliases = {\n\tUuidString: {\n\t\tkind: \"typeAlias\",\n\t\tdocumentation: \"Fixed-length text of 36 characters, the column a UUID is stored in as text.\",\n\t\toutput: { type: {\n\t\t\tcodecId: CHAR_CODEC_ID,\n\t\t\ttypeParams: { length: 36 }\n\t\t} }\n\t},\n\tUlid: {\n\t\tkind: \"typeAlias\",\n\t\tdocumentation: \"Fixed-length text of 26 characters, the column a ULID is stored in.\",\n\t\toutput: { type: {\n\t\t\tcodecId: CHAR_CODEC_ID,\n\t\t\ttypeParams: { length: 26 }\n\t\t} }\n\t},\n\tNanoid: {\n\t\tkind: \"typeAlias\",\n\t\tdocumentation: \"Fixed-length text of 21 characters, the column a nanoid of the default size is stored in.\",\n\t\toutput: { type: {\n\t\t\tcodecId: CHAR_CODEC_ID,\n\t\t\ttypeParams: { length: 21 }\n\t\t} }\n\t},\n\tCuid2: {\n\t\tkind: \"typeAlias\",\n\t\tdocumentation: \"Fixed-length text of 24 characters, the column a CUID2 is stored in.\",\n\t\toutput: { type: {\n\t\t\tcodecId: CHAR_CODEC_ID,\n\t\t\ttypeParams: { length: 24 }\n\t\t} }\n\t},\n\tKsuid: {\n\t\tkind: \"typeAlias\",\n\t\tdocumentation: \"Fixed-length text of 27 characters, the column a KSUID is stored in.\",\n\t\toutput: { type: {\n\t\t\tcodecId: CHAR_CODEC_ID,\n\t\t\ttypeParams: { length: 27 }\n\t\t} }\n\t}\n};\n/** Where a stack names a generated id column alias, in the order a rewrite prefers: a target's own top-level name, then the family's `sql.` name. */\nconst GENERATED_ID_COLUMN_ALIAS_NAMESPACES = [[], [\"sql\"]];\n//#endregion\nexport { GENERATED_ID_COLUMN_ALIAS_NAMESPACES, generatedIdColumnAliases };\n\n//# sourceMappingURL=generated-id-column-aliases.mjs.map"],"mappings":";AACA,MAAM,gBAAgB;;AAEtB,MAAM,2BAA2B;CAChC,YAAY;EACX,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,MAAM;GACf,SAAS;GACT,YAAY,EAAE,QAAQ,GAAG;EAC1B,EAAE;CACH;CACA,MAAM;EACL,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,MAAM;GACf,SAAS;GACT,YAAY,EAAE,QAAQ,GAAG;EAC1B,EAAE;CACH;CACA,QAAQ;EACP,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,MAAM;GACf,SAAS;GACT,YAAY,EAAE,QAAQ,GAAG;EAC1B,EAAE;CACH;CACA,OAAO;EACN,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,MAAM;GACf,SAAS;GACT,YAAY,EAAE,QAAQ,GAAG;EAC1B,EAAE;CACH;CACA,OAAO;EACN,MAAM;EACN,eAAe;EACf,QAAQ,EAAE,MAAM;GACf,SAAS;GACT,YAAY,EAAE,QAAQ,GAAG;EAC1B,EAAE;CACH;AACD;;AAEA,MAAM,uCAAuC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC"}
|