@prisma-next/target-sqlite 0.15.0-dev.12 → 0.15.0-dev.14
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/control.mjs +1 -1
- package/dist/{descriptor-meta-D1fap-5t.mjs → descriptor-meta-BPrgV878.mjs} +12 -6
- package/dist/descriptor-meta-BPrgV878.mjs.map +1 -0
- package/dist/pack.d.mts +40 -0
- package/dist/pack.d.mts.map +1 -1
- package/dist/pack.mjs +1 -1
- package/package.json +18 -18
- package/src/core/authoring.ts +11 -5
- package/dist/descriptor-meta-D1fap-5t.mjs.map +0 -1
package/dist/control.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as sqliteTargetDescriptorMeta } from "./descriptor-meta-
|
|
1
|
+
import { t as sqliteTargetDescriptorMeta } from "./descriptor-meta-BPrgV878.mjs";
|
|
2
2
|
import { a as verifySqliteDatabaseSchema, i as sqliteContractToSchema, n as createSqliteMigrationPlanner, r as diffSqliteSchema } from "./planner-CxbLEZHF.mjs";
|
|
3
3
|
import { r as MARKER_TABLE_NAME } from "./control-tables-D_o8dKRB.mjs";
|
|
4
4
|
import { i as sqliteCreateNamespace, n as SqliteContractSerializer, r as SqliteUnboundDatabase } from "./sqlite-contract-view-B8qeCczc.mjs";
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { t as sqliteTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-BkXK3OjD.mjs";
|
|
2
2
|
import { UNBOUND_NAMESPACE_ID } from "@prisma-next/framework-components/ir";
|
|
3
|
-
import { temporalAuthoringPresets } from "@prisma-next/family-sql/control";
|
|
3
|
+
import { temporalAuthoringPresets, temporalCodecPreset } from "@prisma-next/family-sql/control";
|
|
4
4
|
//#region src/core/authoring.ts
|
|
5
|
-
const sqliteAuthoringFieldPresets = { temporal:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const sqliteAuthoringFieldPresets = { temporal: {
|
|
6
|
+
.../* @__PURE__ */ temporalAuthoringPresets({
|
|
7
|
+
codecId: "sqlite/datetime@1",
|
|
8
|
+
nativeType: "text"
|
|
9
|
+
}),
|
|
10
|
+
datetime: /* @__PURE__ */ temporalCodecPreset({
|
|
11
|
+
codecId: "sqlite/datetime@1",
|
|
12
|
+
nativeType: "text"
|
|
13
|
+
})
|
|
14
|
+
} };
|
|
9
15
|
const sqliteTargetDescriptorMeta = {
|
|
10
16
|
...sqliteTargetDescriptorMetaRuntime,
|
|
11
17
|
defaultNamespaceId: UNBOUND_NAMESPACE_ID,
|
|
@@ -14,4 +20,4 @@ const sqliteTargetDescriptorMeta = {
|
|
|
14
20
|
//#endregion
|
|
15
21
|
export { sqliteTargetDescriptorMeta as t };
|
|
16
22
|
|
|
17
|
-
//# sourceMappingURL=descriptor-meta-
|
|
23
|
+
//# sourceMappingURL=descriptor-meta-BPrgV878.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptor-meta-BPrgV878.mjs","names":[],"sources":["../src/core/authoring.ts","../src/core/descriptor-meta.ts"],"sourcesContent":["import { temporalAuthoringPresets, temporalCodecPreset } from '@prisma-next/family-sql/control';\nimport type { AuthoringFieldNamespace } from '@prisma-next/framework-components/authoring';\n\nexport const sqliteAuthoringFieldPresets = {\n temporal: {\n .../* @__PURE__ */ temporalAuthoringPresets({\n codecId: 'sqlite/datetime@1',\n nativeType: 'text',\n }),\n datetime: /* @__PURE__ */ temporalCodecPreset({\n codecId: 'sqlite/datetime@1',\n nativeType: 'text',\n }),\n },\n} as const satisfies AuthoringFieldNamespace;\n","import { UNBOUND_NAMESPACE_ID } from '@prisma-next/framework-components/ir';\nimport type { CodecTypes } from '../exports/codec-types';\nimport { sqliteAuthoringFieldPresets } from './authoring';\nimport { sqliteTargetDescriptorMetaRuntime } from './descriptor-meta-runtime';\n\nconst sqliteTargetDescriptorMetaBase = {\n ...sqliteTargetDescriptorMetaRuntime,\n defaultNamespaceId: UNBOUND_NAMESPACE_ID,\n authoring: {\n field: sqliteAuthoringFieldPresets,\n },\n} as const;\n\nexport const sqliteTargetDescriptorMeta: typeof sqliteTargetDescriptorMetaBase & {\n readonly __codecTypes?: CodecTypes;\n} = sqliteTargetDescriptorMetaBase;\n"],"mappings":";;;;AAGA,MAAa,8BAA8B,EACzC,UAAU;CACR,GAAmB,yCAAyB;EAC1C,SAAS;EACT,YAAY;CACd,CAAC;CACD,UAA0B,oCAAoB;EAC5C,SAAS;EACT,YAAY;CACd,CAAC;AACH,EACF;ACDA,MAAa,6BAET;CATF,GAAG;CACH,oBAAoB;CACpB,WAAW,EACT,OAAO,4BACT;AAKE"}
|
package/dist/pack.d.mts
CHANGED
|
@@ -6,6 +6,46 @@ declare const sqliteTargetDescriptorMetaBase: {
|
|
|
6
6
|
readonly authoring: {
|
|
7
7
|
readonly field: {
|
|
8
8
|
readonly temporal: {
|
|
9
|
+
readonly datetime: {
|
|
10
|
+
readonly kind: "fieldPreset";
|
|
11
|
+
readonly args: readonly [{
|
|
12
|
+
readonly name: "onCreate";
|
|
13
|
+
readonly kind: "option";
|
|
14
|
+
readonly values: readonly ["now"];
|
|
15
|
+
readonly optional: true;
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "onUpdate";
|
|
18
|
+
readonly kind: "option";
|
|
19
|
+
readonly values: readonly ["now"];
|
|
20
|
+
readonly optional: true;
|
|
21
|
+
}];
|
|
22
|
+
readonly output: {
|
|
23
|
+
readonly codecId: "sqlite/datetime@1";
|
|
24
|
+
readonly nativeType: "text";
|
|
25
|
+
readonly executionDefaults: {
|
|
26
|
+
readonly onCreate: {
|
|
27
|
+
readonly kind: "select";
|
|
28
|
+
readonly index: 0;
|
|
29
|
+
readonly cases: {
|
|
30
|
+
readonly now: {
|
|
31
|
+
readonly kind: "generator";
|
|
32
|
+
readonly id: "timestampNow";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly onUpdate: {
|
|
37
|
+
readonly kind: "select";
|
|
38
|
+
readonly index: 1;
|
|
39
|
+
readonly cases: {
|
|
40
|
+
readonly now: {
|
|
41
|
+
readonly kind: "generator";
|
|
42
|
+
readonly id: "timestampNow";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
9
49
|
readonly createdAt: {
|
|
10
50
|
readonly kind: "fieldPreset";
|
|
11
51
|
readonly output: {
|
package/dist/pack.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pack.d.mts","names":[],"sources":["../src/core/descriptor-meta.ts"],"mappings":";;;cAKM,8BAAA;EAAA
|
|
1
|
+
{"version":3,"file":"pack.d.mts","names":[],"sources":["../src/core/descriptor-meta.ts"],"mappings":";;;cAKM,8BAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAMI,UAAA;AAAA;AAAA,cAEG,0BAAA,SAAmC,8BAAA;EAAA,SACrC,YAAA,GAAe,UAAU;AAAA"}
|
package/dist/pack.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as sqliteTargetDescriptorMeta } from "./descriptor-meta-
|
|
1
|
+
import { t as sqliteTargetDescriptorMeta } from "./descriptor-meta-BPrgV878.mjs";
|
|
2
2
|
export { sqliteTargetDescriptorMeta as default };
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/target-sqlite",
|
|
3
|
-
"version": "0.15.0-dev.
|
|
3
|
+
"version": "0.15.0-dev.14",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@prisma-next/cli": "0.15.0-dev.
|
|
9
|
-
"@prisma-next/contract": "0.15.0-dev.
|
|
10
|
-
"@prisma-next/errors": "0.15.0-dev.
|
|
11
|
-
"@prisma-next/family-sql": "0.15.0-dev.
|
|
12
|
-
"@prisma-next/framework-components": "0.15.0-dev.
|
|
13
|
-
"@prisma-next/migration-tools": "0.15.0-dev.
|
|
14
|
-
"@prisma-next/sql-contract": "0.15.0-dev.
|
|
15
|
-
"@prisma-next/sql-errors": "0.15.0-dev.
|
|
16
|
-
"@prisma-next/sql-relational-core": "0.15.0-dev.
|
|
17
|
-
"@prisma-next/sql-runtime": "0.15.0-dev.
|
|
18
|
-
"@prisma-next/sql-schema-ir": "0.15.0-dev.
|
|
19
|
-
"@prisma-next/ts-render": "0.15.0-dev.
|
|
20
|
-
"@prisma-next/utils": "0.15.0-dev.
|
|
8
|
+
"@prisma-next/cli": "0.15.0-dev.14",
|
|
9
|
+
"@prisma-next/contract": "0.15.0-dev.14",
|
|
10
|
+
"@prisma-next/errors": "0.15.0-dev.14",
|
|
11
|
+
"@prisma-next/family-sql": "0.15.0-dev.14",
|
|
12
|
+
"@prisma-next/framework-components": "0.15.0-dev.14",
|
|
13
|
+
"@prisma-next/migration-tools": "0.15.0-dev.14",
|
|
14
|
+
"@prisma-next/sql-contract": "0.15.0-dev.14",
|
|
15
|
+
"@prisma-next/sql-errors": "0.15.0-dev.14",
|
|
16
|
+
"@prisma-next/sql-relational-core": "0.15.0-dev.14",
|
|
17
|
+
"@prisma-next/sql-runtime": "0.15.0-dev.14",
|
|
18
|
+
"@prisma-next/sql-schema-ir": "0.15.0-dev.14",
|
|
19
|
+
"@prisma-next/ts-render": "0.15.0-dev.14",
|
|
20
|
+
"@prisma-next/utils": "0.15.0-dev.14",
|
|
21
21
|
"@standard-schema/spec": "1.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@prisma-next/driver-sqlite": "0.15.0-dev.
|
|
25
|
-
"@prisma-next/test-utils": "0.15.0-dev.
|
|
26
|
-
"@prisma-next/tsconfig": "0.15.0-dev.
|
|
27
|
-
"@prisma-next/tsdown": "0.15.0-dev.
|
|
24
|
+
"@prisma-next/driver-sqlite": "0.15.0-dev.14",
|
|
25
|
+
"@prisma-next/test-utils": "0.15.0-dev.14",
|
|
26
|
+
"@prisma-next/tsconfig": "0.15.0-dev.14",
|
|
27
|
+
"@prisma-next/tsdown": "0.15.0-dev.14",
|
|
28
28
|
"tsdown": "0.22.3",
|
|
29
29
|
"typescript": "5.9.3",
|
|
30
30
|
"vitest": "4.1.10"
|
package/src/core/authoring.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { temporalAuthoringPresets } from '@prisma-next/family-sql/control';
|
|
1
|
+
import { temporalAuthoringPresets, temporalCodecPreset } from '@prisma-next/family-sql/control';
|
|
2
2
|
import type { AuthoringFieldNamespace } from '@prisma-next/framework-components/authoring';
|
|
3
3
|
|
|
4
4
|
export const sqliteAuthoringFieldPresets = {
|
|
5
|
-
temporal:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
temporal: {
|
|
6
|
+
.../* @__PURE__ */ temporalAuthoringPresets({
|
|
7
|
+
codecId: 'sqlite/datetime@1',
|
|
8
|
+
nativeType: 'text',
|
|
9
|
+
}),
|
|
10
|
+
datetime: /* @__PURE__ */ temporalCodecPreset({
|
|
11
|
+
codecId: 'sqlite/datetime@1',
|
|
12
|
+
nativeType: 'text',
|
|
13
|
+
}),
|
|
14
|
+
},
|
|
9
15
|
} as const satisfies AuthoringFieldNamespace;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-meta-D1fap-5t.mjs","names":[],"sources":["../src/core/authoring.ts","../src/core/descriptor-meta.ts"],"sourcesContent":["import { temporalAuthoringPresets } from '@prisma-next/family-sql/control';\nimport type { AuthoringFieldNamespace } from '@prisma-next/framework-components/authoring';\n\nexport const sqliteAuthoringFieldPresets = {\n temporal: /* @__PURE__ */ temporalAuthoringPresets({\n codecId: 'sqlite/datetime@1',\n nativeType: 'text',\n }),\n} as const satisfies AuthoringFieldNamespace;\n","import { UNBOUND_NAMESPACE_ID } from '@prisma-next/framework-components/ir';\nimport type { CodecTypes } from '../exports/codec-types';\nimport { sqliteAuthoringFieldPresets } from './authoring';\nimport { sqliteTargetDescriptorMetaRuntime } from './descriptor-meta-runtime';\n\nconst sqliteTargetDescriptorMetaBase = {\n ...sqliteTargetDescriptorMetaRuntime,\n defaultNamespaceId: UNBOUND_NAMESPACE_ID,\n authoring: {\n field: sqliteAuthoringFieldPresets,\n },\n} as const;\n\nexport const sqliteTargetDescriptorMeta: typeof sqliteTargetDescriptorMetaBase & {\n readonly __codecTypes?: CodecTypes;\n} = sqliteTargetDescriptorMetaBase;\n"],"mappings":";;;;AAGA,MAAa,8BAA8B,EACzC,UAA0B,yCAAyB;CACjD,SAAS;CACT,YAAY;AACd,CAAC,EACH;ACKA,MAAa,6BAET;CATF,GAAG;CACH,oBAAoB;CACpB,WAAW,EACT,OAAO,4BACT;AAKE"}
|