@prisma-next/extension-pgvector 0.16.0-dev.20 → 0.16.0-dev.22
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/README.md +4 -4
- package/dist/control.mjs +6 -6
- package/package.json +21 -21
- package/src/contract.d.ts +3 -3
- package/src/contract.json +3 -3
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ pnpm add @prisma-next/extension-pgvector
|
|
|
30
30
|
|
|
31
31
|
## Database Setup
|
|
32
32
|
|
|
33
|
-
The pgvector extension ships an on-disk baseline migration in its contract space; applying that migration installs pgvector with `CREATE EXTENSION IF NOT EXISTS vector`. When the extension is composed into an application via `
|
|
33
|
+
The pgvector extension ships an on-disk baseline migration in its contract space; applying that migration installs pgvector with `CREATE EXTENSION IF NOT EXISTS vector`. When the extension is composed into an application via `extensions`, `prisma-next db init` and `prisma-next db update` apply the baseline (and any subsequent migrations) automatically.
|
|
34
34
|
|
|
35
35
|
For manual database setup, the equivalent DDL is:
|
|
36
36
|
|
|
@@ -55,7 +55,7 @@ export default defineConfig({
|
|
|
55
55
|
family: sql,
|
|
56
56
|
target: postgres,
|
|
57
57
|
adapter: postgresAdapter,
|
|
58
|
-
|
|
58
|
+
extensions: [pgvector],
|
|
59
59
|
});
|
|
60
60
|
```
|
|
61
61
|
|
|
@@ -76,7 +76,7 @@ import postgres from '@prisma-next/target-postgres/pack';
|
|
|
76
76
|
export const contract = defineContract({
|
|
77
77
|
family: sqlFamily,
|
|
78
78
|
target: postgres,
|
|
79
|
-
|
|
79
|
+
extensions: { pgvector },
|
|
80
80
|
models: {
|
|
81
81
|
Post: model('Post', {
|
|
82
82
|
fields: {
|
|
@@ -106,7 +106,7 @@ import pgvector from '@prisma-next/extension-pgvector/runtime';
|
|
|
106
106
|
const stack = createSqlExecutionStack({
|
|
107
107
|
target: postgresTarget,
|
|
108
108
|
adapter: postgresAdapter,
|
|
109
|
-
|
|
109
|
+
extensions: [pgvector],
|
|
110
110
|
});
|
|
111
111
|
const context = createExecutionContext({ contract, stack });
|
|
112
112
|
const stackInstance = instantiateExecutionStack(stack);
|
package/dist/control.mjs
CHANGED
|
@@ -3,10 +3,10 @@ import { contractSpaceFromJson } from "@prisma-next/migration-tools/spaces";
|
|
|
3
3
|
//#region migrations/20260601T0000_install_vector_extension/migration.json
|
|
4
4
|
var migration_default = {
|
|
5
5
|
from: null,
|
|
6
|
-
to: "
|
|
6
|
+
to: "3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8",
|
|
7
7
|
providedInvariants: ["pgvector:install-vector-v1"],
|
|
8
8
|
createdAt: "2026-06-01T00:00:00.000Z",
|
|
9
|
-
migrationHash: "
|
|
9
|
+
migrationHash: "12b0b77e65c4899ba04e88ed040b1cb3390b4b18a889460f8a83cb6047ff1fa5"
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region migrations/20260601T0000_install_vector_extension/ops.json
|
|
@@ -41,7 +41,7 @@ var ops_default = [{
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region migrations/refs/head.json
|
|
43
43
|
var head_default = {
|
|
44
|
-
hash: "
|
|
44
|
+
hash: "3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8",
|
|
45
45
|
invariants: ["pgvector:install-vector-v1"]
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
@@ -50,7 +50,7 @@ var contract_default = {
|
|
|
50
50
|
schemaVersion: "1",
|
|
51
51
|
targetFamily: "sql",
|
|
52
52
|
target: "postgres",
|
|
53
|
-
profileHash: "
|
|
53
|
+
profileHash: "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2",
|
|
54
54
|
roots: {},
|
|
55
55
|
domain: { "namespaces": { "public": { "models": {} } } },
|
|
56
56
|
storage: {
|
|
@@ -59,7 +59,7 @@ var contract_default = {
|
|
|
59
59
|
"id": "public",
|
|
60
60
|
"kind": "postgres-schema"
|
|
61
61
|
} },
|
|
62
|
-
"storageHash": "
|
|
62
|
+
"storageHash": "3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8",
|
|
63
63
|
"types": { "vector": {
|
|
64
64
|
"codecId": "pg/vector@1",
|
|
65
65
|
"kind": "codec-instance",
|
|
@@ -83,7 +83,7 @@ var contract_default = {
|
|
|
83
83
|
"scalarList": true
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
-
|
|
86
|
+
extensions: {},
|
|
87
87
|
meta: {},
|
|
88
88
|
_generated: {
|
|
89
89
|
"warning": "⚠️ GENERATED FILE - DO NOT EDIT",
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/extension-pgvector",
|
|
3
|
-
"version": "0.16.0-dev.
|
|
3
|
+
"version": "0.16.0-dev.22",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@prisma-next/contract": "0.16.0-dev.
|
|
9
|
-
"@prisma-next/contract-authoring": "0.16.0-dev.
|
|
10
|
-
"@prisma-next/family-sql": "0.16.0-dev.
|
|
11
|
-
"@prisma-next/framework-components": "0.16.0-dev.
|
|
12
|
-
"@prisma-next/migration-tools": "0.16.0-dev.
|
|
13
|
-
"@prisma-next/sql-contract": "0.16.0-dev.
|
|
14
|
-
"@prisma-next/sql-operations": "0.16.0-dev.
|
|
15
|
-
"@prisma-next/sql-relational-core": "0.16.0-dev.
|
|
16
|
-
"@prisma-next/sql-runtime": "0.16.0-dev.
|
|
17
|
-
"@prisma-next/sql-schema-ir": "0.16.0-dev.
|
|
8
|
+
"@prisma-next/contract": "0.16.0-dev.22",
|
|
9
|
+
"@prisma-next/contract-authoring": "0.16.0-dev.22",
|
|
10
|
+
"@prisma-next/family-sql": "0.16.0-dev.22",
|
|
11
|
+
"@prisma-next/framework-components": "0.16.0-dev.22",
|
|
12
|
+
"@prisma-next/migration-tools": "0.16.0-dev.22",
|
|
13
|
+
"@prisma-next/sql-contract": "0.16.0-dev.22",
|
|
14
|
+
"@prisma-next/sql-operations": "0.16.0-dev.22",
|
|
15
|
+
"@prisma-next/sql-relational-core": "0.16.0-dev.22",
|
|
16
|
+
"@prisma-next/sql-runtime": "0.16.0-dev.22",
|
|
17
|
+
"@prisma-next/sql-schema-ir": "0.16.0-dev.22",
|
|
18
18
|
"@standard-schema/spec": "^1.1.0",
|
|
19
19
|
"arktype": "^2.2.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@prisma-next/adapter-postgres": "0.16.0-dev.
|
|
23
|
-
"@prisma-next/cli": "0.16.0-dev.
|
|
24
|
-
"@prisma-next/operations": "0.16.0-dev.
|
|
25
|
-
"@prisma-next/postgres": "0.16.0-dev.
|
|
26
|
-
"@prisma-next/sql-contract-ts": "0.16.0-dev.
|
|
27
|
-
"@prisma-next/target-postgres": "0.16.0-dev.
|
|
28
|
-
"@prisma-next/test-utils": "0.16.0-dev.
|
|
29
|
-
"@prisma-next/tsconfig": "0.16.0-dev.
|
|
30
|
-
"@prisma-next/tsdown": "0.16.0-dev.
|
|
22
|
+
"@prisma-next/adapter-postgres": "0.16.0-dev.22",
|
|
23
|
+
"@prisma-next/cli": "0.16.0-dev.22",
|
|
24
|
+
"@prisma-next/operations": "0.16.0-dev.22",
|
|
25
|
+
"@prisma-next/postgres": "0.16.0-dev.22",
|
|
26
|
+
"@prisma-next/sql-contract-ts": "0.16.0-dev.22",
|
|
27
|
+
"@prisma-next/target-postgres": "0.16.0-dev.22",
|
|
28
|
+
"@prisma-next/test-utils": "0.16.0-dev.22",
|
|
29
|
+
"@prisma-next/tsconfig": "0.16.0-dev.22",
|
|
30
|
+
"@prisma-next/tsdown": "0.16.0-dev.22",
|
|
31
31
|
"tsdown": "0.22.8",
|
|
32
32
|
"typescript": "5.9.3",
|
|
33
33
|
"vitest": "4.1.10"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@prisma-next/adapter-postgres": "0.16.0-dev.
|
|
36
|
+
"@prisma-next/adapter-postgres": "0.16.0-dev.22",
|
|
37
37
|
"typescript": ">=5.9"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
package/src/contract.d.ts
CHANGED
|
@@ -30,10 +30,10 @@ import type {
|
|
|
30
30
|
} from '@prisma-next/contract/types';
|
|
31
31
|
|
|
32
32
|
export type StorageHash =
|
|
33
|
-
StorageHashBase<'
|
|
33
|
+
StorageHashBase<'3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8'>;
|
|
34
34
|
export type ExecutionHash = ExecutionHashBase<string>;
|
|
35
35
|
export type ProfileHash =
|
|
36
|
-
ProfileHashBase<'
|
|
36
|
+
ProfileHashBase<'3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2'>;
|
|
37
37
|
|
|
38
38
|
export type CodecTypes = PgTypes;
|
|
39
39
|
export type LaneCodecTypes = CodecTypes;
|
|
@@ -103,7 +103,7 @@ type ContractBase = Omit<
|
|
|
103
103
|
readonly scalarList: true;
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
-
readonly
|
|
106
|
+
readonly extensions: {};
|
|
107
107
|
readonly meta: {};
|
|
108
108
|
|
|
109
109
|
readonly profileHash: ProfileHash;
|
package/src/contract.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": "1",
|
|
3
3
|
"targetFamily": "sql",
|
|
4
4
|
"target": "postgres",
|
|
5
|
-
"profileHash": "
|
|
5
|
+
"profileHash": "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2",
|
|
6
6
|
"roots": {},
|
|
7
7
|
"domain": {
|
|
8
8
|
"namespaces": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"kind": "postgres-schema"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"storageHash": "
|
|
24
|
+
"storageHash": "3d2c56a2944685bd21b05bc8a8d73164397df51c014201902932fbe7e80ff1b8",
|
|
25
25
|
"types": {
|
|
26
26
|
"vector": {
|
|
27
27
|
"codecId": "pg/vector@1",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"scalarList": true
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"
|
|
50
|
+
"extensions": {},
|
|
51
51
|
"meta": {},
|
|
52
52
|
"_generated": {
|
|
53
53
|
"warning": "⚠️ GENERATED FILE - DO NOT EDIT",
|