@prisma/orm-family-sql 8.0.0-rc.11-dev.16 → 8.0.0-rc.11-dev.18
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/{authoring-type-constructors-BD-XuavC-CJV-TxFh.mjs → authoring-type-constructors-BD-XuavC-CW5J4Z8r.mjs} +2 -2
- package/dist/{authoring-type-constructors-BD-XuavC-CJV-TxFh.mjs.map → authoring-type-constructors-BD-XuavC-CW5J4Z8r.mjs.map} +1 -1
- package/dist/{config-types-BNJgLUUQ.mjs → config-types-tDX8p7v3.mjs} +2 -2
- package/dist/{config-types-BNJgLUUQ.mjs.map → config-types-tDX8p7v3.mjs.map} +1 -1
- package/dist/{contract-builder-De_sioHE.d.mts → contract-builder-Bwe2diF2.d.mts} +14 -5
- package/dist/{contract-builder-De_sioHE.d.mts.map → contract-builder-Bwe2diF2.d.mts.map} +1 -1
- package/dist/{contract-builder-BOmEsrRi.mjs → contract-builder-D1f6k8r4.mjs} +2 -2
- package/dist/{contract-builder-BOmEsrRi.mjs.map → contract-builder-D1f6k8r4.mjs.map} +1 -1
- package/dist/contract-prisma7__provider.d.mts +85 -0
- package/dist/contract-prisma7__provider.d.mts.map +1 -0
- package/dist/contract-prisma7__provider.mjs +1648 -0
- package/dist/contract-prisma7__provider.mjs.map +1 -0
- package/dist/contract-psl.d.mts +4 -3
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +3 -3
- package/dist/contract-psl__attribute-specs.d.mts.map +1 -1
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__provider.mjs +5 -5
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +2 -2
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +2 -2
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/{control-CYQ2U777.d.mts → control-CvOB6L1w.d.mts} +12 -11
- package/dist/control-CvOB6L1w.d.mts.map +1 -0
- package/dist/{control-adapter-C99J7aEF-CUDc48SO.d.mts → control-adapter-C99J7aEF-BLc1Uog8.d.mts} +3 -3
- package/dist/{control-adapter-C99J7aEF-CUDc48SO.d.mts.map → control-adapter-C99J7aEF-BLc1Uog8.d.mts.map} +1 -1
- package/dist/control-adapter-DfLKiViv.d.mts +1 -0
- package/dist/{control-BNXN-KA4.mjs → control-xNkuCauS.mjs} +4 -4
- package/dist/control-xNkuCauS.mjs.map +1 -0
- package/dist/{derived-checks-DGjY5t7S-B3txNm7X.mjs → derived-checks-DGjY5t7S-CzJmkeZR.mjs} +2 -2
- package/dist/{derived-checks-DGjY5t7S-B3txNm7X.mjs.map → derived-checks-DGjY5t7S-CzJmkeZR.mjs.map} +1 -1
- package/dist/{diff-CFhK3Q3k.d.mts → diff-Dz5kQO4e.d.mts} +6 -6
- package/dist/{diff-CFhK3Q3k.d.mts.map → diff-Dz5kQO4e.d.mts.map} +1 -1
- package/dist/family.d.mts +9 -9
- package/dist/family.mjs +4 -4
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +4 -4
- package/dist/family__control.mjs +3 -3
- package/dist/family__diff.d.mts +2 -2
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__pack.d.mts +1 -1
- package/dist/family__pack.d.mts.map +1 -1
- package/dist/family__pack.mjs +2 -2
- package/dist/family__psl-infer.d.mts +2 -2
- package/dist/family__psl-infer.mjs +2 -2
- package/dist/{interpreter-C_i0NCiB-CptD-6Yu.mjs → interpreter-QDw8KJeP-Bc93B8xi.mjs} +52 -8
- package/dist/interpreter-QDw8KJeP-Bc93B8xi.mjs.map +1 -0
- package/dist/{migration-CkjRhB8h.d.mts → migration-D5C6JC3c.d.mts} +2 -2
- package/dist/{migration-CkjRhB8h.d.mts.map → migration-D5C6JC3c.d.mts.map} +1 -1
- package/dist/{psl-infer-TBwKfKgU.mjs → psl-infer-CPQSp4tG.mjs} +2 -84
- package/dist/psl-infer-CPQSp4tG.mjs.map +1 -0
- package/dist/{psl-infer-CCAD6FWA.d.mts → psl-infer-tLt9U1UP.d.mts} +4 -7
- package/dist/{psl-infer-CCAD6FWA.d.mts.map → psl-infer-tLt9U1UP.d.mts.map} +1 -1
- package/dist/{schema-differ-DpG_gnur-BICVtTHY.d.mts → schema-differ-DpG_gnur-CLds_Z0t.d.mts} +3 -3
- package/dist/{schema-differ-DpG_gnur-BICVtTHY.d.mts.map → schema-differ-DpG_gnur-CLds_Z0t.d.mts.map} +1 -1
- package/dist/schema-ir.d.mts +1 -1
- package/dist/schema-ir.mjs +1 -1
- package/dist/schema-ir__types.d.mts +2 -2
- package/dist/schema-ir__types.mjs +1 -1
- package/dist/{sql-attribute-specs-BCJ_CDJH-CfH1ddqf.mjs → sql-attribute-specs-BnUIuOy5-8t7OYHpi.mjs} +5 -5
- package/dist/sql-attribute-specs-BnUIuOy5-8t7OYHpi.mjs.map +1 -0
- package/dist/types-9RtQn3mX.d.mts +1 -0
- package/dist/{types-YStFFkKs-D9UAmnON.d.mts → types-C6k9x_Je-DkvHNHEX.d.mts} +18 -2
- package/dist/types-C6k9x_Je-DkvHNHEX.d.mts.map +1 -0
- package/dist/{types-BvupgHcG-c8QDupnu.mjs → types-CZn-8Rsg-Bv6arhpI.mjs} +73 -13
- package/dist/types-CZn-8Rsg-Bv6arhpI.mjs.map +1 -0
- package/dist/{types-IqZMLrFC-BQmtKloA.d.mts → types-IqZMLrFC-BAUPBjE5.d.mts} +4 -4
- package/dist/{types-IqZMLrFC-BQmtKloA.d.mts.map → types-IqZMLrFC-BAUPBjE5.d.mts.map} +1 -1
- package/package.json +19 -17
- package/dist/control-BNXN-KA4.mjs.map +0 -1
- package/dist/control-CYQ2U777.d.mts.map +0 -1
- package/dist/control-adapter-BPttH3He.d.mts +0 -1
- package/dist/interpreter-C_i0NCiB-CptD-6Yu.mjs.map +0 -1
- package/dist/psl-infer-TBwKfKgU.mjs.map +0 -1
- package/dist/sql-attribute-specs-BCJ_CDJH-CfH1ddqf.mjs.map +0 -1
- package/dist/types-BvupgHcG-c8QDupnu.mjs.map +0 -1
- package/dist/types-Dwcw0F8X.d.mts +0 -1
- package/dist/types-YStFFkKs-D9UAmnON.d.mts.map +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
|
|
2
|
+
import "./types-C36_3E6_.mjs";
|
|
3
|
+
import { ControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
4
|
+
import { TargetPackRef } from "@prisma/orm-framework/components/components";
|
|
5
|
+
import { ContractConfig } from "@prisma/orm-framework/config/config-types";
|
|
6
|
+
//#region ../../../2-sql/2-authoring/contract-prisma7/dist/provider.d.mts
|
|
7
|
+
//#region src/native-types.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* The mechanism that turns a Prisma 7 scalar or `@db.*` spelling into the
|
|
10
|
+
* Prisma 8 type constructor call that produces the same column. The table
|
|
11
|
+
* itself is target knowledge, supplied by the target binding.
|
|
12
|
+
*/
|
|
13
|
+
interface Prisma7TypeMapping {
|
|
14
|
+
readonly constructorName: string;
|
|
15
|
+
readonly args: readonly string[];
|
|
16
|
+
}
|
|
17
|
+
interface Prisma7TypeMap {
|
|
18
|
+
/** Prisma 7 scalar name to the constructor Prisma 7 uses for it by default. */
|
|
19
|
+
readonly scalars: Readonly<Record<string, Prisma7TypeMapping>>;
|
|
20
|
+
/**
|
|
21
|
+
* `@db.X` spelling to the constructor Prisma 7 uses for it. The attribute's
|
|
22
|
+
* own arguments replace `args`; `args` are what the column gets without any.
|
|
23
|
+
*/
|
|
24
|
+
readonly nativeTypes: Readonly<Record<string, Prisma7TypeMapping>>;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/target-binding.d.ts
|
|
28
|
+
interface Prisma7ColumnType {
|
|
29
|
+
readonly codecId: string;
|
|
30
|
+
readonly nativeType: string;
|
|
31
|
+
readonly typeParams?: Readonly<Record<string, unknown>> | undefined;
|
|
32
|
+
}
|
|
33
|
+
/** How a literal `@default` is read for a column whose codec does not take the value as written. */
|
|
34
|
+
type Prisma7LiteralDefaultForm =
|
|
35
|
+
/** A string holding JSON text, parsed. */
|
|
36
|
+
{
|
|
37
|
+
readonly kind: 'json';
|
|
38
|
+
} |
|
|
39
|
+
/** A string, carried as the SQL expression of the default the database stores. */
|
|
40
|
+
{
|
|
41
|
+
readonly kind: 'sqlExpression';
|
|
42
|
+
/** The SQL literal for one written value, or `undefined` when the text is not a value of the column's type. */
|
|
43
|
+
readonly literal: (text: string) => string | undefined;
|
|
44
|
+
/** The SQL expression for a list default made of `literal` results. */
|
|
45
|
+
readonly list: (literals: readonly string[]) => string;
|
|
46
|
+
};
|
|
47
|
+
/** Everything a target supplies to the Prisma 7 interpreter. */
|
|
48
|
+
interface Prisma7TargetBinding {
|
|
49
|
+
readonly target: TargetPackRef<'sql', string>;
|
|
50
|
+
readonly createNamespace: (input: SqlNamespaceInput) => SqlNamespaceBase;
|
|
51
|
+
/** The datasource `provider` values the target reads; messages name the first. */
|
|
52
|
+
readonly providers: readonly [string, ...string[]];
|
|
53
|
+
/** What Prisma 7 creates for each scalar and `@db.*` type. */
|
|
54
|
+
readonly typeMap: Prisma7TypeMap;
|
|
55
|
+
/** The entity kind the target registers for a native enum, and the type constructor that references one. */
|
|
56
|
+
readonly nativeEnum: {
|
|
57
|
+
readonly entityKind: string;
|
|
58
|
+
readonly typeConstructor: readonly string[];
|
|
59
|
+
};
|
|
60
|
+
/** Prisma 7 index `type` names to the target's index types. */
|
|
61
|
+
readonly indexTypes: Readonly<Record<string, string>>;
|
|
62
|
+
/** The longest identifier the database keeps, in bytes. Prisma 7 cuts the names it generates to fit. */
|
|
63
|
+
readonly identifierMaxBytes: number;
|
|
64
|
+
/**
|
|
65
|
+
* The relation field names `contract infer` gives a junction table whose
|
|
66
|
+
* columns `A` and `B` reference `tableA` and `tableB`, so the junction model
|
|
67
|
+
* reads as it will after the database is inferred.
|
|
68
|
+
*/
|
|
69
|
+
readonly junctionRelationFieldNames: (tableA: string, tableB: string) => readonly [string, string];
|
|
70
|
+
/** The "now" generator `@updatedAt` lowers to for a column with this codec; `undefined` when the target has none. */
|
|
71
|
+
readonly updatedAtGeneratorId: (codecId: string) => string | undefined;
|
|
72
|
+
/** How a literal `@default` on the column is read; `undefined` when the codec takes the written value. */
|
|
73
|
+
readonly literalDefaultForm: (column: Prisma7ColumnType) => Prisma7LiteralDefaultForm | undefined;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/provider.d.ts
|
|
77
|
+
interface Prisma7ContractOptions {
|
|
78
|
+
readonly binding: Prisma7TargetBinding;
|
|
79
|
+
readonly output?: string;
|
|
80
|
+
readonly defaultControlPolicy?: ControlPolicy;
|
|
81
|
+
}
|
|
82
|
+
declare function prisma7Contract(schemaPath: string, options: Prisma7ContractOptions): ContractConfig;
|
|
83
|
+
//#endregion
|
|
84
|
+
export { type Prisma7ColumnType, type Prisma7ContractOptions, type Prisma7LiteralDefaultForm, type Prisma7TargetBinding, type Prisma7TypeMap, type Prisma7TypeMapping, prisma7Contract };
|
|
85
|
+
//# sourceMappingURL=contract-prisma7__provider.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-prisma7__provider.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-prisma7/dist/provider.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC;WACA;;UAED;;WAEC,SAAS,SAAS,eAAe;;;;;WAKjC,aAAa,SAAS,eAAe;;;;UAItC;WACC;WACA;WACA,aAAa,SAAS;;;KAG5B;;;WAGM;;;;WAIA;;WAEA,UAAU;;WAEV,OAAO;;;UAGR;WACC,QAAQ;WACR,kBAAkB,OAAO,sBAAsB;;WAE/C;;WAEA,SAAS;;WAET;aACE;aACA;;;WAGF,YAAY,SAAS;;WAErB;;;;;;WAMA,6BAA6B,gBAAgB;;WAE7C,uBAAuB;;WAEvB,qBAAqB,QAAQ,sBAAsB;;;;UAIpD;WACC,SAAS;WACT;WACA,uBAAuB;;iBAEjB,gBAAgB,oBAAoB,SAAS,yBAAyB"}
|