@prisma-next/target-sqlite 0.5.0-dev.19 → 0.5.0-dev.20
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/codec-ids-B1-OiN8Q.mjs +14 -0
- package/dist/codec-ids-B1-OiN8Q.mjs.map +1 -0
- package/dist/codec-ids.d.mts +13 -0
- package/dist/codec-ids.d.mts.map +1 -0
- package/dist/codec-ids.mjs +3 -0
- package/dist/codec-types.d.mts +7 -0
- package/dist/codec-types.d.mts.map +1 -0
- package/dist/codec-types.mjs +3 -0
- package/dist/codecs-5GJysiEg.mjs +95 -0
- package/dist/codecs-5GJysiEg.mjs.map +1 -0
- package/dist/codecs-C_nXKH00.d.mts +135 -0
- package/dist/codecs-C_nXKH00.d.mts.map +1 -0
- package/dist/codecs.d.mts +2 -0
- package/dist/codecs.mjs +3 -0
- package/dist/control.d.mts +4 -3
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +336 -1
- package/dist/control.mjs.map +1 -1
- package/dist/default-normalizer-R-sQXAYt.mjs +69 -0
- package/dist/default-normalizer-R-sQXAYt.mjs.map +1 -0
- package/dist/default-normalizer.d.mts +8 -0
- package/dist/default-normalizer.d.mts.map +1 -0
- package/dist/default-normalizer.mjs +3 -0
- package/dist/{descriptor-meta-DbuuziYA.mjs → descriptor-meta-CzGTszoH.mjs} +1 -1
- package/dist/descriptor-meta-CzGTszoH.mjs.map +1 -0
- package/dist/migration.d.mts +76 -0
- package/dist/migration.d.mts.map +1 -0
- package/dist/migration.mjs +38 -0
- package/dist/migration.mjs.map +1 -0
- package/dist/native-type-normalizer-BMovohPm.mjs +14 -0
- package/dist/native-type-normalizer-BMovohPm.mjs.map +1 -0
- package/dist/native-type-normalizer.d.mts +11 -0
- package/dist/native-type-normalizer.d.mts.map +1 -0
- package/dist/native-type-normalizer.mjs +3 -0
- package/dist/op-factory-call-BPPSCdTB.d.mts +134 -0
- package/dist/op-factory-call-BPPSCdTB.d.mts.map +1 -0
- package/dist/op-factory-call-BUVV-W9F.mjs +252 -0
- package/dist/op-factory-call-BUVV-W9F.mjs.map +1 -0
- package/dist/op-factory-call.d.mts +3 -0
- package/dist/op-factory-call.mjs +3 -0
- package/dist/pack.d.mts +1 -1
- package/dist/pack.mjs +1 -1
- package/dist/planner-VeEed7Lh.mjs +522 -0
- package/dist/planner-VeEed7Lh.mjs.map +1 -0
- package/dist/planner-produced-sqlite-migration-D5fCmMbO.mjs +109 -0
- package/dist/planner-produced-sqlite-migration-D5fCmMbO.mjs.map +1 -0
- package/dist/planner-produced-sqlite-migration-RVneETNy.d.mts +24 -0
- package/dist/planner-produced-sqlite-migration-RVneETNy.d.mts.map +1 -0
- package/dist/planner-produced-sqlite-migration.d.mts +5 -0
- package/dist/planner-produced-sqlite-migration.mjs +3 -0
- package/dist/planner-target-details-BQIWQlBu.mjs +16 -0
- package/dist/planner-target-details-BQIWQlBu.mjs.map +1 -0
- package/dist/planner-target-details-DTIFFx4L.d.mts +12 -0
- package/dist/planner-target-details-DTIFFx4L.d.mts.map +1 -0
- package/dist/planner-target-details.d.mts +2 -0
- package/dist/planner-target-details.mjs +3 -0
- package/dist/planner.d.mts +46 -0
- package/dist/planner.d.mts.map +1 -0
- package/dist/planner.mjs +3 -0
- package/dist/render-ops-CXOv7SRC.mjs +8 -0
- package/dist/render-ops-CXOv7SRC.mjs.map +1 -0
- package/dist/render-ops.d.mts +11 -0
- package/dist/render-ops.d.mts.map +1 -0
- package/dist/render-ops.mjs +3 -0
- package/dist/runtime.mjs +1 -1
- package/dist/shared-BNtoZqdo.d.mts +69 -0
- package/dist/shared-BNtoZqdo.d.mts.map +1 -0
- package/dist/sql-utils-D3SMPFDD.mjs +33 -0
- package/dist/sql-utils-D3SMPFDD.mjs.map +1 -0
- package/dist/sql-utils.d.mts +22 -0
- package/dist/sql-utils.d.mts.map +1 -0
- package/dist/sql-utils.mjs +3 -0
- package/dist/sqlite-migration-BYgrMZdR.d.mts +18 -0
- package/dist/sqlite-migration-BYgrMZdR.d.mts.map +1 -0
- package/dist/sqlite-migration-CnLhIrJF.mjs +17 -0
- package/dist/sqlite-migration-CnLhIrJF.mjs.map +1 -0
- package/dist/statement-builders-B3OGOp7n.mjs +148 -0
- package/dist/statement-builders-B3OGOp7n.mjs.map +1 -0
- package/dist/statement-builders.d.mts +48 -0
- package/dist/statement-builders.d.mts.map +1 -0
- package/dist/statement-builders.mjs +3 -0
- package/dist/tables-sKIg_lWE.mjs +408 -0
- package/dist/tables-sKIg_lWE.mjs.map +1 -0
- package/package.json +29 -8
- package/src/core/codec-ids.ts +13 -0
- package/src/core/codecs.ts +119 -0
- package/src/core/control-target.ts +54 -11
- package/src/core/default-normalizer.ts +92 -0
- package/src/core/descriptor-meta.ts +1 -1
- package/src/core/migrations/issue-planner.ts +586 -0
- package/src/core/migrations/op-factory-call.ts +332 -0
- package/src/core/migrations/operations/columns.ts +62 -0
- package/src/core/migrations/operations/data-transform.ts +51 -0
- package/src/core/migrations/operations/indexes.ts +52 -0
- package/src/core/migrations/operations/shared.ts +120 -0
- package/src/core/migrations/operations/tables.ts +388 -0
- package/src/core/migrations/planner-ddl-builders.ts +142 -0
- package/src/core/migrations/planner-produced-sqlite-migration.ts +57 -0
- package/src/core/migrations/planner-strategies.ts +231 -0
- package/src/core/migrations/planner-target-details.ts +33 -0
- package/src/core/migrations/planner.ts +136 -0
- package/src/core/migrations/render-ops.ts +9 -0
- package/src/core/migrations/render-typescript.ts +95 -0
- package/src/core/migrations/runner.ts +576 -0
- package/src/core/migrations/sqlite-migration.ts +13 -0
- package/src/core/migrations/statement-builders.ts +190 -0
- package/src/core/native-type-normalizer.ts +9 -0
- package/src/core/sql-utils.ts +47 -0
- package/src/exports/codec-ids.ts +13 -0
- package/src/exports/codec-types.ts +6 -0
- package/src/exports/codecs.ts +1 -0
- package/src/exports/control.ts +1 -0
- package/src/exports/default-normalizer.ts +1 -0
- package/src/exports/migration.ts +23 -0
- package/src/exports/native-type-normalizer.ts +1 -0
- package/src/exports/op-factory-call.ts +11 -0
- package/src/exports/planner-produced-sqlite-migration.ts +4 -0
- package/src/exports/planner-target-details.ts +2 -0
- package/src/exports/planner.ts +2 -0
- package/src/exports/render-ops.ts +1 -0
- package/src/exports/sql-utils.ts +1 -0
- package/src/exports/statement-builders.ts +11 -0
- package/dist/descriptor-meta-DbuuziYA.mjs.map +0 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
export interface SqlStatement {
|
|
2
|
+
readonly sql: string;
|
|
3
|
+
readonly params: readonly unknown[];
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const MARKER_TABLE_NAME = '_prisma_marker';
|
|
7
|
+
export const LEDGER_TABLE_NAME = '_prisma_ledger';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Control tables the runner creates/manages. The planner must not drop these
|
|
11
|
+
* when reconciling "extra" tables against the contract.
|
|
12
|
+
*/
|
|
13
|
+
export const CONTROL_TABLE_NAMES: ReadonlySet<string> = new Set([
|
|
14
|
+
MARKER_TABLE_NAME,
|
|
15
|
+
LEDGER_TABLE_NAME,
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
export const ensureMarkerTableStatement: SqlStatement = {
|
|
19
|
+
sql: `CREATE TABLE IF NOT EXISTS _prisma_marker (
|
|
20
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
21
|
+
core_hash TEXT NOT NULL,
|
|
22
|
+
profile_hash TEXT NOT NULL,
|
|
23
|
+
contract_json TEXT,
|
|
24
|
+
canonical_version INTEGER,
|
|
25
|
+
updated_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
26
|
+
app_tag TEXT,
|
|
27
|
+
meta TEXT NOT NULL DEFAULT '{}',
|
|
28
|
+
invariants TEXT NOT NULL DEFAULT '[]'
|
|
29
|
+
)`,
|
|
30
|
+
params: [],
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const ensureLedgerTableStatement: SqlStatement = {
|
|
34
|
+
sql: `CREATE TABLE IF NOT EXISTS _prisma_ledger (
|
|
35
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
36
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
37
|
+
origin_core_hash TEXT,
|
|
38
|
+
origin_profile_hash TEXT,
|
|
39
|
+
destination_core_hash TEXT NOT NULL,
|
|
40
|
+
destination_profile_hash TEXT,
|
|
41
|
+
contract_json_before TEXT,
|
|
42
|
+
contract_json_after TEXT,
|
|
43
|
+
operations TEXT NOT NULL
|
|
44
|
+
)`,
|
|
45
|
+
params: [],
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export function readMarkerStatement(): SqlStatement {
|
|
49
|
+
return {
|
|
50
|
+
sql: `SELECT
|
|
51
|
+
core_hash,
|
|
52
|
+
profile_hash,
|
|
53
|
+
contract_json,
|
|
54
|
+
canonical_version,
|
|
55
|
+
updated_at,
|
|
56
|
+
app_tag,
|
|
57
|
+
meta,
|
|
58
|
+
invariants
|
|
59
|
+
FROM _prisma_marker
|
|
60
|
+
WHERE id = ?`,
|
|
61
|
+
params: [1],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface WriteMarkerInput {
|
|
66
|
+
readonly storageHash: string;
|
|
67
|
+
readonly profileHash: string;
|
|
68
|
+
readonly contractJson?: unknown;
|
|
69
|
+
readonly canonicalVersion?: number | null;
|
|
70
|
+
readonly appTag?: string | null;
|
|
71
|
+
readonly meta?: Record<string, unknown>;
|
|
72
|
+
/**
|
|
73
|
+
* Invariants to write into `marker.invariants`. Stored as a JSON-encoded
|
|
74
|
+
* TEXT array — SQLite has no native array type. The runner is responsible
|
|
75
|
+
* for merging with the existing column (no SQL-side merge here, unlike
|
|
76
|
+
* Postgres) before passing them in: BEGIN EXCLUSIVE on the migration
|
|
77
|
+
* transaction makes the read-then-merge-then-write sequence safe.
|
|
78
|
+
*/
|
|
79
|
+
readonly invariants: readonly string[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function buildWriteMarkerStatements(input: WriteMarkerInput): {
|
|
83
|
+
readonly insert: SqlStatement;
|
|
84
|
+
readonly update: SqlStatement;
|
|
85
|
+
} {
|
|
86
|
+
const params: readonly unknown[] = [
|
|
87
|
+
1,
|
|
88
|
+
input.storageHash,
|
|
89
|
+
input.profileHash,
|
|
90
|
+
jsonParam(input.contractJson),
|
|
91
|
+
input.canonicalVersion ?? null,
|
|
92
|
+
input.appTag ?? null,
|
|
93
|
+
jsonParam(input.meta ?? {}),
|
|
94
|
+
jsonParam(input.invariants),
|
|
95
|
+
];
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
insert: {
|
|
99
|
+
sql: `INSERT INTO _prisma_marker (
|
|
100
|
+
id,
|
|
101
|
+
core_hash,
|
|
102
|
+
profile_hash,
|
|
103
|
+
contract_json,
|
|
104
|
+
canonical_version,
|
|
105
|
+
updated_at,
|
|
106
|
+
app_tag,
|
|
107
|
+
meta,
|
|
108
|
+
invariants
|
|
109
|
+
) VALUES (
|
|
110
|
+
?,
|
|
111
|
+
?,
|
|
112
|
+
?,
|
|
113
|
+
?,
|
|
114
|
+
?,
|
|
115
|
+
datetime('now'),
|
|
116
|
+
?,
|
|
117
|
+
?,
|
|
118
|
+
?
|
|
119
|
+
)`,
|
|
120
|
+
params,
|
|
121
|
+
},
|
|
122
|
+
update: {
|
|
123
|
+
sql: `UPDATE _prisma_marker SET
|
|
124
|
+
core_hash = ?,
|
|
125
|
+
profile_hash = ?,
|
|
126
|
+
contract_json = ?,
|
|
127
|
+
canonical_version = ?,
|
|
128
|
+
updated_at = datetime('now'),
|
|
129
|
+
app_tag = ?,
|
|
130
|
+
meta = ?,
|
|
131
|
+
invariants = ?
|
|
132
|
+
WHERE id = ?`,
|
|
133
|
+
params: [
|
|
134
|
+
input.storageHash,
|
|
135
|
+
input.profileHash,
|
|
136
|
+
jsonParam(input.contractJson),
|
|
137
|
+
input.canonicalVersion ?? null,
|
|
138
|
+
input.appTag ?? null,
|
|
139
|
+
jsonParam(input.meta ?? {}),
|
|
140
|
+
jsonParam(input.invariants),
|
|
141
|
+
1,
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface LedgerInsertInput {
|
|
148
|
+
readonly originStorageHash?: string | null;
|
|
149
|
+
readonly originProfileHash?: string | null;
|
|
150
|
+
readonly destinationStorageHash: string;
|
|
151
|
+
readonly destinationProfileHash?: string | null;
|
|
152
|
+
readonly contractJsonBefore?: unknown;
|
|
153
|
+
readonly contractJsonAfter?: unknown;
|
|
154
|
+
readonly operations: unknown;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function buildLedgerInsertStatement(input: LedgerInsertInput): SqlStatement {
|
|
158
|
+
return {
|
|
159
|
+
sql: `INSERT INTO _prisma_ledger (
|
|
160
|
+
origin_core_hash,
|
|
161
|
+
origin_profile_hash,
|
|
162
|
+
destination_core_hash,
|
|
163
|
+
destination_profile_hash,
|
|
164
|
+
contract_json_before,
|
|
165
|
+
contract_json_after,
|
|
166
|
+
operations
|
|
167
|
+
) VALUES (
|
|
168
|
+
?,
|
|
169
|
+
?,
|
|
170
|
+
?,
|
|
171
|
+
?,
|
|
172
|
+
?,
|
|
173
|
+
?,
|
|
174
|
+
?
|
|
175
|
+
)`,
|
|
176
|
+
params: [
|
|
177
|
+
input.originStorageHash ?? null,
|
|
178
|
+
input.originProfileHash ?? null,
|
|
179
|
+
input.destinationStorageHash,
|
|
180
|
+
input.destinationProfileHash ?? null,
|
|
181
|
+
jsonParam(input.contractJsonBefore),
|
|
182
|
+
jsonParam(input.contractJsonAfter),
|
|
183
|
+
jsonParam(input.operations),
|
|
184
|
+
],
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
function jsonParam(value: unknown): string {
|
|
189
|
+
return JSON.stringify(value ?? null);
|
|
190
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonicalizes SQLite native-type tokens for verifier comparison.
|
|
3
|
+
* Lives target-side so the planner / runner / adapter all share the same
|
|
4
|
+
* normalization without crossing the `target-sqlite` ↔ `adapter-sqlite`
|
|
5
|
+
* boundary.
|
|
6
|
+
*/
|
|
7
|
+
export function normalizeSqliteNativeType(nativeType: string): string {
|
|
8
|
+
return nativeType.trim().toLowerCase();
|
|
9
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared SQL utility functions for the SQLite target.
|
|
3
|
+
*
|
|
4
|
+
* These functions handle safe SQL identifier and literal escaping. They
|
|
5
|
+
* live in `target-sqlite` (mirroring `target-postgres/src/core/sql-utils.ts`)
|
|
6
|
+
* so both the control adapter (used at emit time) and the runtime adapter
|
|
7
|
+
* (used at execute time) can depend on them through a single one-way edge:
|
|
8
|
+
* `adapter-sqlite → target-sqlite`. Hosting them target-side avoids the
|
|
9
|
+
* cyclic workspace dependency that would arise if `target-sqlite` reached
|
|
10
|
+
* back into `adapter-sqlite` for these primitives.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export class SqlEscapeError extends Error {
|
|
14
|
+
constructor(
|
|
15
|
+
message: string,
|
|
16
|
+
public readonly value: string,
|
|
17
|
+
public readonly kind: 'identifier' | 'literal',
|
|
18
|
+
) {
|
|
19
|
+
super(message);
|
|
20
|
+
this.name = 'SqlEscapeError';
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function quoteIdentifier(identifier: string): string {
|
|
25
|
+
if (identifier.length === 0) {
|
|
26
|
+
throw new SqlEscapeError('Identifier cannot be empty', identifier, 'identifier');
|
|
27
|
+
}
|
|
28
|
+
if (identifier.includes('\0')) {
|
|
29
|
+
throw new SqlEscapeError(
|
|
30
|
+
'Identifier cannot contain null bytes',
|
|
31
|
+
identifier.replace(/\0/g, '\\0'),
|
|
32
|
+
'identifier',
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
return `"${identifier.replace(/"/g, '""')}"`;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function escapeLiteral(value: string): string {
|
|
39
|
+
if (value.includes('\0')) {
|
|
40
|
+
throw new SqlEscapeError(
|
|
41
|
+
'Literal value cannot contain null bytes',
|
|
42
|
+
value.replace(/\0/g, '\\0'),
|
|
43
|
+
'literal',
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
return value.replace(/'/g, "''");
|
|
47
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export {
|
|
2
|
+
SQL_CHAR_CODEC_ID,
|
|
3
|
+
SQL_FLOAT_CODEC_ID,
|
|
4
|
+
SQL_INT_CODEC_ID,
|
|
5
|
+
SQL_VARCHAR_CODEC_ID,
|
|
6
|
+
SQLITE_BIGINT_CODEC_ID,
|
|
7
|
+
SQLITE_BLOB_CODEC_ID,
|
|
8
|
+
SQLITE_DATETIME_CODEC_ID,
|
|
9
|
+
SQLITE_INTEGER_CODEC_ID,
|
|
10
|
+
SQLITE_JSON_CODEC_ID,
|
|
11
|
+
SQLITE_REAL_CODEC_ID,
|
|
12
|
+
SQLITE_TEXT_CODEC_ID,
|
|
13
|
+
} from '../core/codec-ids';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type CodecTypes, codecDefinitions, dataTypes, type JsonValue } from '../core/codecs';
|
package/src/exports/control.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parseSqliteDefault } from '../core/default-normalizer';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Re-exported so a SQLite `migration.ts` only needs the single
|
|
2
|
+
// `@prisma-next/target-sqlite/migration` import for its base class and
|
|
3
|
+
// the CLI entrypoint, mirroring how `placeholder` is surfaced here. The
|
|
4
|
+
// renderer emits the entrypoint call as
|
|
5
|
+
// `MigrationCLI.run(import.meta.url, M)`.
|
|
6
|
+
export { MigrationCLI } from '@prisma-next/cli/migration-cli';
|
|
7
|
+
// Re-exported so user-edited migration.ts files only need to depend on
|
|
8
|
+
// `@prisma-next/target-sqlite/migration` to fill in planner-emitted
|
|
9
|
+
// `placeholder("…")` slots, instead of pulling in `@prisma-next/errors`
|
|
10
|
+
// directly. The planner emits an import from this same module.
|
|
11
|
+
export { placeholder } from '@prisma-next/errors/migration';
|
|
12
|
+
export { addColumn, dropColumn } from '../core/migrations/operations/columns';
|
|
13
|
+
export {
|
|
14
|
+
type DataTransformOptions,
|
|
15
|
+
dataTransform,
|
|
16
|
+
} from '../core/migrations/operations/data-transform';
|
|
17
|
+
export { createIndex, dropIndex } from '../core/migrations/operations/indexes';
|
|
18
|
+
export { createTable, dropTable, recreateTable } from '../core/migrations/operations/tables';
|
|
19
|
+
// Target-owned base class for migrations. Aliased to `Migration` so
|
|
20
|
+
// user-edited migration.ts files (and the renderer's scaffold) read as
|
|
21
|
+
// `class M extends Migration { … }` without having to thread the
|
|
22
|
+
// target-details generic or redeclare `targetId`.
|
|
23
|
+
export { SqliteMigration as Migration } from '../core/migrations/sqlite-migration';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { normalizeSqliteNativeType } from '../core/native-type-normalizer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderOps } from '../core/migrations/render-ops';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { escapeLiteral, quoteIdentifier, SqlEscapeError } from '../core/sql-utils';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export {
|
|
2
|
+
buildLedgerInsertStatement,
|
|
3
|
+
buildWriteMarkerStatements,
|
|
4
|
+
CONTROL_TABLE_NAMES,
|
|
5
|
+
ensureLedgerTableStatement,
|
|
6
|
+
ensureMarkerTableStatement,
|
|
7
|
+
LEDGER_TABLE_NAME,
|
|
8
|
+
MARKER_TABLE_NAME,
|
|
9
|
+
readMarkerStatement,
|
|
10
|
+
type SqlStatement,
|
|
11
|
+
} from '../core/migrations/statement-builders';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-meta-DbuuziYA.mjs","names":["sqliteTargetDescriptorMeta: typeof sqliteTargetDescriptorMetaBase & {\n readonly __codecTypes?: CodecTypes;\n}"],"sources":["../src/core/descriptor-meta.ts"],"sourcesContent":["import type { CodecTypes } from '@prisma-next/adapter-sqlite/codec-types';\n\nconst sqliteTargetDescriptorMetaBase = {\n kind: 'target',\n familyId: 'sql',\n targetId: 'sqlite',\n id: 'sqlite',\n version: '0.0.1',\n capabilities: {},\n} as const;\n\nexport const sqliteTargetDescriptorMeta: typeof sqliteTargetDescriptorMetaBase & {\n readonly __codecTypes?: CodecTypes;\n} = sqliteTargetDescriptorMetaBase;\n"],"mappings":";AAEA,MAAM,iCAAiC;CACrC,MAAM;CACN,UAAU;CACV,UAAU;CACV,IAAI;CACJ,SAAS;CACT,cAAc,EAAE;CACjB;AAED,MAAaA,6BAET"}
|