@prisma/orm-sqlite 8.0.0-rc.12-dev.10 → 8.0.0-rc.12-dev.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-sqlite",
|
|
3
|
-
"version": "8.0.0-rc.12-dev.
|
|
3
|
+
"version": "8.0.0-rc.12-dev.11",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"skills"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@prisma/orm-family-sql": "8.0.0-rc.12-dev.
|
|
14
|
-
"@prisma/orm-framework": "8.0.0-rc.12-dev.
|
|
15
|
-
"@prisma/orm-target-sqlite": "8.0.0-rc.12-dev.
|
|
16
|
-
"@prisma/orm-toolchain": "8.0.0-rc.12-dev.
|
|
13
|
+
"@prisma/orm-family-sql": "8.0.0-rc.12-dev.11",
|
|
14
|
+
"@prisma/orm-framework": "8.0.0-rc.12-dev.11",
|
|
15
|
+
"@prisma/orm-target-sqlite": "8.0.0-rc.12-dev.11",
|
|
16
|
+
"@prisma/orm-toolchain": "8.0.0-rc.12-dev.11",
|
|
17
17
|
"pathe": "^2.0.3",
|
|
18
18
|
"tinyglobby": "^0.2.17"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@internal/sqlite": "8.0.0-rc.12-dev.
|
|
22
|
-
"@repo/tsconfig": "8.0.0-rc.12-dev.
|
|
23
|
-
"@repo/tsdown": "8.0.0-rc.12-dev.
|
|
21
|
+
"@internal/sqlite": "8.0.0-rc.12-dev.11",
|
|
22
|
+
"@repo/tsconfig": "8.0.0-rc.12-dev.11",
|
|
23
|
+
"@repo/tsdown": "8.0.0-rc.12-dev.11",
|
|
24
24
|
"tsdown": "0.22.14",
|
|
25
25
|
"typescript": "5.9.3"
|
|
26
26
|
},
|
package/skills/prisma-8/SKILL.md
CHANGED
|
@@ -185,6 +185,8 @@ For Mongo, swap every `@internal/postgres/*` import for `@internal/mongo/*`. The
|
|
|
185
185
|
|
|
186
186
|
Mongo scalar types, as PSL name / TS builder / application type: `String` / `field.string()` / `string`; `Int32` / `field.int32()` / `number`; `Double` / `field.double()` / `number`; `Bool` / `field.bool()` / `boolean`; `Date` / `field.date()` / `Date`; `ObjectId` / `field.objectId()` / `string`; `Int64` / `field.int64()` / `bigint`; `Decimal128` / `field.decimal128()` / decimal text as a `string`; `Binary` / `field.binary()` / `Uint8Array`; `Json` / `field.json()` / any JSON value. The collection validator checks each field's BSON type, except `Json`, which admits any value.
|
|
187
187
|
|
|
188
|
+
Mongo timestamps the ORM fills: in PSL, type the field `temporal.createdAt()` (set on create), `temporal.updatedAt()` (set on create and on every update with a non-empty payload), or `temporal.timestamp(onCreate: now, onUpdate: now)` with either option; in TS, use `field.temporal.createdAt()` and the rest inside the callback overload. They store a BSON date read back as `Date`, one value per ORM operation, and an explicit value in the write wins. The fields are optional on create. A preset field cannot be optional (`?`), a list, `@id`, or a field of a composite type.
|
|
189
|
+
|
|
188
190
|
## Workflow — Add an extension-typed scalar (pgvector)
|
|
189
191
|
|
|
190
192
|
The concept: an extension contributes a namespace (`pgvector.*`) plus two descriptor flavours — a *control* descriptor for the config and a *pack* descriptor for the TS builder. Register the control descriptor in `ormConfig`'s `extensions` (array form). If you're authoring with the TS builder, also register the pack descriptor in `defineContract.extensions` (record form). Then reference the namespaced constructor from the contract.
|