@prisma/orm-target-sqlite 8.0.0-rc.20-dev.6 → 8.0.0-rc.20-dev.8

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.
Files changed (54) hide show
  1. package/dist/{adapter-BBkurVtx-2htTOh4C.mjs → adapter-Cff01Cgi-C19Fhc2M.mjs} +105 -23
  2. package/dist/adapter-Cff01Cgi-C19Fhc2M.mjs.map +1 -0
  3. package/dist/{adapter-BHJEOmT6.d.mts → adapter-xs2nBMBo.d.mts} +4 -4
  4. package/dist/{adapter-BHJEOmT6.d.mts.map → adapter-xs2nBMBo.d.mts.map} +1 -1
  5. package/dist/adapter.d.mts +2 -2
  6. package/dist/adapter.mjs +1 -1
  7. package/dist/adapter__adapter.d.mts +1 -1
  8. package/dist/adapter__adapter.mjs +1 -1
  9. package/dist/adapter__control.d.mts +1 -1
  10. package/dist/adapter__control.mjs +1 -1
  11. package/dist/adapter__control.mjs.map +1 -1
  12. package/dist/adapter__runtime.mjs +1 -1
  13. package/dist/adapter__runtime.mjs.map +1 -1
  14. package/dist/adapter__sql-renderer.mjs +1 -1
  15. package/dist/{aggregates-CDMoiy_Z.d.mts → aggregates-DC8nyCjN.d.mts} +4 -4
  16. package/dist/{aggregates-CDMoiy_Z.d.mts.map → aggregates-DC8nyCjN.d.mts.map} +1 -1
  17. package/dist/{contract-free-DetowcoS.mjs → contract-free-CYl1uzJ8.mjs} +2 -2
  18. package/dist/{contract-free-DetowcoS.mjs.map → contract-free-CYl1uzJ8.mjs.map} +1 -1
  19. package/dist/{contract-free-BJwIJN6x.d.mts → contract-free-IqKgq8Pk.d.mts} +4 -4
  20. package/dist/{contract-free-BJwIJN6x.d.mts.map → contract-free-IqKgq8Pk.d.mts.map} +1 -1
  21. package/dist/{control-B_pSY997.d.mts → control-VMpMSXk9.d.mts} +2 -2
  22. package/dist/{control-B_pSY997.d.mts.map → control-VMpMSXk9.d.mts.map} +1 -1
  23. package/dist/{ddl-CX4tAZ-y-Bng-4PWC.mjs → ddl-BoTU7bCZ-CXNSFEtj.mjs} +8 -8
  24. package/dist/ddl-BoTU7bCZ-CXNSFEtj.mjs.map +1 -0
  25. package/dist/{migration-wMj4eXHP.mjs → migration-8iTYuvo3.mjs} +2 -2
  26. package/dist/{migration-wMj4eXHP.mjs.map → migration-8iTYuvo3.mjs.map} +1 -1
  27. package/dist/{op-factory-call-82mX3jT--BaXeVrFl.mjs → op-factory-call-lluKW6u9-D2x8W4qv.mjs} +3 -3
  28. package/dist/{op-factory-call-82mX3jT--BaXeVrFl.mjs.map → op-factory-call-lluKW6u9-D2x8W4qv.mjs.map} +1 -1
  29. package/dist/{pack-B3YrlPJI.d.mts → pack-BT-BNRPc.d.mts} +2 -2
  30. package/dist/{pack-B3YrlPJI.d.mts.map → pack-BT-BNRPc.d.mts.map} +1 -1
  31. package/dist/{planner-DpcDL7KV-8viK6ZfF.mjs → planner-B73VGVF0-Dl4v3Bcx.mjs} +5 -5
  32. package/dist/{planner-DpcDL7KV-8viK6ZfF.mjs.map → planner-B73VGVF0-Dl4v3Bcx.mjs.map} +1 -1
  33. package/dist/{planner-produced-sqlite-migration-DtfUafua-CLIBAR7j.mjs → planner-produced-sqlite-migration-B-05qsmU-BpCrTiPQ.mjs} +4 -4
  34. package/dist/{planner-produced-sqlite-migration-DtfUafua-CLIBAR7j.mjs.map → planner-produced-sqlite-migration-B-05qsmU-BpCrTiPQ.mjs.map} +1 -1
  35. package/dist/{render-ops-Cf9-hDHa-DFWVF8Hs.mjs → render-ops-Dq0lrks_-BNZp7Sj9.mjs} +3 -3
  36. package/dist/{render-ops-Cf9-hDHa-DFWVF8Hs.mjs.map → render-ops-Dq0lrks_-BNZp7Sj9.mjs.map} +1 -1
  37. package/dist/{sqlite-migration-Ct0LmmUo-Bo60qjbO.mjs → sqlite-migration-DXkxomAv-BSjN30Zu.mjs} +3 -3
  38. package/dist/{sqlite-migration-Ct0LmmUo-Bo60qjbO.mjs.map → sqlite-migration-DXkxomAv-BSjN30Zu.mjs.map} +1 -1
  39. package/dist/target.d.mts +3 -3
  40. package/dist/target.mjs +8 -8
  41. package/dist/target__aggregates.d.mts +1 -1
  42. package/dist/target__contract-free.d.mts +1 -1
  43. package/dist/target__contract-free.mjs +2 -2
  44. package/dist/target__control.mjs +3 -3
  45. package/dist/target__control.mjs.map +1 -1
  46. package/dist/target__migration.mjs +2 -2
  47. package/dist/target__op-factory-call.mjs +1 -1
  48. package/dist/target__pack.d.mts +1 -1
  49. package/dist/target__planner-produced-sqlite-migration.mjs +1 -1
  50. package/dist/target__planner.mjs +1 -1
  51. package/dist/target__render-ops.mjs +1 -1
  52. package/package.json +9 -9
  53. package/dist/adapter-BBkurVtx-2htTOh4C.mjs.map +0 -1
  54. package/dist/ddl-CX4tAZ-y-Bng-4PWC.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID } from "./codec-ids-wgEvkCkg-WltuexMR.mjs";
2
2
  import { n as SQLITE_NOW_EXPRESSION } from "./datetime-text-Bniwehv--BSQhnrdE.mjs";
3
- import { r as createTable } from "./ddl-CX4tAZ-y-Bng-4PWC.mjs";
3
+ import { r as createTable } from "./ddl-BoTU7bCZ-CXNSFEtj.mjs";
4
4
  import { TableSource } from "@prisma/orm-family-sql/relational-core/ast";
5
5
  import { APP_SPACE_ID } from "@prisma/orm-framework/components/control";
6
6
  import { col, fn, lit, table } from "@prisma/orm-family-sql/relational-core/contract-free";
@@ -88,4 +88,4 @@ function buildControlTableBootstrapQueries() {
88
88
  //#endregion
89
89
  export { jsonText as a, integer as i, buildSignMarkerBootstrapQueries as n, sqliteTable as o, datetime as r, text as s, buildControlTableBootstrapQueries as t };
90
90
 
91
- //# sourceMappingURL=contract-free-DetowcoS.mjs.map
91
+ //# sourceMappingURL=contract-free-CYl1uzJ8.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract-free-DetowcoS.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/contract-free.mjs"],"sourcesContent":["import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID } from \"./codec-ids-wgEvkCkg.mjs\";\nimport { n as SQLITE_NOW_EXPRESSION } from \"./datetime-text-Bniwehv-.mjs\";\nimport { a as tableExistsAst, i as indexExistsAst, n as columnExistsAst, t as createTable } from \"./ddl-CX4tAZ-y.mjs\";\nimport { TableSource } from \"@internal/sql-relational-core/ast\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\nimport { col, fn, lit, table } from \"@internal/sql-relational-core/contract-free\";\n//#region src/contract-free/columns.ts\nconst desc = (codecId, opts) => ({\n\tcodecId,\n\tnullable: opts?.nullable ?? false\n});\nconst text = (opts) => desc(SQLITE_TEXT_CODEC_ID, opts);\nconst integer = (opts) => desc(SQLITE_INTEGER_CODEC_ID, opts);\nconst jsonText = (opts) => desc(SQLITE_JSON_CODEC_ID, opts);\nconst datetime = (opts) => desc(SQLITE_DATETIME_CODEC_ID, opts);\n/**\n* Declare a SQLite control-plane table with a typed column schema. SQLite tables\n* are addressed by a flat name (no schema prefix).\n*\n* ```ts\n* const marker = sqliteTable('_prisma_marker', {\n* space: text(),\n* core_hash: text(),\n* updated_at: datetime(),\n* });\n* ```\n*/\nfunction sqliteTable(name, columns) {\n\treturn table(TableSource.named(name), columns);\n}\n//#endregion\n//#region src/contract-free/control-bootstrap.ts\nconst markerColumns = [\n\tcol(\"space\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tprimaryKey: true,\n\t\tdefault: lit(APP_SPACE_ID)\n\t}),\n\tcol(\"core_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"profile_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"contract_json\", \"TEXT\"),\n\tcol(\"canonical_version\", \"INTEGER\"),\n\tcol(\"updated_at\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: fn(SQLITE_NOW_EXPRESSION)\n\t}),\n\tcol(\"app_tag\", \"TEXT\"),\n\tcol(\"meta\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: lit(\"{}\")\n\t}),\n\tcol(\"invariants\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: lit(\"[]\")\n\t})\n];\nconst ledgerColumns = [\n\tcol(\"id\", \"INTEGER PRIMARY KEY AUTOINCREMENT\"),\n\tcol(\"created_at\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: fn(SQLITE_NOW_EXPRESSION)\n\t}),\n\tcol(\"space\", \"TEXT\", { notNull: true }),\n\tcol(\"migration_name\", \"TEXT\", { notNull: true }),\n\tcol(\"migration_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"origin_core_hash\", \"TEXT\"),\n\tcol(\"origin_profile_hash\", \"TEXT\"),\n\tcol(\"destination_core_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"destination_profile_hash\", \"TEXT\"),\n\tcol(\"contract_json_before\", \"TEXT\"),\n\tcol(\"contract_json_after\", \"TEXT\"),\n\tcol(\"operations\", \"TEXT\", { notNull: true })\n];\nconst markerTable = createTable({\n\ttable: \"_prisma_marker\",\n\tifNotExists: true,\n\tcolumns: markerColumns\n});\nconst ledgerTable = createTable({\n\ttable: \"_prisma_ledger\",\n\tifNotExists: true,\n\tcolumns: ledgerColumns\n});\nfunction buildSignMarkerBootstrapQueries() {\n\treturn [markerTable];\n}\nfunction buildControlTableBootstrapQueries() {\n\treturn [markerTable, ledgerTable];\n}\n//#endregion\nexport { buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, columnExistsAst, createTable, datetime, indexExistsAst, integer, jsonText, sqliteTable, tableExistsAst, text };\n\n//# sourceMappingURL=contract-free.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,QAAQ,SAAS,UAAU;CAChC;CACA,UAAU,MAAM,YAAY;AAC7B;AACA,MAAM,QAAQ,SAAS,KAAK,sBAAsB,IAAI;AACtD,MAAM,WAAW,SAAS,KAAK,yBAAyB,IAAI;AAC5D,MAAM,YAAY,SAAS,KAAK,sBAAsB,IAAI;AAC1D,MAAM,YAAY,SAAS,KAAK,0BAA0B,IAAI;;;;;;;;;;;;;AAa9D,SAAS,YAAY,MAAM,SAAS;CACnC,OAAO,MAAM,YAAY,MAAM,IAAI,GAAG,OAAO;AAC9C;AAGA,MAAM,gBAAgB;CACrB,IAAI,SAAS,QAAQ;EACpB,SAAS;EACT,YAAY;EACZ,SAAS,IAAI,YAAY;CAC1B,CAAC;CACD,IAAI,aAAa,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC1C,IAAI,gBAAgB,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC7C,IAAI,iBAAiB,MAAM;CAC3B,IAAI,qBAAqB,SAAS;CAClC,IAAI,cAAc,QAAQ;EACzB,SAAS;EACT,SAAS,GAAG,qBAAqB;CAClC,CAAC;CACD,IAAI,WAAW,MAAM;CACrB,IAAI,QAAQ,QAAQ;EACnB,SAAS;EACT,SAAS,IAAI,IAAI;CAClB,CAAC;CACD,IAAI,cAAc,QAAQ;EACzB,SAAS;EACT,SAAS,IAAI,IAAI;CAClB,CAAC;AACF;AACA,MAAM,gBAAgB;CACrB,IAAI,MAAM,mCAAmC;CAC7C,IAAI,cAAc,QAAQ;EACzB,SAAS;EACT,SAAS,GAAG,qBAAqB;CAClC,CAAC;CACD,IAAI,SAAS,QAAQ,EAAE,SAAS,KAAK,CAAC;CACtC,IAAI,kBAAkB,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC/C,IAAI,kBAAkB,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC/C,IAAI,oBAAoB,MAAM;CAC9B,IAAI,uBAAuB,MAAM;CACjC,IAAI,yBAAyB,QAAQ,EAAE,SAAS,KAAK,CAAC;CACtD,IAAI,4BAA4B,MAAM;CACtC,IAAI,wBAAwB,MAAM;CAClC,IAAI,uBAAuB,MAAM;CACjC,IAAI,cAAc,QAAQ,EAAE,SAAS,KAAK,CAAC;AAC5C;AACA,MAAM,cAAc,YAAY;CAC/B,OAAO;CACP,aAAa;CACb,SAAS;AACV,CAAC;AACD,MAAM,cAAc,YAAY;CAC/B,OAAO;CACP,aAAa;CACb,SAAS;AACV,CAAC;AACD,SAAS,kCAAkC;CAC1C,OAAO,CAAC,WAAW;AACpB;AACA,SAAS,oCAAoC;CAC5C,OAAO,CAAC,aAAa,WAAW;AACjC"}
1
+ {"version":3,"file":"contract-free-CYl1uzJ8.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/contract-free.mjs"],"sourcesContent":["import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, o as SQLITE_JSON_CODEC_ID } from \"./codec-ids-wgEvkCkg.mjs\";\nimport { n as SQLITE_NOW_EXPRESSION } from \"./datetime-text-Bniwehv-.mjs\";\nimport { a as tableExistsAst, i as indexExistsAst, n as columnExistsAst, t as createTable } from \"./ddl-BoTU7bCZ.mjs\";\nimport { TableSource } from \"@internal/sql-relational-core/ast\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\nimport { col, fn, lit, table } from \"@internal/sql-relational-core/contract-free\";\n//#region src/contract-free/columns.ts\nconst desc = (codecId, opts) => ({\n\tcodecId,\n\tnullable: opts?.nullable ?? false\n});\nconst text = (opts) => desc(SQLITE_TEXT_CODEC_ID, opts);\nconst integer = (opts) => desc(SQLITE_INTEGER_CODEC_ID, opts);\nconst jsonText = (opts) => desc(SQLITE_JSON_CODEC_ID, opts);\nconst datetime = (opts) => desc(SQLITE_DATETIME_CODEC_ID, opts);\n/**\n* Declare a SQLite control-plane table with a typed column schema. SQLite tables\n* are addressed by a flat name (no schema prefix).\n*\n* ```ts\n* const marker = sqliteTable('_prisma_marker', {\n* space: text(),\n* core_hash: text(),\n* updated_at: datetime(),\n* });\n* ```\n*/\nfunction sqliteTable(name, columns) {\n\treturn table(TableSource.named(name), columns);\n}\n//#endregion\n//#region src/contract-free/control-bootstrap.ts\nconst markerColumns = [\n\tcol(\"space\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tprimaryKey: true,\n\t\tdefault: lit(APP_SPACE_ID)\n\t}),\n\tcol(\"core_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"profile_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"contract_json\", \"TEXT\"),\n\tcol(\"canonical_version\", \"INTEGER\"),\n\tcol(\"updated_at\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: fn(SQLITE_NOW_EXPRESSION)\n\t}),\n\tcol(\"app_tag\", \"TEXT\"),\n\tcol(\"meta\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: lit(\"{}\")\n\t}),\n\tcol(\"invariants\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: lit(\"[]\")\n\t})\n];\nconst ledgerColumns = [\n\tcol(\"id\", \"INTEGER PRIMARY KEY AUTOINCREMENT\"),\n\tcol(\"created_at\", \"TEXT\", {\n\t\tnotNull: true,\n\t\tdefault: fn(SQLITE_NOW_EXPRESSION)\n\t}),\n\tcol(\"space\", \"TEXT\", { notNull: true }),\n\tcol(\"migration_name\", \"TEXT\", { notNull: true }),\n\tcol(\"migration_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"origin_core_hash\", \"TEXT\"),\n\tcol(\"origin_profile_hash\", \"TEXT\"),\n\tcol(\"destination_core_hash\", \"TEXT\", { notNull: true }),\n\tcol(\"destination_profile_hash\", \"TEXT\"),\n\tcol(\"contract_json_before\", \"TEXT\"),\n\tcol(\"contract_json_after\", \"TEXT\"),\n\tcol(\"operations\", \"TEXT\", { notNull: true })\n];\nconst markerTable = createTable({\n\ttable: \"_prisma_marker\",\n\tifNotExists: true,\n\tcolumns: markerColumns\n});\nconst ledgerTable = createTable({\n\ttable: \"_prisma_ledger\",\n\tifNotExists: true,\n\tcolumns: ledgerColumns\n});\nfunction buildSignMarkerBootstrapQueries() {\n\treturn [markerTable];\n}\nfunction buildControlTableBootstrapQueries() {\n\treturn [markerTable, ledgerTable];\n}\n//#endregion\nexport { buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, columnExistsAst, createTable, datetime, indexExistsAst, integer, jsonText, sqliteTable, tableExistsAst, text };\n\n//# sourceMappingURL=contract-free.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,QAAQ,SAAS,UAAU;CAChC;CACA,UAAU,MAAM,YAAY;AAC7B;AACA,MAAM,QAAQ,SAAS,KAAK,sBAAsB,IAAI;AACtD,MAAM,WAAW,SAAS,KAAK,yBAAyB,IAAI;AAC5D,MAAM,YAAY,SAAS,KAAK,sBAAsB,IAAI;AAC1D,MAAM,YAAY,SAAS,KAAK,0BAA0B,IAAI;;;;;;;;;;;;;AAa9D,SAAS,YAAY,MAAM,SAAS;CACnC,OAAO,MAAM,YAAY,MAAM,IAAI,GAAG,OAAO;AAC9C;AAGA,MAAM,gBAAgB;CACrB,IAAI,SAAS,QAAQ;EACpB,SAAS;EACT,YAAY;EACZ,SAAS,IAAI,YAAY;CAC1B,CAAC;CACD,IAAI,aAAa,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC1C,IAAI,gBAAgB,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC7C,IAAI,iBAAiB,MAAM;CAC3B,IAAI,qBAAqB,SAAS;CAClC,IAAI,cAAc,QAAQ;EACzB,SAAS;EACT,SAAS,GAAG,qBAAqB;CAClC,CAAC;CACD,IAAI,WAAW,MAAM;CACrB,IAAI,QAAQ,QAAQ;EACnB,SAAS;EACT,SAAS,IAAI,IAAI;CAClB,CAAC;CACD,IAAI,cAAc,QAAQ;EACzB,SAAS;EACT,SAAS,IAAI,IAAI;CAClB,CAAC;AACF;AACA,MAAM,gBAAgB;CACrB,IAAI,MAAM,mCAAmC;CAC7C,IAAI,cAAc,QAAQ;EACzB,SAAS;EACT,SAAS,GAAG,qBAAqB;CAClC,CAAC;CACD,IAAI,SAAS,QAAQ,EAAE,SAAS,KAAK,CAAC;CACtC,IAAI,kBAAkB,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC/C,IAAI,kBAAkB,QAAQ,EAAE,SAAS,KAAK,CAAC;CAC/C,IAAI,oBAAoB,MAAM;CAC9B,IAAI,uBAAuB,MAAM;CACjC,IAAI,yBAAyB,QAAQ,EAAE,SAAS,KAAK,CAAC;CACtD,IAAI,4BAA4B,MAAM;CACtC,IAAI,wBAAwB,MAAM;CAClC,IAAI,uBAAuB,MAAM;CACjC,IAAI,cAAc,QAAQ,EAAE,SAAS,KAAK,CAAC;AAC5C;AACA,MAAM,cAAc,YAAY;CAC/B,OAAO;CACP,aAAa;CACb,SAAS;AACV,CAAC;AACD,MAAM,cAAc,YAAY;CAC/B,OAAO;CACP,aAAa;CACb,SAAS;AACV,CAAC;AACD,SAAS,kCAAkC;CAC1C,OAAO,CAAC,WAAW;AACpB;AACA,SAAS,oCAAoC;CAC5C,OAAO,CAAC,aAAa,WAAW;AACjC"}
@@ -9,7 +9,7 @@ interface ColumnExistsCheckBuilder {
9
9
  }
10
10
  /**
11
11
  * Typed builder for the migration planner's column-existence checks. Produces
12
- * `SELECT COUNT(*) {=|>} 0 AS "result" FROM pragma_table_info(?) WHERE "name" = ?`
12
+ * `SELECT COUNT(*) {=|>} 0 AS "result" FROM pragma_table_info(?1) WHERE "name" = ?2`
13
13
  * ASTs with the table and column names bound as text parameters — never
14
14
  * inlined into the SQL.
15
15
  */
@@ -20,7 +20,7 @@ interface TableExistsCheckBuilder {
20
20
  }
21
21
  /**
22
22
  * Typed builder for table-existence checks over `sqlite_master`.
23
- * Produces `SELECT COUNT(*) {=|>} 0 AS "result" FROM "sqlite_master" WHERE "type" = ? AND "name" = ?`
23
+ * Produces `SELECT COUNT(*) {=|>} 0 AS "result" FROM "sqlite_master" WHERE "type" = ?1 AND "name" = ?2`
24
24
  * with the table name and the literal `'table'` bound as text parameters.
25
25
  */
26
26
  declare function tableExistsAst(tableName: string): TableExistsCheckBuilder;
@@ -30,7 +30,7 @@ interface IndexExistsCheckBuilder {
30
30
  }
31
31
  /**
32
32
  * Typed builder for index-existence checks over `sqlite_master`.
33
- * Produces `SELECT COUNT(*) {=|>} 0 AS "result" FROM "sqlite_master" WHERE "type" = ? AND "name" = ?`
33
+ * Produces `SELECT COUNT(*) {=|>} 0 AS "result" FROM "sqlite_master" WHERE "type" = ?1 AND "name" = ?2`
34
34
  * with the index name and the literal `'index'` bound as text parameters.
35
35
  */
36
36
  declare function indexExistsAst(indexName: string): IndexExistsCheckBuilder;
@@ -85,4 +85,4 @@ declare function createTable(options: {
85
85
  }): SqliteCreateTable;
86
86
  //#endregion
87
87
  export { buildSignMarkerBootstrapQueries as a, datetime as c, jsonText as d, sqliteTable as f, buildControlTableBootstrapQueries as i, indexExistsAst as l, text as m, IndexExistsCheckBuilder as n, columnExistsAst as o, tableExistsAst as p, TableExistsCheckBuilder as r, createTable as s, ColumnExistsCheckBuilder as t, integer as u };
88
- //# sourceMappingURL=contract-free-BJwIJN6x.d.mts.map
88
+ //# sourceMappingURL=contract-free-IqKgq8Pk.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract-free-BJwIJN6x.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/contract-free.d.mts"],"mappings":";;;;;UAIU;EACR,gBAAgB;EAChB,iBAAiB;;;;;;;;iBAQF,gBAAgB,eAAe,iBAAiB;UACvD;EACR,eAAe;EACf,gBAAgB;;;;;;;iBAOD,eAAe,oBAAoB;UAC1C;EACR,eAAe;EACf,gBAAgB;;;;;;;iBAOD,eAAe,oBAAoB;;;KAG/C;WACM;;cAEG,OAAO,OAAO,YAAY;cAC1B,UAAU,OAAO,YAAY;cAC7B,WAAW,OAAO,YAAY;cAC9B,WAAW,OAAO,YAAY;;;;;;;;;;;;;iBAa3B,YAAY,eAAe,cAAc,cAAc,SAAS,SAAS,YAAY;;;iBAGrF,4CAA4C;iBAC5C,8CAA8C;;;;;;;;;;;;;;;;;iBAiB9C,YAAY;WAClB;WACA;WACA;WACA,kBAAkB;WAClB,uBAAuB;IAC9B"}
1
+ {"version":3,"file":"contract-free-IqKgq8Pk.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/contract-free.d.mts"],"mappings":";;;;;UAIU;EACR,gBAAgB;EAChB,iBAAiB;;;;;;;;iBAQF,gBAAgB,eAAe,iBAAiB;UACvD;EACR,eAAe;EACf,gBAAgB;;;;;;;iBAOD,eAAe,oBAAoB;UAC1C;EACR,eAAe;EACf,gBAAgB;;;;;;;iBAOD,eAAe,oBAAoB;;;KAG/C;WACM;;cAEG,OAAO,OAAO,YAAY;cAC1B,UAAU,OAAO,YAAY;cAC7B,WAAW,OAAO,YAAY;cAC9B,WAAW,OAAO,YAAY;;;;;;;;;;;;;iBAa3B,YAAY,eAAe,cAAc,cAAc,SAAS,SAAS,YAAY;;;iBAGrF,4CAA4C;iBAC5C,8CAA8C;;;;;;;;;;;;;;;;;iBAiB9C,YAAY;WAClB;WACA;WACA;WACA,kBAAkB;WAClB,uBAAuB;IAC9B"}
@@ -36,7 +36,7 @@ declare class SqliteControlAdapter implements SqlControlAdapter<'sqlite'> {
36
36
  * Lower an AST all the way to a driver-ready statement. For DDL nodes,
37
37
  * literal column defaults are formatted as inline SQL with SQLite-specific
38
38
  * literal syntax (no cast suffix, boolean as 0/1, blob via X'hex'). For
39
- * query ASTs, params are kept as `?` placeholders; wire values go in
39
+ * query ASTs, params are kept as numbered `?N` placeholders; wire values go in
40
40
  * `params`. Does NOT call `this.lower()` — independent implementation.
41
41
  */
42
42
  lowerToExecuteRequest(ast: AnyQueryAst | SqliteDdlNode, context?: LowererContext<unknown>): Promise<SqlExecuteRequest>;
@@ -110,4 +110,4 @@ declare class SqliteControlAdapter implements SqlControlAdapter<'sqlite'> {
110
110
  declare const sqliteAdapterDescriptor: SqlControlAdapterDescriptor<'sqlite'>;
111
111
  //#endregion
112
112
  export { sqliteAdapterDescriptor as n, SqliteControlAdapter as t };
113
- //# sourceMappingURL=control-B_pSY997.d.mts.map
113
+ //# sourceMappingURL=control-VMpMSXk9.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control-B_pSY997.d.mts","names":[],"sources":["../../../../3-targets/sqlite/2-adapter/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;cAYc,gCAAgC;WACnC;WACA;WACA;mBACQ;mBACA;;EAEjB,YAAY,eAAe,qBAAqB,4BAA4B;EAC5E,yCAAyC;EACzC,uCAAuC;;;;;;;;;EASvC,MAAM,KAAK,cAAc,eAAe,SAAS,0BAA0B;EAC3E,oBAAoB,QAAQ,WAAW,gBAAgB;;;;;;;;EAQvD,sBAAsB,KAAK,cAAc,eAAe,UAAU,0BAA0B,QAAQ;;;;;;EAMpG,WAAW,QAAQ,oCAAoC,gBAAgB,QAAQ;EAC/E,wBAAwB,QAAQ,oCAAoC,gBAAgB,QAAQ;;;;;;EAM5F,eAAe,QAAQ,qCAAqC,QAAQ,oBAAoB;UAChF;;;;;;EAMR,WAAW,QAAQ,oCAAoC,iBAAiB,iBAAiB;UACjF;;;;;;EAMR,aAAa,QAAQ,oCAAoC,eAAe;aAC7D;aACA;aACA;MACP;EACJ,WAAW,QAAQ,oCAAoC,eAAe;aAC3D;aACA;aACA;MACP;;;;;EAKJ,aAAa,QAAQ,oCAAoC,eAAe,sBAAsB;aACnF;aACA;aACA;MACP;EACJ,gBAAgB,GAAG,QAAQ,oCAAoC,UAAU,QAAQ,KAAK,QAAQ;EAC9F,WAAW,SAAS,qCAAqC;;;;EAIzD,iBAAiB,QAAQ,oCAAoC,eAAe;aACjE;aACA;aACA;aACA;aACA;aACA;MACP;UACI;;;;UAIA;EACR,WAAW,QAAQ,oCAAoC,qBAAqB,QAAQ;;;;cAIxE,yBAAyB"}
1
+ {"version":3,"file":"control-VMpMSXk9.d.mts","names":[],"sources":["../../../../3-targets/sqlite/2-adapter/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;cAYc,gCAAgC;WACnC;WACA;WACA;mBACQ;mBACA;;EAEjB,YAAY,eAAe,qBAAqB,4BAA4B;EAC5E,yCAAyC;EACzC,uCAAuC;;;;;;;;;EASvC,MAAM,KAAK,cAAc,eAAe,SAAS,0BAA0B;EAC3E,oBAAoB,QAAQ,WAAW,gBAAgB;;;;;;;;EAQvD,sBAAsB,KAAK,cAAc,eAAe,UAAU,0BAA0B,QAAQ;;;;;;EAMpG,WAAW,QAAQ,oCAAoC,gBAAgB,QAAQ;EAC/E,wBAAwB,QAAQ,oCAAoC,gBAAgB,QAAQ;;;;;;EAM5F,eAAe,QAAQ,qCAAqC,QAAQ,oBAAoB;UAChF;;;;;;EAMR,WAAW,QAAQ,oCAAoC,iBAAiB,iBAAiB;UACjF;;;;;;EAMR,aAAa,QAAQ,oCAAoC,eAAe;aAC7D;aACA;aACA;MACP;EACJ,WAAW,QAAQ,oCAAoC,eAAe;aAC3D;aACA;aACA;MACP;;;;;EAKJ,aAAa,QAAQ,oCAAoC,eAAe,sBAAsB;aACnF;aACA;aACA;MACP;EACJ,gBAAgB,GAAG,QAAQ,oCAAoC,UAAU,QAAQ,KAAK,QAAQ;EAC9F,WAAW,SAAS,qCAAqC;;;;EAIzD,iBAAiB,QAAQ,oCAAoC,eAAe;aACjE;aACA;aACA;aACA;aACA;aACA;MACP;UACI;;;;UAIA;EACR,WAAW,QAAQ,oCAAoC,qBAAqB,QAAQ;;;;cAIxE,yBAAyB"}
@@ -2,10 +2,10 @@ import { c as SQLITE_TEXT_CODEC_ID } from "./codec-ids-wgEvkCkg-WltuexMR.mjs";
2
2
  import { t as SqliteCreateTable } from "./nodes-DUZSdX86-DWyLY3OW.mjs";
3
3
  import { FunctionSource } from "@prisma/orm-family-sql/relational-core/ast";
4
4
  import { cfExpr, cfTable, exprSelect } from "@prisma/orm-family-sql/relational-core/contract-free";
5
- //#region ../../../3-targets/sqlite/1-target/dist/ddl-CX4tAZ-y.mjs
5
+ //#region ../../../3-targets/sqlite/1-target/dist/ddl-BoTU7bCZ.mjs
6
6
  /**
7
7
  * Typed builder for the migration planner's column-existence checks. Produces
8
- * `SELECT COUNT(*) {=|>} 0 AS "result" FROM pragma_table_info(?) WHERE "name" = ?`
8
+ * `SELECT COUNT(*) {=|>} 0 AS "result" FROM pragma_table_info(?1) WHERE "name" = ?2`
9
9
  * ASTs with the table and column names bound as text parameters — never
10
10
  * inlined into the SQL.
11
11
  */
@@ -19,8 +19,8 @@ function columnExistsAst(table, column) {
19
19
  }
20
20
  /**
21
21
  * Typed builder for the check that no column of the table has a name SQLite takes for `column`.
22
- * Produces `SELECT COUNT(*) = 0 AS "result" FROM pragma_table_info(?) WHERE "name" COLLATE NOCASE
23
- * = ?`: SQLite compares column names without regard to the case of ASCII letters, as `NOCASE`
22
+ * Produces `SELECT COUNT(*) = 0 AS "result" FROM pragma_table_info(?1) WHERE "name" COLLATE NOCASE
23
+ * = ?2`: SQLite compares column names without regard to the case of ASCII letters, as `NOCASE`
24
24
  * does.
25
25
  */
26
26
  function columnNameTakenAst(table, column) {
@@ -38,7 +38,7 @@ function columnNameTakenAst(table, column) {
38
38
  }
39
39
  /**
40
40
  * Typed builder for table-existence checks over `sqlite_master`.
41
- * Produces `SELECT COUNT(*) {=|>} 0 AS "result" FROM "sqlite_master" WHERE "type" = ? AND "name" = ?`
41
+ * Produces `SELECT COUNT(*) {=|>} 0 AS "result" FROM "sqlite_master" WHERE "type" = ?1 AND "name" = ?2`
42
42
  * with the table name and the literal `'table'` bound as text parameters.
43
43
  */
44
44
  function tableExistsAst(tableName) {
@@ -51,7 +51,7 @@ function tableExistsAst(tableName) {
51
51
  }
52
52
  /**
53
53
  * Typed builder for the check that no table, index or view has a name SQLite takes for `name`.
54
- * Produces `SELECT COUNT(*) = 0 AS "result" FROM "sqlite_master" WHERE "name" COLLATE NOCASE = ?`:
54
+ * Produces `SELECT COUNT(*) = 0 AS "result" FROM "sqlite_master" WHERE "name" COLLATE NOCASE = ?1`:
55
55
  * tables, indexes and views share one set of names, which SQLite compares without regard to the
56
56
  * case of ASCII letters.
57
57
  */
@@ -69,7 +69,7 @@ function tableNameTakenAst(tableName) {
69
69
  }
70
70
  /**
71
71
  * Typed builder for index-existence checks over `sqlite_master`.
72
- * Produces `SELECT COUNT(*) {=|>} 0 AS "result" FROM "sqlite_master" WHERE "type" = ? AND "name" = ?`
72
+ * Produces `SELECT COUNT(*) {=|>} 0 AS "result" FROM "sqlite_master" WHERE "type" = ?1 AND "name" = ?2`
73
73
  * with the index name and the literal `'index'` bound as text parameters.
74
74
  */
75
75
  function indexExistsAst(indexName) {
@@ -100,4 +100,4 @@ function createTable(options) {
100
100
  //#endregion
101
101
  export { tableExistsAst as a, indexExistsAst as i, columnNameTakenAst as n, tableNameTakenAst as o, createTable as r, columnExistsAst as t };
102
102
 
103
- //# sourceMappingURL=ddl-CX4tAZ-y-Bng-4PWC.mjs.map
103
+ //# sourceMappingURL=ddl-BoTU7bCZ-CXNSFEtj.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ddl-BoTU7bCZ-CXNSFEtj.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/ddl-BoTU7bCZ.mjs"],"sourcesContent":["import { c as SQLITE_TEXT_CODEC_ID } from \"./codec-ids-wgEvkCkg.mjs\";\nimport { t as SqliteCreateTable } from \"./nodes-DUZSdX86.mjs\";\nimport { FunctionSource } from \"@internal/sql-relational-core/ast\";\nimport { cfExpr, cfTable, exprSelect } from \"@internal/sql-relational-core/contract-free\";\n//#region src/contract-free/checks.ts\n/**\n* Typed builder for the migration planner's column-existence checks. Produces\n* `SELECT COUNT(*) {=|>} 0 AS \"result\" FROM pragma_table_info(?1) WHERE \"name\" = ?2`\n* ASTs with the table and column names bound as text parameters — never\n* inlined into the SQL.\n*/\nfunction columnExistsAst(table, column) {\n\tconst source = FunctionSource.of(\"pragma_table_info\", [cfExpr.param(table, SQLITE_TEXT_CODEC_ID).ast]);\n\tconst where = cfExpr.identifierRef(\"name\").eqParam(column, SQLITE_TEXT_CODEC_ID);\n\treturn {\n\t\tcolumnAbsent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build(),\n\t\tcolumnPresent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().gtLit(0)).where(where).build()\n\t};\n}\n/**\n* Typed builder for the check that no column of the table has a name SQLite takes for `column`.\n* Produces `SELECT COUNT(*) = 0 AS \"result\" FROM pragma_table_info(?1) WHERE \"name\" COLLATE NOCASE\n* = ?2`: SQLite compares column names without regard to the case of ASCII letters, as `NOCASE`\n* does.\n*/\nfunction columnNameTakenAst(table, column) {\n\tconst source = FunctionSource.of(\"pragma_table_info\", [cfExpr.param(table, SQLITE_TEXT_CODEC_ID).ast]);\n\tconst where = cfExpr.fn({\n\t\tmethod: \"collateNocase\",\n\t\ttemplate: \"{{self}} COLLATE NOCASE\",\n\t\tself: cfExpr.identifierRef(\"name\"),\n\t\treturns: {\n\t\t\tcodecId: SQLITE_TEXT_CODEC_ID,\n\t\t\tnullable: false\n\t\t}\n\t}).eqParam(column, SQLITE_TEXT_CODEC_ID);\n\treturn { nameFree: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build() };\n}\n/**\n* Typed builder for table-existence checks over `sqlite_master`.\n* Produces `SELECT COUNT(*) {=|>} 0 AS \"result\" FROM \"sqlite_master\" WHERE \"type\" = ?1 AND \"name\" = ?2`\n* with the table name and the literal `'table'` bound as text parameters.\n*/\nfunction tableExistsAst(tableName) {\n\tconst source = cfTable(\"sqlite_master\");\n\tconst where = cfExpr.allOf([cfExpr.identifierRef(\"type\").eqParam(\"table\", SQLITE_TEXT_CODEC_ID), cfExpr.identifierRef(\"name\").eqParam(tableName, SQLITE_TEXT_CODEC_ID)]);\n\treturn {\n\t\ttableAbsent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build(),\n\t\ttablePresent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().gtLit(0)).where(where).build()\n\t};\n}\n/**\n* Typed builder for the check that no table, index or view has a name SQLite takes for `name`.\n* Produces `SELECT COUNT(*) = 0 AS \"result\" FROM \"sqlite_master\" WHERE \"name\" COLLATE NOCASE = ?1`:\n* tables, indexes and views share one set of names, which SQLite compares without regard to the\n* case of ASCII letters.\n*/\nfunction tableNameTakenAst(tableName) {\n\tconst where = cfExpr.fn({\n\t\tmethod: \"collateNocase\",\n\t\ttemplate: \"{{self}} COLLATE NOCASE\",\n\t\tself: cfExpr.identifierRef(\"name\"),\n\t\treturns: {\n\t\t\tcodecId: SQLITE_TEXT_CODEC_ID,\n\t\t\tnullable: false\n\t\t}\n\t}).eqParam(tableName, SQLITE_TEXT_CODEC_ID);\n\treturn { nameFree: () => exprSelect().from(cfTable(\"sqlite_master\")).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build() };\n}\n/**\n* Typed builder for index-existence checks over `sqlite_master`.\n* Produces `SELECT COUNT(*) {=|>} 0 AS \"result\" FROM \"sqlite_master\" WHERE \"type\" = ?1 AND \"name\" = ?2`\n* with the index name and the literal `'index'` bound as text parameters.\n*/\nfunction indexExistsAst(indexName) {\n\tconst source = cfTable(\"sqlite_master\");\n\tconst where = cfExpr.allOf([cfExpr.identifierRef(\"type\").eqParam(\"index\", SQLITE_TEXT_CODEC_ID), cfExpr.identifierRef(\"name\").eqParam(indexName, SQLITE_TEXT_CODEC_ID)]);\n\treturn {\n\t\tindexAbsent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().eqLit(0)).where(where).build(),\n\t\tindexPresent: () => exprSelect().from(source).project(\"result\", cfExpr.countStar().gtLit(0)).where(where).build()\n\t};\n}\n//#endregion\n//#region src/contract-free/ddl.ts\n/**\n* Build a SQLite `CREATE TABLE` query node.\n*\n* Pass `constraints` for table-level composite primary keys, foreign keys, and\n* unique constraints — use the {@link PrimaryKeyConstraint}, {@link ForeignKeyConstraint},\n* and {@link UniqueConstraint} classes from `@internal/sql-relational-core/ast`.\n*\n* Precondition: identifiers (`table`, column names/types) are emitted to SQL\n* verbatim — they are not quoted or escaped, so callers must pass pre-trusted\n* values (e.g. fixed control-plane identifiers). String-literal default values,\n* by contrast, are single-quote-escaped (embedded `'` doubled) by the renderer.\n* Identifier quoting for untrusted identifiers is added when the migration\n* planner adopts this lowering path.\n*/\nfunction createTable(options) {\n\treturn new SqliteCreateTable(options);\n}\n//#endregion\nexport { tableExistsAst as a, indexExistsAst as i, columnExistsAst as n, tableNameTakenAst as o, columnNameTakenAst as r, createTable as t };\n\n//# sourceMappingURL=ddl-BoTU7bCZ.mjs.map"],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  import { t as buildTargetDetails } from "./planner-target-details-Daaeo8s9-BGAN4JVc.mjs";
2
- import { C as step } from "./op-factory-call-82mX3jT--BaXeVrFl.mjs";
2
+ import { C as step } from "./op-factory-call-lluKW6u9-D2x8W4qv.mjs";
3
3
  import { col as col$1, fn as fn$1, foreignKey, lit as lit$1, primaryKey, unique } from "@prisma/orm-family-sql/relational-core/contract-free";
4
4
  import { placeholder } from "@prisma/orm-framework/errors/migration";
5
5
  import { MigrationCLI } from "@prisma/orm-toolchain/cli/migration-cli";
@@ -45,4 +45,4 @@ function rawSql(op) {
45
45
  //#endregion
46
46
  export { foreignKey as a, primaryKey as c, unique as d, fn$1 as i, rawSql as l, col$1 as n, lit$1 as o, dataTransform as r, placeholder as s, MigrationCLI as t, sql as u };
47
47
 
48
- //# sourceMappingURL=migration-wMj4eXHP.mjs.map
48
+ //# sourceMappingURL=migration-8iTYuvo3.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"migration-wMj4eXHP.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/migration.mjs"],"sourcesContent":["import { t as SqliteMigration } from \"./sqlite-migration-Ct0LmmUo.mjs\";\nimport { S as step } from \"./op-factory-call-82mX3jT-.mjs\";\nimport { t as buildTargetDetails } from \"./planner-target-details-Daaeo8s9.mjs\";\nimport { placeholder } from \"@internal/errors/migration\";\nimport { col, fn, foreignKey, lit, primaryKey, unique } from \"@internal/sql-relational-core/contract-free\";\nimport { MigrationCLI } from \"@internal/cli/migration-cli\";\nimport { sql } from \"@internal/sql-contract/sql-expression\";\n//#region src/core/migrations/operations/data-transform.ts\n/**\n* User-facing `dataTransform` factory for the SQLite migration authoring\n* surface. Invoked directly inside a `migration.ts` file to supply a\n* user-authored SQL statement that runs with operation class `'data'`.\n*\n* Typical use: the planner emits a `DataTransformCall` stub when a NOT NULL\n* tightening requires a backfill. The rendered `migration.ts` exposes the\n* backfill as a `placeholder(\"…\")` slot the user fills in with an\n* `UPDATE … WHERE col IS NULL` statement. The filled-in `dataTransform(...)`\n* invocation returns a runnable operation the runner executes before the\n* subsequent recreate-table op copies data into the tightened schema.\n*/\nfunction dataTransform(opts) {\n\treturn {\n\t\tid: opts.id,\n\t\tlabel: opts.label,\n\t\tsummary: opts.description,\n\t\toperationClass: \"data\",\n\t\ttarget: {\n\t\t\tid: \"sqlite\",\n\t\t\tdetails: buildTargetDetails(\"table\", opts.table)\n\t\t},\n\t\tprecheck: [],\n\t\texecute: [step(opts.description, opts.run())],\n\t\tpostcheck: []\n\t};\n}\n//#endregion\n//#region src/core/migrations/operations/raw.ts\n/**\n* Identity factory for an already-materialized\n* `SqlMigrationPlanOperation<SqlitePlanTargetDetails>`. Mirrors the Postgres\n* `rawSql` factory: the planner uses this to carry ops produced by SQL-family\n* paths (codec lifecycle hooks, raw-SQL escape hatches) alongside structured\n* call IR without reverse-engineering their shape.\n*/\nfunction rawSql(op) {\n\treturn op;\n}\n//#endregion\nexport { SqliteMigration as Migration, MigrationCLI, col, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, sql, unique };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,SAAS,cAAc,MAAM;CAC5B,OAAO;EACN,IAAI,KAAK;EACT,OAAO,KAAK;EACZ,SAAS,KAAK;EACd,gBAAgB;EAChB,QAAQ;GACP,IAAI;GACJ,SAAS,mBAAmB,SAAS,KAAK,KAAK;EAChD;EACA,UAAU,CAAC;EACX,SAAS,CAAC,KAAK,KAAK,aAAa,KAAK,IAAI,CAAC,CAAC;EAC5C,WAAW,CAAC;CACb;AACD;;;;;;;;AAUA,SAAS,OAAO,IAAI;CACnB,OAAO;AACR"}
1
+ {"version":3,"file":"migration-8iTYuvo3.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/migration.mjs"],"sourcesContent":["import { t as SqliteMigration } from \"./sqlite-migration-DXkxomAv.mjs\";\nimport { S as step } from \"./op-factory-call-lluKW6u9.mjs\";\nimport { t as buildTargetDetails } from \"./planner-target-details-Daaeo8s9.mjs\";\nimport { placeholder } from \"@internal/errors/migration\";\nimport { col, fn, foreignKey, lit, primaryKey, unique } from \"@internal/sql-relational-core/contract-free\";\nimport { MigrationCLI } from \"@internal/cli/migration-cli\";\nimport { sql } from \"@internal/sql-contract/sql-expression\";\n//#region src/core/migrations/operations/data-transform.ts\n/**\n* User-facing `dataTransform` factory for the SQLite migration authoring\n* surface. Invoked directly inside a `migration.ts` file to supply a\n* user-authored SQL statement that runs with operation class `'data'`.\n*\n* Typical use: the planner emits a `DataTransformCall` stub when a NOT NULL\n* tightening requires a backfill. The rendered `migration.ts` exposes the\n* backfill as a `placeholder(\"…\")` slot the user fills in with an\n* `UPDATE … WHERE col IS NULL` statement. The filled-in `dataTransform(...)`\n* invocation returns a runnable operation the runner executes before the\n* subsequent recreate-table op copies data into the tightened schema.\n*/\nfunction dataTransform(opts) {\n\treturn {\n\t\tid: opts.id,\n\t\tlabel: opts.label,\n\t\tsummary: opts.description,\n\t\toperationClass: \"data\",\n\t\ttarget: {\n\t\t\tid: \"sqlite\",\n\t\t\tdetails: buildTargetDetails(\"table\", opts.table)\n\t\t},\n\t\tprecheck: [],\n\t\texecute: [step(opts.description, opts.run())],\n\t\tpostcheck: []\n\t};\n}\n//#endregion\n//#region src/core/migrations/operations/raw.ts\n/**\n* Identity factory for an already-materialized\n* `SqlMigrationPlanOperation<SqlitePlanTargetDetails>`. Mirrors the Postgres\n* `rawSql` factory: the planner uses this to carry ops produced by SQL-family\n* paths (codec lifecycle hooks, raw-SQL escape hatches) alongside structured\n* call IR without reverse-engineering their shape.\n*/\nfunction rawSql(op) {\n\treturn op;\n}\n//#endregion\nexport { SqliteMigration as Migration, MigrationCLI, col, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, sql, unique };\n\n//# sourceMappingURL=migration.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,SAAS,cAAc,MAAM;CAC5B,OAAO;EACN,IAAI,KAAK;EACT,OAAO,KAAK;EACZ,SAAS,KAAK;EACd,gBAAgB;EAChB,QAAQ;GACP,IAAI;GACJ,SAAS,mBAAmB,SAAS,KAAK,KAAK;EAChD;EACA,UAAU,CAAC;EACX,SAAS,CAAC,KAAK,KAAK,aAAa,KAAK,IAAI,CAAC,CAAC;EAC5C,WAAW,CAAC;CACb;AACD;;;;;;;;AAUA,SAAS,OAAO,IAAI;CACnB,OAAO;AACR"}
@@ -1,5 +1,5 @@
1
1
  import { n as sqliteError } from "./errors-DnR-sMHS-D_gh214a.mjs";
2
- import { a as tableExistsAst, i as indexExistsAst, n as columnNameTakenAst, o as tableNameTakenAst, r as createTable, t as columnExistsAst } from "./ddl-CX4tAZ-y-Bng-4PWC.mjs";
2
+ import { a as tableExistsAst, i as indexExistsAst, n as columnNameTakenAst, o as tableNameTakenAst, r as createTable, t as columnExistsAst } from "./ddl-BoTU7bCZ-CXNSFEtj.mjs";
3
3
  import { n as escapeLiteral, r as quoteIdentifier, t as SQLITE_QUOTING } from "./sql-utils-XGT5Esi2-Zr2mqJf8.mjs";
4
4
  import { r as stripOuterParens } from "./default-normalizer-DGMXypHg-CPf7oyZA.mjs";
5
5
  import { t as buildTargetDetails } from "./planner-target-details-Daaeo8s9-BGAN4JVc.mjs";
@@ -16,7 +16,7 @@ import { RelationalSchemaNodeKind, sqlColumnTypesEqual } from "@prisma/orm-famil
16
16
  import { errorMigrationOperationOptionRemoved, unfilledPlaceholderOperation } from "@prisma/orm-framework/errors/migration";
17
17
  import { REFERENTIAL_ACTION_SQL } from "@prisma/orm-family-sql/contract/referential-action-sql";
18
18
  import { TsExpression, jsonToTsSource, tsArraySource, tsObjectSource, tsQuotedTextSource } from "@prisma/orm-framework/ts-render";
19
- //#region ../../../3-targets/sqlite/1-target/dist/op-factory-call-82mX3jT-.mjs
19
+ //#region ../../../3-targets/sqlite/1-target/dist/op-factory-call-lluKW6u9.mjs
20
20
  function foldAsciiLetters(identifier) {
21
21
  return identifier.replace(/[A-Z]/g, (letter) => letter.toLowerCase());
22
22
  }
@@ -1411,4 +1411,4 @@ function renderPostcheck(postcheck) {
1411
1411
  //#endregion
1412
1412
  export { step as C, sqliteIdentifiersCollide as S, indexReplacementCalls as _, DropColumnCall as a, renameTableSteps as b, INLINE_AUTOINCREMENT_PRIMARY_KEY as c, RenameColumnCall as d, RenameTableCall as f, conversionCopyOf as g, buildRecreateSummary as h, DataTransformCall as i, RawSqlCall as l, buildRecreatePostchecks as m, CreateIndexCall as n, DropIndexCall as o, affinityStorageClasses as p, CreateTableCall as r, DropTableCall as s, AddColumnCall as t, RecreateTableCall as u, isSqliteOpFactoryCall as v, sqliteDefaultToDdlColumnDefault as x, rebuiltTableName as y };
1413
1413
 
1414
- //# sourceMappingURL=op-factory-call-82mX3jT--BaXeVrFl.mjs.map
1414
+ //# sourceMappingURL=op-factory-call-lluKW6u9-D2x8W4qv.mjs.map