@prisma/orm-family-sql 8.0.0-rc.18-dev.41 → 8.0.0-rc.18-dev.43
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-D_fUYNiw.d.mts → attribute-specs-cHzMPvMl.d.mts} +3 -3
- package/dist/{attribute-specs-D_fUYNiw.d.mts.map → attribute-specs-cHzMPvMl.d.mts.map} +1 -1
- package/dist/{authoring-entity-types-DUQLeBf_-BZ1zRWGY.d.mts → authoring-entity-types-DUQLeBf_-nuhFC6jJ.d.mts} +2 -2
- package/dist/{authoring-entity-types-DUQLeBf_-BZ1zRWGY.d.mts.map → authoring-entity-types-DUQLeBf_-nuhFC6jJ.d.mts.map} +1 -1
- package/dist/{config-types-CUWdUm6B.mjs → config-types-DY37pCIx.mjs} +2 -2
- package/dist/{config-types-CUWdUm6B.mjs.map → config-types-DY37pCIx.mjs.map} +1 -1
- package/dist/{contract-builder-DzzgwCZd.mjs → contract-builder-DT689tII.mjs} +61 -12
- package/dist/contract-builder-DT689tII.mjs.map +1 -0
- package/dist/{contract-builder-Di-2-fFO.d.mts → contract-builder-DZSUqbp0.d.mts} +21 -18
- package/dist/contract-builder-DZSUqbp0.d.mts.map +1 -0
- package/dist/contract-prisma7__provider.d.mts +4 -2
- package/dist/contract-prisma7__provider.d.mts.map +1 -1
- package/dist/contract-prisma7__provider.mjs +74 -73
- package/dist/contract-prisma7__provider.mjs.map +1 -1
- 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.mjs +1 -1
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +1 -1
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +1 -1
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/{control-d-Dlrhh4.mjs → control-CF-KJYTH.mjs} +6 -58
- package/dist/control-CF-KJYTH.mjs.map +1 -0
- package/dist/{control-LkQLqHHL.d.mts → control-YFLg-7Gn.d.mts} +8 -128
- package/dist/control-YFLg-7Gn.d.mts.map +1 -0
- package/dist/{default-mapping-CP8q4TfH-CF6eJMej.d.mts → default-mapping-CAOONlKQ-v7GTIkjE.d.mts} +9 -5
- package/dist/default-mapping-CAOONlKQ-v7GTIkjE.d.mts.map +1 -0
- package/dist/{derived-checks-CwbSfZ8d-B91zqK6B.mjs → derived-checks-CXW9ytkb-B_zxX1-8.mjs} +2 -2
- package/dist/{derived-checks-CwbSfZ8d-B91zqK6B.mjs.map → derived-checks-CXW9ytkb-B_zxX1-8.mjs.map} +1 -1
- package/dist/{diagnostics-xqFRhSin.mjs → diagnostics-IM48vCjC.mjs} +4 -2
- package/dist/diagnostics-IM48vCjC.mjs.map +1 -0
- package/dist/family.d.mts +6 -6
- package/dist/family.mjs +5 -4
- package/dist/family__control.d.mts +2 -2
- package/dist/family__control.mjs +2 -2
- package/dist/family__pack.d.mts +2 -2
- package/dist/family__pack.mjs +3 -25
- package/dist/family__psl-build.d.mts +3 -3
- package/dist/family__psl-build.mjs +2 -2
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/{generator-functions-DErXcNG5-nKYm5qLY.mjs → generator-functions-DuDZSQHE-BbKhsXck.mjs} +30 -26
- package/dist/generator-functions-DuDZSQHE-BbKhsXck.mjs.map +1 -0
- package/dist/{interpreter-MPFufRkd-D0QvlLTq.mjs → interpreter-DTwRm0sl-DHX1SdeJ.mjs} +11 -7
- package/dist/interpreter-DTwRm0sl-DHX1SdeJ.mjs.map +1 -0
- package/dist/{pack-74uFuOgh.d.mts → pack-AyeYizq-.d.mts} +152 -28
- package/dist/pack-AyeYizq-.d.mts.map +1 -0
- package/dist/pack-NM8AYiUp.mjs +80 -0
- package/dist/pack-NM8AYiUp.mjs.map +1 -0
- package/dist/{psl-build-BkNvqSMz.d.mts → psl-build-C4ia2uM6.d.mts} +10 -8
- package/dist/psl-build-C4ia2uM6.d.mts.map +1 -0
- package/dist/{psl-build-BSZQ8lC1.mjs → psl-build-D5VG40ej.mjs} +122 -107
- package/dist/psl-build-D5VG40ej.mjs.map +1 -0
- package/dist/{psl-column-resolution-DNdqpUxt-DlQwgbqn.d.mts → psl-column-resolution-BgThghdu-BWaFlWYV.d.mts} +4 -4
- package/dist/psl-column-resolution-BgThghdu-BWaFlWYV.d.mts.map +1 -0
- package/dist/{psl-field-resolution-BLtSah2i-BuuJ5H70.mjs → psl-field-resolution-DpGsATq3-BREG9FbU.mjs} +11 -7
- package/dist/psl-field-resolution-DpGsATq3-BREG9FbU.mjs.map +1 -0
- package/dist/{psl-infer-C-RcAyUr.d.mts → psl-infer-B_n-rSCj.d.mts} +2 -2
- package/dist/{psl-infer-C-RcAyUr.d.mts.map → psl-infer-B_n-rSCj.d.mts.map} +1 -1
- package/package.json +18 -18
- package/dist/contract-builder-Di-2-fFO.d.mts.map +0 -1
- package/dist/contract-builder-DzzgwCZd.mjs.map +0 -1
- package/dist/control-LkQLqHHL.d.mts.map +0 -1
- package/dist/control-d-Dlrhh4.mjs.map +0 -1
- package/dist/default-mapping-CP8q4TfH-CF6eJMej.d.mts.map +0 -1
- package/dist/diagnostics-xqFRhSin.mjs.map +0 -1
- package/dist/family__pack.mjs.map +0 -1
- package/dist/generator-functions-DErXcNG5-nKYm5qLY.mjs.map +0 -1
- package/dist/interpreter-MPFufRkd-D0QvlLTq.mjs.map +0 -1
- package/dist/pack-74uFuOgh.d.mts.map +0 -1
- package/dist/psl-build-BSZQ8lC1.mjs.map +0 -1
- package/dist/psl-build-BkNvqSMz.d.mts.map +0 -1
- package/dist/psl-column-resolution-DNdqpUxt-DlQwgbqn.d.mts.map +0 -1
- package/dist/psl-field-resolution-BLtSah2i-BuuJ5H70.mjs.map +0 -1
|
@@ -7,16 +7,16 @@ import { h as AnyQueryAst } from "./types-GgcOrYm_-RhoxnXdj.mjs";
|
|
|
7
7
|
import { o as SqlExecuteRequest } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
|
|
8
8
|
import { a as DdlNode } from "./ddl-types-BBrLVtS--u4u-I8L5.mjs";
|
|
9
9
|
import { p as LowererContext } from "./ast-DlajRqlB.mjs";
|
|
10
|
-
import { a as EnumMemberListDefault, i as EnumMemberDefault, n as DefaultFunctionCall, o as ParsedNullLiteral } from "./attribute-specs-
|
|
10
|
+
import { a as EnumMemberListDefault, i as EnumMemberDefault, n as DefaultFunctionCall, o as ParsedNullLiteral } from "./attribute-specs-cHzMPvMl.mjs";
|
|
11
11
|
import { S as SqlSchemaIRNode, b as SqlSchemaIR, p as SqlDefaultValue } from "./types-DiD6BqoN-ZF53hwPp.mjs";
|
|
12
12
|
import "./types-D_nlUp-1.mjs";
|
|
13
13
|
import "./validators-CTZ-hU2l.mjs";
|
|
14
14
|
import { r as SqlControlAdapter } from "./control-adapter-Bn0uhplA-BBax-2PG.mjs";
|
|
15
|
-
import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-DUQLeBf_-
|
|
15
|
+
import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-DUQLeBf_-nuhFC6jJ.mjs";
|
|
16
16
|
import { C as SqlPlannerConflict, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, n as CreateSqlMigrationPlanOptions, p as SqlMigrationPlanner, t as CodecControlHooks, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-CI5lled6-CDV4aYNB.mjs";
|
|
17
17
|
import { t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-BfEQ_9cY.mjs";
|
|
18
18
|
import { StructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
19
|
-
import { DataTypeSupport
|
|
19
|
+
import { DataTypeSupport } from "@prisma/orm-framework/components/authoring";
|
|
20
20
|
import { Codec, CodecLookupWithDescriptors, CodecRef, DataType, DataTypeLookup, TypeLookups } from "@prisma/orm-framework/components/codec";
|
|
21
21
|
import { ColumnDefault, Contract, ContractWithDomain, ControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
22
22
|
import { GeneratorFunctionRegistry, TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
@@ -336,9 +336,10 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
336
336
|
readonly type: {
|
|
337
337
|
readonly Raw: {
|
|
338
338
|
readonly kind: "typeConstructor";
|
|
339
|
-
readonly documentation: "A column of a type no other column type covers, written exactly as the database catalog prints it, such as Raw(
|
|
339
|
+
readonly documentation: "A column of a type no other column type covers, written exactly as the database catalog prints it, such as Raw(sql`tsvector`). Its values are typed unknown, and its default is a sql expression.";
|
|
340
340
|
readonly args: readonly [{
|
|
341
|
-
readonly kind: "
|
|
341
|
+
readonly kind: "value";
|
|
342
|
+
readonly dataType: "sql/expression";
|
|
342
343
|
readonly name: "sql";
|
|
343
344
|
}];
|
|
344
345
|
readonly output: {
|
|
@@ -351,26 +352,6 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
351
352
|
};
|
|
352
353
|
};
|
|
353
354
|
};
|
|
354
|
-
readonly sql: {
|
|
355
|
-
readonly String: {
|
|
356
|
-
readonly kind: "typeConstructor";
|
|
357
|
-
readonly documentation: "Variable-length text with a required maximum character length.";
|
|
358
|
-
readonly args: readonly [{
|
|
359
|
-
readonly kind: "number";
|
|
360
|
-
readonly name: "length";
|
|
361
|
-
readonly integer: true;
|
|
362
|
-
}];
|
|
363
|
-
readonly output: {
|
|
364
|
-
readonly codecId: "sql/varchar@1";
|
|
365
|
-
readonly typeParams: {
|
|
366
|
-
readonly length: {
|
|
367
|
-
readonly kind: "arg";
|
|
368
|
-
readonly index: 0;
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
355
|
};
|
|
375
356
|
readonly entityTypes: import("@prisma/orm-framework/components/authoring").AuthoringEntityTypeNamespace;
|
|
376
357
|
readonly pslBlockDescriptors: {
|
|
@@ -1371,109 +1352,8 @@ interface ContractColumns {
|
|
|
1371
1352
|
*/
|
|
1372
1353
|
declare function contractColumns(contract: unknown): ContractColumns;
|
|
1373
1354
|
//#endregion
|
|
1374
|
-
//#region src/core/timestamp-now-generator.d.ts
|
|
1375
|
-
declare function temporalStringAuthoringPresets<const Storage extends PresetStorageTemplate, const GeneratorId extends string = typeof TIMESTAMP_NOW_GENERATOR_ID>(input: Storage & {
|
|
1376
|
-
readonly generatorId?: GeneratorId;
|
|
1377
|
-
}): {
|
|
1378
|
-
readonly createdAtString: {
|
|
1379
|
-
readonly kind: "fieldPreset";
|
|
1380
|
-
readonly output: Omit<Storage & {
|
|
1381
|
-
readonly generatorId?: GeneratorId;
|
|
1382
|
-
}, "generatorId"> & {
|
|
1383
|
-
readonly executionDefaults: {
|
|
1384
|
-
readonly onCreate: {
|
|
1385
|
-
readonly kind: "generator";
|
|
1386
|
-
readonly id: GeneratorId | "timestampNow";
|
|
1387
|
-
};
|
|
1388
|
-
};
|
|
1389
|
-
};
|
|
1390
|
-
};
|
|
1391
|
-
readonly updatedAtString: {
|
|
1392
|
-
readonly kind: "fieldPreset";
|
|
1393
|
-
readonly output: Omit<Storage & {
|
|
1394
|
-
readonly generatorId?: GeneratorId;
|
|
1395
|
-
}, "generatorId"> & {
|
|
1396
|
-
readonly executionDefaults: {
|
|
1397
|
-
readonly onCreate: {
|
|
1398
|
-
readonly kind: "generator";
|
|
1399
|
-
readonly id: GeneratorId | "timestampNow";
|
|
1400
|
-
};
|
|
1401
|
-
readonly onUpdate: {
|
|
1402
|
-
readonly kind: "generator";
|
|
1403
|
-
readonly id: GeneratorId | "timestampNow";
|
|
1404
|
-
};
|
|
1405
|
-
};
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
|
-
};
|
|
1409
|
-
/**
|
|
1410
|
-
* Builds a `temporal.<codec>` field preset for a codec that takes a precision
|
|
1411
|
-
* parameter (`pg/timestamp-temporal@1`, `pg/timestamptz-temporal@1`). Arguments change field
|
|
1412
|
-
* properties only — never the codec, which the caller fixes here.
|
|
1413
|
-
*
|
|
1414
|
-
* All three arguments are optional: omitting `precision` omits `typeParams`
|
|
1415
|
-
* entirely, and omitting a phase omits that phase (both omitted omits
|
|
1416
|
-
* `executionDefaults`). With `nowTakesPrecision`, the generator a `now` selects
|
|
1417
|
-
* also receives the precision as its `precision` param, so it can write a value
|
|
1418
|
-
* the column stores without rounding.
|
|
1419
|
-
*/
|
|
1420
|
-
declare function temporalCodecPresetWithPrecision<const CodecId extends string, const GeneratorId extends string = typeof TIMESTAMP_NOW_GENERATOR_ID>(input: {
|
|
1421
|
-
readonly codecId: CodecId;
|
|
1422
|
-
readonly generatorId?: GeneratorId;
|
|
1423
|
-
readonly nowTakesPrecision?: true;
|
|
1424
|
-
}): {
|
|
1425
|
-
readonly kind: "fieldPreset";
|
|
1426
|
-
readonly args: readonly [{
|
|
1427
|
-
readonly name: "precision";
|
|
1428
|
-
readonly kind: "number";
|
|
1429
|
-
readonly optional: true;
|
|
1430
|
-
readonly integer: true;
|
|
1431
|
-
}, {
|
|
1432
|
-
readonly name: "onCreate";
|
|
1433
|
-
readonly kind: "option";
|
|
1434
|
-
readonly values: readonly ["now"];
|
|
1435
|
-
readonly optional: true;
|
|
1436
|
-
}, {
|
|
1437
|
-
readonly name: "onUpdate";
|
|
1438
|
-
readonly kind: "option";
|
|
1439
|
-
readonly values: readonly ["now"];
|
|
1440
|
-
readonly optional: true;
|
|
1441
|
-
}];
|
|
1442
|
-
readonly output: {
|
|
1443
|
-
readonly codecId: CodecId;
|
|
1444
|
-
readonly typeParams: {
|
|
1445
|
-
readonly precision: {
|
|
1446
|
-
readonly kind: "arg";
|
|
1447
|
-
readonly index: 0;
|
|
1448
|
-
};
|
|
1449
|
-
};
|
|
1450
|
-
readonly executionDefaults: {
|
|
1451
|
-
readonly onCreate: {
|
|
1452
|
-
readonly kind: "select";
|
|
1453
|
-
readonly index: 1;
|
|
1454
|
-
readonly cases: {
|
|
1455
|
-
readonly now: {
|
|
1456
|
-
readonly kind: "generator";
|
|
1457
|
-
readonly id: "timestampNow" | GeneratorId;
|
|
1458
|
-
};
|
|
1459
|
-
};
|
|
1460
|
-
};
|
|
1461
|
-
readonly onUpdate: {
|
|
1462
|
-
readonly kind: "select";
|
|
1463
|
-
readonly index: 2;
|
|
1464
|
-
readonly cases: {
|
|
1465
|
-
readonly now: {
|
|
1466
|
-
readonly kind: "generator";
|
|
1467
|
-
readonly id: "timestampNow" | GeneratorId;
|
|
1468
|
-
};
|
|
1469
|
-
};
|
|
1470
|
-
};
|
|
1471
|
-
};
|
|
1472
|
-
};
|
|
1473
|
-
};
|
|
1474
|
-
//#endregion
|
|
1475
1355
|
//#region src/exports/control.d.ts
|
|
1476
1356
|
declare const _default: SqlFamilyDescriptor;
|
|
1477
1357
|
//#endregion
|
|
1478
|
-
export { TableRename as $,
|
|
1479
|
-
//# sourceMappingURL=control-
|
|
1358
|
+
export { TableRename as $, ReadColumnDefault as A, plannerFailure as At, SqlDefaultFunctionName as B, rowsWithoutValueSummary as Bt, MigrationPlannerConflict$1 as C, isUnfilledSlot as Ct, NoTable as D, planFieldEventCalls as Dt, ModelTable as E, partitionIssuesByControlPolicy as Et, RequiredColumnMark as F, requiredColumnOf as Ft, SqlSlot as G, sqlOfSlot as Gt, SqlPslBuildContext as H, runnerSuccess as Ht, SchemaTables as I, requiredColumnsOfMigration as It, StatementPlanningTarget as J, subjectsOfCalls as Jt, SqlTextSources as K, sqlTypeLookupsOf as Kt, SingleOperationCall as L, resolveColumnRenameAgainst as Lt, ReportedBody as M, readColumnDefault as Mt, ReportedLiteralDefault as N, readReportedDefault as Nt, PlanFieldEventOperationsOptions as O, planFieldEventOperations as Ot, RequiredColumn as P, requiredColumnMeta as Pt, TableNameCaseGuardTable as Q, unmatchedTableRename as Qt, SqlControlFamilyInstance as R, resolveTableRenameAgainst as Rt, MigrationPlanner as S, fieldStatementColumns as St, ModelStorageEffect as T, partitionCallsByControlPolicy as Tt, SqlQuote as U, slotSource as Ut, SqlDescribedContractSpace as V, runnerFailure as Vt, SqlQuotingRules as W, sqlDefaultFunctions as Wt, SuppressionRecord as X, unknownCallNames as Xt, SubjectStorage as Y, unconvertedFieldOf as Yt, TABLE_NAME_CASE_CHANGED_CODE as Z, unmatchedColumnRename as Zt, INIT_ADDITIVE_POLICY as _, detectTableNameCaseChanges as _t, ColumnRename as a, assembleAuthoringContributions$1 as at, MigrationPlan$1 as b, fieldOfColumn as bt, ContractColumns as c, columnTakesTemporaryValue as ct, ConvertedColumn as d, contractToSchemaIR as dt, TableRenameByHand as et, DefaultResolver as f, convertedColumnMeta as ft, FieldStorageEffect as g, detectDestructiveChanges as gt, FieldStatementColumns as h, createSqlTextSources as ht, ColumnOnOneSide as i, appliedStatementsInOrder as it, ReadReportedDefault as j, plannerSuccess as jt, PlannedStatements as k, planStatements as kt, ContractToSchemaIROptions as l, contractColumns as lt, FieldEventCall as m, createMigrationPlan as mt, CallSubjects as n, TargetMigrationsCapability as nt, ColumnRenameRequest as o, backfillOfDefaultedField as ot, DefaultResolverColumn as p, convertedColumnOf as pt, StatementColumn as q, storageNameOfOperation as qt, CallWithCompanions as r, _default as rt, ContractColumn as s, checkSqlExpressionText as st, COLUMN_RENAME_UNMATCHED_CODE as t, TableRenameRequest as tt, ControlPolicySubject as u, contractNamespaceToSchemaIR as ut, MigrationOperationClass$1 as v, extractCodecControlHooks as vt, MigrationPlannerResult as w, modelRenameStorageEffect as wt, MigrationPlanOperation$1 as x, fieldRenameStorageEffect as xt, MigrationOperationPolicy$1 as y, fieldEventStorage as yt, SqlControlTargetDescriptor as z, rowsWithoutValueFailure as zt };
|
|
1359
|
+
//# sourceMappingURL=control-YFLg-7Gn.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-YFLg-7Gn.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;UAmBU;WACC,kBAAkB,cAAc;WAChC,cAAc;;UAEf,iCAAiC,6BAA6B,kBAAkB,kBAAkB,kBAAkB,wBAAwB,kBAAkB,wBAAwB,SAAS,cAAc,yBAAyB;;;;;;;;;EAS9O,oBAAoB,wBAAwB;EAC5C,OAAO;aACI,QAAQ;aACR;aACA;aACA;aACA;MACP,QAAQ;;;;;;;;;;EAUZ,aAAa;aACF;aACA,QAAQ;aACR;aACA,qBAAqB,cAAc;MAC1C;;;;;;;;;;EAUJ,2BAA2B,OAAO,kBAAkB;;;;;;;;EAQpD,mBAAmB,OAAO;EAC1B,WAAW;aACA,QAAQ;aACR;MACP,QAAQ;EACZ,iBAAiB,UAAU,kBAAkB,QAAQ;EACrD,SAAS,KAAK,cAAc,SAAS,SAAS,0BAA0B,QAAQ;;;;;;EAMhF,WAAW;aACA,QAAQ;aACR;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,aAAa;aACF,QAAQ;aACR;aACA;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,iBAAiB;aACN,QAAQ;aACR;aACA;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;MAET;EACJ,yCAAyC;EACzC,mBAAmB,qBAAqB,2BAA6B;EACrE,cAAc,WAAW;;;;cAIb,+BAA+B,+BAA+B;WACjE;WACA;WACA;WACA;WACA,UAAU;WACV,oBAAoB;WACpB;aACE;eACE;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;uBACA;;;;iBAIN;mBACE;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;;;;;eAKR;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;;;qBAGJ;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;6BACA;;;;;qBAKR;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;;;aAKR;eACE;iBACE;iBACA;iBACA;mBACE;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;;aAMV,gEAAgE;aAChE;eACE;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;UACE,2CAA2C;YACzC;4CACgC;;;;aAI/B;eACE;iBACE,MAAM,qCAAqC,wDAAwD;UAC1G;0CACgC;iBACzB,KAAK,qCAAqC,wDAAwD;UACzG;mBACS;0CACuB;iBACzB,SAAS,qCAAqC,wDAAwD;UAC7G;mBACS;0CACuB;iBACzB,QAAQ,oCAAoC,wDAAwD;UAC3G;mBACS,4CAA4C;mBAC5C,uCAAuC;mBACvC;mBACA;mBACA;mBACA;mBACA,UAAU;0CACa;iBACzB,QAAQ,oCAAoC,wDAAwD;mBAClG,2CAA2C;mBAC3C;mBACA;0CACu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M;;WAEN;WACA,oBAAoB;;;KAG1B,iCAAiC;;KAEjC;WACM,iBAAiB;WACjB,cAAc;;WAEd;;;iBAGM,oBAAoB,OAAO,OAAO,SAAS,wBAAwB,cAAc,QAAQ;;KAErG,oBAAoB;WACd,yBAAyB;;;;;iBAKnB,kBAAkB,OAAO,OAAO;WACtC,SAAS;WACT;GACR;WACQ,SAAS;WACT;gBACK,QAAQ;;UAEd;WACC,UAAU;WACV;;;UAGD;;EAER,SAAS,6CAA6C,eAAe,iBAAiB;;;;;iBAKvE,gBAAgB,oBAAoB;;;cAGvC,UAAU"}
|
package/dist/{default-mapping-CP8q4TfH-CF6eJMej.d.mts → default-mapping-CAOONlKQ-v7GTIkjE.d.mts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataTypeSupport } from "@prisma/orm-framework/components/authoring";
|
|
2
|
-
import { CodecDescriptor } from "@prisma/orm-framework/components/codec";
|
|
3
|
-
import { ColumnDefault, ColumnDefaultLiteralInputValue } from "@prisma/orm-framework/contract/types";
|
|
4
|
-
//#region ../../../2-sql/9-family/dist/default-mapping-
|
|
2
|
+
import { CodecDescriptor, DataTypeId } from "@prisma/orm-framework/components/codec";
|
|
3
|
+
import { ColumnDefault, ColumnDefaultLiteralInputValue, JsonValue } from "@prisma/orm-framework/contract/types";
|
|
4
|
+
//#region ../../../2-sql/9-family/dist/default-mapping-CAOONlKQ.d.mts
|
|
5
5
|
//#region src/core/psl-build/default-mapping.d.ts
|
|
6
6
|
interface DefaultMappingOptions {
|
|
7
7
|
readonly functionAttributes?: Readonly<Record<string, string>>;
|
|
@@ -28,8 +28,12 @@ type DefaultMappingResult = {
|
|
|
28
28
|
* whitespace (ADR 129).
|
|
29
29
|
*/
|
|
30
30
|
declare function mapDefault(columnDefault: ColumnDefault, options?: DefaultMappingOptions): DefaultMappingResult | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* `value`, a value of `dataType` as `contract.json` stores it, written as the literal of a type that `dataType` takes, proven to read back as `value`: `255` for `pg/int4`, ``sql`"MyType"[]` `` for `sql/expression`. `undefined` when no literal reads back as it.
|
|
33
|
+
*/
|
|
34
|
+
declare function writeDataTypeValue(value: JsonValue, dataType: DataTypeId, support: DataTypeSupport): string | undefined;
|
|
31
35
|
/** The PSL literal a stored value is written as for the column `options` describe, or `undefined` when it has no written form that reads back as that value. */
|
|
32
36
|
declare function writeDefaultLiteral(value: ColumnDefaultLiteralInputValue, options: DefaultMappingOptions | undefined): string | undefined;
|
|
33
37
|
//#endregion
|
|
34
|
-
export { writeDefaultLiteral as i, DefaultMappingResult as n, mapDefault as r, DefaultMappingOptions as t };
|
|
35
|
-
//# sourceMappingURL=default-mapping-
|
|
38
|
+
export { writeDefaultLiteral as a, writeDataTypeValue as i, DefaultMappingResult as n, mapDefault as r, DefaultMappingOptions as t };
|
|
39
|
+
//# sourceMappingURL=default-mapping-CAOONlKQ-v7GTIkjE.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-mapping-CAOONlKQ-v7GTIkjE.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/default-mapping-CAOONlKQ.d.mts"],"mappings":";;;;;UAIU;WACC,qBAAqB,SAAS;;WAE9B,YAAY;;WAEZ,cAAc,KAAK;;WAEnB;;;;;WAKA;;KAEN;WACM;;;;;;;;;iBASM,WAAW,eAAe,eAAe,UAAU,wBAAwB;;;;iBAI3E,mBAAmB,OAAO,WAAW,UAAU,YAAY,SAAS;;iBAEpE,oBAAoB,OAAO,gCAAgC,SAAS"}
|
|
@@ -26,7 +26,7 @@ import { encodeEnumTypeMembers, resolveToOneRelationNullable } from "@prisma/orm
|
|
|
26
26
|
import { buildExecutionSection, computeProfileHash, computeStorageHash } from "@prisma/orm-framework/contract/hashing";
|
|
27
27
|
import { invariant } from "@prisma/orm-framework/utils/assertions";
|
|
28
28
|
import { applySpecifierDefaultControlPolicy } from "@prisma/orm-framework/contract/apply-specifier-default-control-policy";
|
|
29
|
-
//#region ../../../2-sql/2-authoring/contract-ts/dist/derived-checks-
|
|
29
|
+
//#region ../../../2-sql/2-authoring/contract-ts/dist/derived-checks-CXW9ytkb.mjs
|
|
30
30
|
function contractError(code, message, options) {
|
|
31
31
|
return structuredError(code, message, options);
|
|
32
32
|
}
|
|
@@ -1501,4 +1501,4 @@ function withoutDerivedChecks(tableName, table, contractDefault) {
|
|
|
1501
1501
|
//#endregion
|
|
1502
1502
|
export { storedAsListColumn as a, isValueObjectMember as i, buildSqlContractFromDefinition as n, toOneNullabilityContradictionMessage as o, contractError as r, applySqlSpecifierControlPolicy as t };
|
|
1503
1503
|
|
|
1504
|
-
//# sourceMappingURL=derived-checks-
|
|
1504
|
+
//# sourceMappingURL=derived-checks-CXW9ytkb-B_zxX1-8.mjs.map
|