@prisma/orm-extension-paradedb 8.0.0-rc.2-dev.3 → 8.0.0-rc.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/README.md +1 -7
- package/dist/control.d.mts +5 -2
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +12 -3
- package/dist/control.mjs.map +1 -1
- package/dist/{descriptor-meta-CqqjwQV3-rK5CM2pg.mjs → descriptor-meta-D-rbkTte-DwbFUTOH.mjs} +2 -13
- package/dist/descriptor-meta-D-rbkTte-DwbFUTOH.mjs.map +1 -0
- package/dist/{operation-types-CnWfzlZq-ByY1S789.d.mts → operation-types--0qfPZCP-4Y6nsbET.d.mts} +8 -4
- package/dist/{operation-types-CnWfzlZq-ByY1S789.d.mts.map → operation-types--0qfPZCP-4Y6nsbET.d.mts.map} +1 -1
- package/dist/operation-types-Cmq0ufU2.d.mts +1 -0
- package/dist/operation-types.d.mts +3 -2
- package/dist/pack.d.mts +5 -1
- package/dist/pack.d.mts.map +1 -1
- package/dist/pack.mjs +1 -1
- package/dist/pack.mjs.map +1 -1
- package/dist/runtime.mjs +1 -1
- package/dist/runtime.mjs.map +1 -1
- package/package.json +10 -10
- package/dist/descriptor-meta-CqqjwQV3-rK5CM2pg.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @prisma/orm-extension-paradedb
|
|
2
2
|
|
|
3
|
-
BM25 full-text search indexes for Prisma
|
|
3
|
+
BM25 full-text search indexes for Prisma 8 on PostgreSQL, powered by [ParadeDB](https://paradedb.com).
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
pnpm add @prisma/orm-extension-paradedb
|
|
@@ -21,9 +21,3 @@ pnpm add @prisma/orm-extension-paradedb
|
|
|
21
21
|
Registers a `bm25` entry with the SQL family's index-type registry, so contracts author full-text indexes through the ordinary `constraints.index(...)` surface and the Postgres adapter emits `CREATE INDEX ... USING bm25 WITH (...)`. It also declares the `paradedb/bm25` capability for contract-level feature detection.
|
|
22
22
|
|
|
23
23
|
The current surface covers the `key_field` storage parameter. Per-field tokenizer configuration waits on expression-index support.
|
|
24
|
-
|
|
25
|
-
## Dependencies
|
|
26
|
-
|
|
27
|
-
`@prisma/orm-framework`, `@prisma/orm-family-sql`, and `@prisma/orm-toolchain` at exact lockstep versions, plus `arktype`.
|
|
28
|
-
|
|
29
|
-
`@prisma/orm-target-postgres` is an exact-pinned **peer** dependency, as it is for every Postgres extension pack: the application supplies it, directly or through a facade. Unlike its siblings this pack does not reach the target at run time — the index type is registered against the SQL family, and the Postgres adapter renders it — but it is still a pack that only works on Postgres, and stating that uniformly is what makes the install requirement legible.
|
package/dist/control.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./operation-types-
|
|
1
|
+
import { i as QueryOperationTypesForCodecs } from "./operation-types--0qfPZCP-4Y6nsbET.mjs";
|
|
2
2
|
import { SqlControlExtensionDescriptor } from "@prisma/orm-family-sql/family/control";
|
|
3
3
|
//#region ../../../3-extensions/paradedb/dist/control.d.mts
|
|
4
4
|
//#region src/core/descriptor-meta.d.ts
|
|
5
|
-
declare const
|
|
5
|
+
declare const paradedbPackMetaBase: {
|
|
6
6
|
readonly kind: "extension";
|
|
7
7
|
readonly id: "paradedb";
|
|
8
8
|
readonly familyId: "sql";
|
|
@@ -28,6 +28,9 @@ declare const paradedbPackMeta: {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
+
declare const paradedbPackMeta: typeof paradedbPackMetaBase & {
|
|
32
|
+
readonly __queryOperationTypes?: QueryOperationTypesForCodecs;
|
|
33
|
+
};
|
|
31
34
|
//#endregion
|
|
32
35
|
//#region src/exports/control.d.ts
|
|
33
36
|
declare const paradedbExtensionDescriptor: SqlControlExtensionDescriptor<'postgres'>;
|
package/dist/control.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.d.mts","names":[],"sources":["../../../../3-extensions/paradedb/dist/control.d.mts"],"mappings":";;;;cAGc;WACH;WACA;WACA;WACA;WACA;WACA;aACE;eACE;;;WAGJ,yDAAyD,iBAAiB,uBAAuB;aAC/F;MACP;;;WAGK;aACE;eACE;iBACE;iBACA;iBACA
|
|
1
|
+
{"version":3,"file":"control.d.mts","names":[],"sources":["../../../../3-extensions/paradedb/dist/control.d.mts"],"mappings":";;;;cAGc;WACH;WACA;WACA;WACA;WACA;WACA;aACE;eACE;;;WAGJ,yDAAyD,iBAAiB,uBAAuB;aAC/F;MACP;;;WAGK;aACE;eACE;iBACE;iBACA;iBACA;;;;;cAKH,yBAAyB;WAC5B,wBAAwB;;;;cAIrB,6BAA6B"}
|
package/dist/control.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as paradedbPackMeta, r as paradedbQueryOperations, t as PARADEDB_SPACE_ID } from "./descriptor-meta-
|
|
1
|
+
import { n as paradedbPackMeta, r as paradedbQueryOperations, t as PARADEDB_SPACE_ID } from "./descriptor-meta-D-rbkTte-DwbFUTOH.mjs";
|
|
2
2
|
import { contractSpaceFromJson } from "@prisma/orm-toolchain/migration-tools/spaces";
|
|
3
3
|
//#region ../../../3-extensions/paradedb/dist/control.mjs
|
|
4
4
|
const paradedbContractSpace = contractSpaceFromJson({
|
|
@@ -20,6 +20,8 @@ const paradedbContractSpace = contractSpaceFromJson({
|
|
|
20
20
|
capabilities: {
|
|
21
21
|
"postgres": {
|
|
22
22
|
"distinctOn": true,
|
|
23
|
+
"forKeyShare": true,
|
|
24
|
+
"forNoKeyUpdate": true,
|
|
23
25
|
"jsonAgg": true,
|
|
24
26
|
"lateral": true,
|
|
25
27
|
"limit": true,
|
|
@@ -30,7 +32,14 @@ const paradedbContractSpace = contractSpaceFromJson({
|
|
|
30
32
|
"checkConstraint": true,
|
|
31
33
|
"defaultInInsert": true,
|
|
32
34
|
"enums": true,
|
|
35
|
+
"forShare": true,
|
|
36
|
+
"forUpdate": true,
|
|
37
|
+
"insertOnConflictSkip": true,
|
|
38
|
+
"insertOnConflictWithoutTarget": true,
|
|
33
39
|
"lateral": true,
|
|
40
|
+
"lockNowait": true,
|
|
41
|
+
"lockOf": true,
|
|
42
|
+
"lockSkipLocked": true,
|
|
34
43
|
"returning": true,
|
|
35
44
|
"scalarList": true
|
|
36
45
|
}
|
|
@@ -39,8 +48,8 @@ const paradedbContractSpace = contractSpaceFromJson({
|
|
|
39
48
|
meta: {},
|
|
40
49
|
_generated: {
|
|
41
50
|
"warning": "⚠️ GENERATED FILE - DO NOT EDIT",
|
|
42
|
-
"message": "This file is automatically generated by \"prisma
|
|
43
|
-
"regenerate": "To regenerate, run: prisma
|
|
51
|
+
"message": "This file is automatically generated by \"prisma contract emit\".",
|
|
52
|
+
"regenerate": "To regenerate, run: prisma contract emit"
|
|
44
53
|
}
|
|
45
54
|
},
|
|
46
55
|
migrations: [{
|
package/dist/control.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/control.mjs"],"sourcesContent":["import { n as paradedbQueryOperations, r as PARADEDB_SPACE_ID, t as paradedbPackMeta } from \"./descriptor-meta-
|
|
1
|
+
{"version":3,"file":"control.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/control.mjs"],"sourcesContent":["import { n as paradedbQueryOperations, r as PARADEDB_SPACE_ID, t as paradedbPackMeta } from \"./descriptor-meta-D-rbkTte.mjs\";\nimport { contractSpaceFromJson } from \"@internal/migration-tools/spaces\";\n//#endregion\n//#region src/exports/control.ts\nconst paradedbContractSpace = contractSpaceFromJson({\n\tcontractJson: {\n\t\tschemaVersion: \"1\",\n\t\ttargetFamily: \"sql\",\n\t\ttarget: \"postgres\",\n\t\tprofileHash: \"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2\",\n\t\troots: {},\n\t\tdomain: { \"namespaces\": { \"public\": { \"models\": {} } } },\n\t\tstorage: {\n\t\t\t\"namespaces\": { \"public\": {\n\t\t\t\t\"entries\": { \"table\": {} },\n\t\t\t\t\"id\": \"public\",\n\t\t\t\t\"kind\": \"postgres-schema\"\n\t\t\t} },\n\t\t\t\"storageHash\": \"0c0734babd6eeb868fee1f281ca96963022475611560e9f170f465daa35f8599\"\n\t\t},\n\t\tcapabilities: {\n\t\t\t\"postgres\": {\n\t\t\t\t\"distinctOn\": true,\n\t\t\t\t\"forKeyShare\": true,\n\t\t\t\t\"forNoKeyUpdate\": true,\n\t\t\t\t\"jsonAgg\": true,\n\t\t\t\t\"lateral\": true,\n\t\t\t\t\"limit\": true,\n\t\t\t\t\"orderBy\": true,\n\t\t\t\t\"returning\": true\n\t\t\t},\n\t\t\t\"sql\": {\n\t\t\t\t\"checkConstraint\": true,\n\t\t\t\t\"defaultInInsert\": true,\n\t\t\t\t\"enums\": true,\n\t\t\t\t\"forShare\": true,\n\t\t\t\t\"forUpdate\": true,\n\t\t\t\t\"insertOnConflictSkip\": true,\n\t\t\t\t\"insertOnConflictWithoutTarget\": true,\n\t\t\t\t\"lateral\": true,\n\t\t\t\t\"lockNowait\": true,\n\t\t\t\t\"lockOf\": true,\n\t\t\t\t\"lockSkipLocked\": true,\n\t\t\t\t\"returning\": true,\n\t\t\t\t\"scalarList\": true\n\t\t\t}\n\t\t},\n\t\textensions: {},\n\t\tmeta: {},\n\t\t_generated: {\n\t\t\t\"warning\": \"⚠️ GENERATED FILE - DO NOT EDIT\",\n\t\t\t\"message\": \"This file is automatically generated by \\\"prisma contract emit\\\".\",\n\t\t\t\"regenerate\": \"To regenerate, run: prisma contract emit\"\n\t\t}\n\t},\n\tmigrations: [{\n\t\tdirName: \"20260601T0000_install_pg_search_extension\",\n\t\tmetadata: {\n\t\t\tfrom: null,\n\t\t\tto: \"0c0734babd6eeb868fee1f281ca96963022475611560e9f170f465daa35f8599\",\n\t\t\tprovidedInvariants: [\"paradedb:install-pg-search-v1\"],\n\t\t\tcreatedAt: \"2026-06-01T00:00:00.000Z\",\n\t\t\tmigrationHash: \"cfcef8fbbb8c594ab02c7a7f05a40ab7bbda1da416f371d5a1be15cda16b99e7\"\n\t\t},\n\t\tops: [{\n\t\t\t\"id\": \"paradedb.install-pg-search-extension\",\n\t\t\t\"label\": \"Enable extension \\\"pg_search\\\"\",\n\t\t\t\"operationClass\": \"additive\",\n\t\t\t\"invariantId\": \"paradedb:install-pg-search-v1\",\n\t\t\t\"target\": {\n\t\t\t\t\"id\": \"postgres\",\n\t\t\t\t\"details\": {\n\t\t\t\t\t\"schema\": \"public\",\n\t\t\t\t\t\"objectType\": \"dependency\",\n\t\t\t\t\t\"name\": \"pg_search\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"precheck\": [{\n\t\t\t\t\"description\": \"verify extension \\\"pg_search\\\" is not already enabled\",\n\t\t\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\t\t\"params\": [\"pg_search\"]\n\t\t\t}],\n\t\t\t\"execute\": [{\n\t\t\t\t\"description\": \"create extension \\\"pg_search\\\"\",\n\t\t\t\t\"sql\": \"CREATE EXTENSION IF NOT EXISTS pg_search\"\n\t\t\t}],\n\t\t\t\"postcheck\": [{\n\t\t\t\t\"description\": \"confirm extension \\\"pg_search\\\" is enabled\",\n\t\t\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\t\t\"params\": [\"pg_search\"]\n\t\t\t}]\n\t\t}]\n\t}],\n\theadRef: {\n\t\thash: \"0c0734babd6eeb868fee1f281ca96963022475611560e9f170f465daa35f8599\",\n\t\tinvariants: [\"paradedb:install-pg-search-v1\"]\n\t}\n});\nconst paradedbExtensionDescriptor = {\n\t...paradedbPackMeta,\n\tid: PARADEDB_SPACE_ID,\n\tcontractSpace: paradedbContractSpace,\n\tqueryOperations: () => paradedbQueryOperations(),\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\n//#endregion\nexport { paradedbExtensionDescriptor as default, paradedbExtensionDescriptor, paradedbPackMeta };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;AAIA,MAAM,wBAAwB,sBAAsB;CACnD,cAAc;EACb,eAAe;EACf,cAAc;EACd,QAAQ;EACR,aAAa;EACb,OAAO,CAAC;EACR,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,EAAE,EAAE;EACvD,SAAS;GACR,cAAc,EAAE,UAAU;IACzB,WAAW,EAAE,SAAS,CAAC,EAAE;IACzB,MAAM;IACN,QAAQ;GACT,EAAE;GACF,eAAe;EAChB;EACA,cAAc;GACb,YAAY;IACX,cAAc;IACd,eAAe;IACf,kBAAkB;IAClB,WAAW;IACX,WAAW;IACX,SAAS;IACT,WAAW;IACX,aAAa;GACd;GACA,OAAO;IACN,mBAAmB;IACnB,mBAAmB;IACnB,SAAS;IACT,YAAY;IACZ,aAAa;IACb,wBAAwB;IACxB,iCAAiC;IACjC,WAAW;IACX,cAAc;IACd,UAAU;IACV,kBAAkB;IAClB,aAAa;IACb,cAAc;GACf;EACD;EACA,YAAY,CAAC;EACb,MAAM,CAAC;EACP,YAAY;GACX,WAAW;GACX,WAAW;GACX,cAAc;EACf;CACD;CACA,YAAY,CAAC;EACZ,SAAS;EACT,UAAU;GACT,MAAM;GACN,IAAI;GACJ,oBAAoB,CAAC,+BAA+B;GACpD,WAAW;GACX,eAAe;EAChB;EACA,KAAK,CAAC;GACL,MAAM;GACN,SAAS;GACT,kBAAkB;GAClB,eAAe;GACf,UAAU;IACT,MAAM;IACN,WAAW;KACV,UAAU;KACV,cAAc;KACd,QAAQ;IACT;GACD;GACA,YAAY,CAAC;IACZ,eAAe;IACf,OAAO;IACP,UAAU,CAAC,WAAW;GACvB,CAAC;GACD,WAAW,CAAC;IACX,eAAe;IACf,OAAO;GACR,CAAC;GACD,aAAa,CAAC;IACb,eAAe;IACf,OAAO;IACP,UAAU,CAAC,WAAW;GACvB,CAAC;EACF,CAAC;CACF,CAAC;CACD,SAAS;EACR,MAAM;EACN,YAAY,CAAC,+BAA+B;CAC7C;AACD,CAAC;AACD,MAAM,8BAA8B;CACnC,GAAG;CACH,IAAI;CACJ,eAAe;CACf,uBAAuB,wBAAwB;CAC/C,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD"}
|
package/dist/{descriptor-meta-CqqjwQV3-rK5CM2pg.mjs → descriptor-meta-D-rbkTte-DwbFUTOH.mjs}
RENAMED
|
@@ -3,7 +3,7 @@ import { LiteralExpr, OperationExpr } from "@prisma/orm-family-sql/relational-co
|
|
|
3
3
|
import { buildOperation, toExpr } from "@prisma/orm-family-sql/relational-core/expression";
|
|
4
4
|
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
5
5
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
6
|
-
//#region ../../../3-extensions/paradedb/dist/descriptor-meta-
|
|
6
|
+
//#region ../../../3-extensions/paradedb/dist/descriptor-meta-D-rbkTte.mjs
|
|
7
7
|
/**
|
|
8
8
|
* Extension ID for ParadeDB pg_search.
|
|
9
9
|
*/
|
|
@@ -78,7 +78,6 @@ var ParadeDbProximityChain = class ParadeDbProximityChain {
|
|
|
78
78
|
returns: this.returnType,
|
|
79
79
|
lowering: {
|
|
80
80
|
targetFamily: "sql",
|
|
81
|
-
strategy: "function",
|
|
82
81
|
template
|
|
83
82
|
}
|
|
84
83
|
});
|
|
@@ -103,7 +102,6 @@ function paradedbQueryOperations() {
|
|
|
103
102
|
},
|
|
104
103
|
lowering: {
|
|
105
104
|
targetFamily: "sql",
|
|
106
|
-
strategy: "function",
|
|
107
105
|
template: "{{self}} @@@ {{arg0}}"
|
|
108
106
|
}
|
|
109
107
|
})
|
|
@@ -119,7 +117,6 @@ function paradedbQueryOperations() {
|
|
|
119
117
|
},
|
|
120
118
|
lowering: {
|
|
121
119
|
targetFamily: "sql",
|
|
122
|
-
strategy: "function",
|
|
123
120
|
template: "{{self}} ||| {{arg0}}"
|
|
124
121
|
}
|
|
125
122
|
})
|
|
@@ -135,7 +132,6 @@ function paradedbQueryOperations() {
|
|
|
135
132
|
},
|
|
136
133
|
lowering: {
|
|
137
134
|
targetFamily: "sql",
|
|
138
|
-
strategy: "function",
|
|
139
135
|
template: "{{self}} &&& {{arg0}}"
|
|
140
136
|
}
|
|
141
137
|
})
|
|
@@ -151,7 +147,6 @@ function paradedbQueryOperations() {
|
|
|
151
147
|
},
|
|
152
148
|
lowering: {
|
|
153
149
|
targetFamily: "sql",
|
|
154
|
-
strategy: "function",
|
|
155
150
|
template: "{{self}} === {{arg0}}"
|
|
156
151
|
}
|
|
157
152
|
})
|
|
@@ -167,7 +162,6 @@ function paradedbQueryOperations() {
|
|
|
167
162
|
},
|
|
168
163
|
lowering: {
|
|
169
164
|
targetFamily: "sql",
|
|
170
|
-
strategy: "function",
|
|
171
165
|
template: "{{self}} ### {{arg0}}"
|
|
172
166
|
}
|
|
173
167
|
})
|
|
@@ -183,7 +177,6 @@ function paradedbQueryOperations() {
|
|
|
183
177
|
},
|
|
184
178
|
lowering: {
|
|
185
179
|
targetFamily: "sql",
|
|
186
|
-
strategy: "function",
|
|
187
180
|
template: "pdb.score({{self}})"
|
|
188
181
|
}
|
|
189
182
|
})
|
|
@@ -205,7 +198,6 @@ function paradedbQueryOperations() {
|
|
|
205
198
|
},
|
|
206
199
|
lowering: {
|
|
207
200
|
targetFamily: "sql",
|
|
208
|
-
strategy: "function",
|
|
209
201
|
template: "{{self}}::pdb.fuzzy({{arg0}})"
|
|
210
202
|
}
|
|
211
203
|
});
|
|
@@ -228,7 +220,6 @@ function paradedbQueryOperations() {
|
|
|
228
220
|
},
|
|
229
221
|
lowering: {
|
|
230
222
|
targetFamily: "sql",
|
|
231
|
-
strategy: "function",
|
|
232
223
|
template: "{{self}}::pdb.boost({{arg0}})"
|
|
233
224
|
}
|
|
234
225
|
});
|
|
@@ -251,7 +242,6 @@ function paradedbQueryOperations() {
|
|
|
251
242
|
},
|
|
252
243
|
lowering: {
|
|
253
244
|
targetFamily: "sql",
|
|
254
|
-
strategy: "function",
|
|
255
245
|
template: "{{self}}::pdb.const({{arg0}})"
|
|
256
246
|
}
|
|
257
247
|
});
|
|
@@ -274,7 +264,6 @@ function paradedbQueryOperations() {
|
|
|
274
264
|
},
|
|
275
265
|
lowering: {
|
|
276
266
|
targetFamily: "sql",
|
|
277
|
-
strategy: "function",
|
|
278
267
|
template: "{{self}}::pdb.slop({{arg0}})"
|
|
279
268
|
}
|
|
280
269
|
});
|
|
@@ -303,4 +292,4 @@ const paradedbPackMeta = {
|
|
|
303
292
|
//#endregion
|
|
304
293
|
export { paradedbPackMeta as n, paradedbQueryOperations as r, PARADEDB_SPACE_ID as t };
|
|
305
294
|
|
|
306
|
-
//# sourceMappingURL=descriptor-meta-
|
|
295
|
+
//# sourceMappingURL=descriptor-meta-D-rbkTte-DwbFUTOH.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptor-meta-D-rbkTte-DwbFUTOH.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/descriptor-meta-D-rbkTte.mjs"],"sourcesContent":["import { t as paradedbIndexTypes } from \"./index-types-C1q0xQR4.mjs\";\nimport { LiteralExpr, OperationExpr } from \"@internal/sql-relational-core/ast\";\nimport { buildOperation, toExpr } from \"@internal/sql-relational-core/expression\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/core/constants.ts\n/**\n* Extension ID for ParadeDB pg_search.\n*/\nconst PARADEDB_EXTENSION_ID = \"paradedb\";\n/**\n* Static names and identifiers used across paradedb's contract space.\n*\n* Centralised here so the contract IR (`./contract`), the baseline\n* migration ops (`./migrations`), the head ref, and the descriptor\n* (`../exports/control`) all reference the same values without typos.\n*\n* The space identifier `'paradedb'` is what the framework writes to\n* `migrations/` in the user's repo and what the marker table's\n* `space` column carries for paradedb-owned rows.\n*\n* The `paradedb:*` invariantId namespace is locked here — once\n* published, an invariantId is immutable so downstream consumers can\n* reference it by literal string match.\n*/\nconst PARADEDB_SPACE_ID = \"paradedb\";\n//#endregion\n//#region src/core/errors.ts\nfunction paradeDbError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/core/proximity-chain.ts\nconst TEXT$1 = \"pg/text@1\";\nconst TEXT_REF$1 = { codecId: TEXT$1 };\nvar ParadeDbProximityChain = class ParadeDbProximityChain {\n\treturnType = {\n\t\tcodecId: TEXT$1,\n\t\tnullable: false\n\t};\n\tstart;\n\tsteps;\n\tconstructor(start, steps = []) {\n\t\tthis.start = start;\n\t\tthis.steps = steps;\n\t}\n\twithin(distance, term, options) {\n\t\tif (!Number.isInteger(distance) || distance < 0) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbProximity.within: distance must be a non-negative integer; got ${String(distance)}`, { meta: {\n\t\t\thelper: \"paradeDbProximity.within\",\n\t\t\targument: \"distance\",\n\t\t\treceived: distance\n\t\t} });\n\t\treturn new ParadeDbProximityChain(this.start, [...this.steps, {\n\t\t\tdistance,\n\t\t\tterm,\n\t\t\tordered: options?.ordered === true\n\t\t}]);\n\t}\n\tbuildAst() {\n\t\tif (this.steps.length === 0) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", \"paradeDbProximity: chain must have at least one .within(distance, term) step\", {\n\t\t\tfix: \"Chain at least one .within(distance, term) call before using the proximity expression.\",\n\t\t\tmeta: {\n\t\t\t\thelper: \"paradeDbProximity\",\n\t\t\t\targument: \"steps\"\n\t\t\t}\n\t\t});\n\t\tconst args = [toExpr(this.start, TEXT_REF$1)];\n\t\tlet template = \"({{self}}\";\n\t\tthis.steps.forEach((step, i) => {\n\t\t\tconst op = step.ordered ? \"##>\" : \"##\";\n\t\t\targs.push(LiteralExpr.of(step.distance));\n\t\t\targs.push(toExpr(step.term, TEXT_REF$1));\n\t\t\ttemplate += ` ${op} {{arg${2 * i}}} ${op} {{arg${2 * i + 1}}}`;\n\t\t});\n\t\ttemplate += \")\";\n\t\tconst [self, ...rest] = args;\n\t\tif (!self) throw new InternalError(\"paradeDbProximity: invariant violation — empty args\");\n\t\treturn new OperationExpr({\n\t\t\tmethod: \"paradeDbProximity\",\n\t\t\tself,\n\t\t\targs: rest.length > 0 ? rest : void 0,\n\t\t\treturns: this.returnType,\n\t\t\tlowering: {\n\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\ttemplate\n\t\t\t}\n\t\t});\n\t}\n};\n//#endregion\n//#region src/core/descriptor-meta.ts\nconst TEXT = \"pg/text@1\";\nconst BOOL = \"pg/bool@1\";\nconst FLOAT4 = \"pg/float4@1\";\nconst INT4 = \"pg/int4@1\";\nconst TEXT_REF = { codecId: TEXT };\nconst INT4_REF = { codecId: INT4 };\nfunction paradedbQueryOperations() {\n\treturn {\n\t\tparadeDbMatch: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbMatch\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} @@@ {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbMatchAny: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbMatchAny\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} ||| {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbMatchAll: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbMatchAll\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} &&& {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbTerm: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbTerm\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} === {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbPhrase: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbPhrase\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} ### {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbScore: {\n\t\t\tself: { codecId: INT4 },\n\t\t\timpl: (self) => buildOperation({\n\t\t\t\tmethod: \"paradeDbScore\",\n\t\t\t\targs: [toExpr(self, INT4_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: FLOAT4,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"pdb.score({{self}})\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbFuzzy: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, distance) => {\n\t\t\t\tif (!Number.isInteger(distance) || distance < 0 || distance > 2) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbFuzzy: distance must be an integer in [0, 2]; got ${String(distance)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbFuzzy\",\n\t\t\t\t\targument: \"distance\",\n\t\t\t\t\treceived: distance\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbFuzzy\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(distance)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.fuzzy({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbBoost: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, weight) => {\n\t\t\t\tif (!Number.isInteger(weight) || weight < -2048 || weight > 2048) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbBoost: boost must be an integer in [-2048, 2048]; got ${String(weight)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbBoost\",\n\t\t\t\t\targument: \"weight\",\n\t\t\t\t\treceived: weight\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbBoost\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(weight)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.boost({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbConst: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, value) => {\n\t\t\t\tif (!Number.isInteger(value)) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbConst: value must be an integer; got ${String(value)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbConst\",\n\t\t\t\t\targument: \"value\",\n\t\t\t\t\treceived: value\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbConst\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(value)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.const({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbSlop: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, slop) => {\n\t\t\t\tif (!Number.isInteger(slop) || slop < 0) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbSlop: slop must be a non-negative integer; got ${String(slop)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbSlop\",\n\t\t\t\t\targument: \"slop\",\n\t\t\t\t\treceived: slop\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbSlop\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(slop)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.slop({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbProximity: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (start) => new ParadeDbProximityChain(start)\n\t\t}\n\t};\n}\nconst paradedbPackMeta = {\n\tkind: \"extension\",\n\tid: PARADEDB_EXTENSION_ID,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion: \"0.0.1\",\n\tcapabilities: { postgres: { \"paradedb/bm25\": true } },\n\tindexTypes: paradedbIndexTypes,\n\ttypes: { queryOperationTypes: { import: {\n\t\tpackage: \"@internal/extension-paradedb/operation-types\",\n\t\tnamed: \"QueryOperationTypes\",\n\t\talias: \"ParadeDbQueryOperationTypes\"\n\t} } }\n};\n//#endregion\nexport { paradedbQueryOperations as n, PARADEDB_SPACE_ID as r, paradedbPackMeta as t };\n\n//# sourceMappingURL=descriptor-meta-D-rbkTte.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,wBAAwB;;;;;;;;;;;;;;;;AAgB9B,MAAM,oBAAoB;AAG1B,SAAS,cAAc,MAAM,SAAS,SAAS;CAC9C,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;AAGA,MAAM,SAAS;AACf,MAAM,aAAa,EAAE,SAAS,OAAO;AACrC,IAAI,yBAAyB,MAAM,uBAAuB;CACzD,aAAa;EACZ,SAAS;EACT,UAAU;CACX;CACA;CACA;CACA,YAAY,OAAO,QAAQ,CAAC,GAAG;EAC9B,KAAK,QAAQ;EACb,KAAK,QAAQ;CACd;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;KACR,UAAU;KACV,UAAU;IACX,EAAE,CAAC;IACH,OAAO,eAAe;KACrB,QAAQ;KACR,MAAM,CAAC,OAAO,MAAM,QAAQ,GAAG,YAAY,GAAG,KAAK,CAAC;KACpD,SAAS;MACR,SAAS;MACT,UAAU;KACX;KACA,UAAU;MACT,cAAc;MACd,UAAU;KACX;IACD,CAAC;GACF;EACD;EACA,cAAc;GACb,MAAM,EAAE,SAAS,KAAK;GACtB,OAAO,MAAM,SAAS;IACrB,IAAI,CAAC,OAAO,UAAU,IAAI,KAAK,OAAO,GAAG,MAAM,cAAc,6BAA6B,0DAA0D,OAAO,IAAI,KAAK,EAAE,MAAM;KAC3K,QAAQ;KACR,UAAU;KACV,UAAU;IACX,EAAE,CAAC;IACH,OAAO,eAAe;KACrB,QAAQ;KACR,MAAM,CAAC,OAAO,MAAM,QAAQ,GAAG,YAAY,GAAG,IAAI,CAAC;KACnD,SAAS;MACR,SAAS;MACT,UAAU;KACX;KACA,UAAU;MACT,cAAc;MACd,UAAU;KACX;IACD,CAAC;GACF;EACD;EACA,mBAAmB;GAClB,MAAM,EAAE,SAAS,KAAK;GACtB,OAAO,UAAU,IAAI,uBAAuB,KAAK;EAClD;CACD;AACD;AACA,MAAM,mBAAmB;CACxB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV,SAAS;CACT,cAAc,EAAE,UAAU,EAAE,iBAAiB,KAAK,EAAE;CACpD,YAAY;CACZ,OAAO,EAAE,qBAAqB,EAAE,QAAQ;EACvC,SAAS;EACT,OAAO;EACP,OAAO;CACR,EAAE,EAAE;AACL"}
|
package/dist/{operation-types-CnWfzlZq-ByY1S789.d.mts → operation-types--0qfPZCP-4Y6nsbET.d.mts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyExpression } from "@prisma/orm-family-sql/relational-core/ast";
|
|
2
2
|
import { CodecExpression, Expression } from "@prisma/orm-family-sql/relational-core/expression";
|
|
3
|
-
import { SqlQueryOperationTypes } from "@prisma/orm-family-sql/contract/types";
|
|
4
|
-
//#region ../../../3-extensions/paradedb/dist/operation-types
|
|
3
|
+
import { QueryOperationTypesFunction, SqlQueryOperationTypes } from "@prisma/orm-family-sql/contract/types";
|
|
4
|
+
//#region ../../../3-extensions/paradedb/dist/operation-types--0qfPZCP.d.mts
|
|
5
5
|
//#region src/core/proximity-chain.d.ts
|
|
6
6
|
type ProximityTerm = unknown;
|
|
7
7
|
interface ProximityWithinOptions {
|
|
@@ -130,6 +130,10 @@ type QueryOperationTypes<CT extends CodecTypesBase> = SqlQueryOperationTypes<CT,
|
|
|
130
130
|
readonly impl: (start: CodecExpression<'pg/text@1', boolean, CT>) => ParadeDbProximityChain;
|
|
131
131
|
};
|
|
132
132
|
}>;
|
|
133
|
+
/** {@link QueryOperationTypes} as a function of the contract's codec types, for a contract written in TypeScript. */
|
|
134
|
+
interface QueryOperationTypesForCodecs extends QueryOperationTypesFunction {
|
|
135
|
+
readonly queryOperationTypes: QueryOperationTypes<this['codecTypes']>;
|
|
136
|
+
}
|
|
133
137
|
//#endregion
|
|
134
|
-
export { QueryOperationTypes as t };
|
|
135
|
-
//# sourceMappingURL=operation-types-
|
|
138
|
+
export { QueryOperationTypesForCodecs as i, ProximityWithinOptions as n, QueryOperationTypes as r, ParadeDbProximityChain as t };
|
|
139
|
+
//# sourceMappingURL=operation-types--0qfPZCP-4Y6nsbET.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-types-
|
|
1
|
+
{"version":3,"file":"operation-types--0qfPZCP-4Y6nsbET.d.mts","names":[],"sources":["../../../../3-extensions/paradedb/dist/operation-types--0qfPZCP.d.mts"],"mappings":";;;;;KAIK;UACK;WACC;;UAED;WACC;WACA,MAAM;WACN;;cAEG,kCAAkC;EAC9C;EACA;;WAES;aACE;aACA;;mBAEM;mBACA;EACjB,YAAY,OAAO,eAAe,iBAAiB;EACnD,OAAO,kBAAkB,MAAM,eAAe,UAAU,yBAAyB;EACjF,YAAY;;;;KAIT,iBAAiB;WACX;WACA;;KAEN,oBAAoB,WAAW,kBAAkB,uBAAuB;WAClE;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,OAAO,sCAAsC,QAAQ;MACpH;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,OAAO,sCAAsC,QAAQ;MACpH;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,OAAO,sCAAsC,QAAQ;MACpH;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,OAAO,sCAAsC,QAAQ;MACpH;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,OAAO,sCAAsC,QAAQ;MACpH;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,QAAQ;MAClE;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,qBAAqB;MACpF;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,mBAAmB;MAClF;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,kBAAkB;MACjF;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,iBAAiB;MAChF;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,OAAO,sCAAsC,QAAQ;;;;UAI/D,qCAAqC;WACpC,qBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./operation-types--0qfPZCP-4Y6nsbET.mjs";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { i as QueryOperationTypesForCodecs, r as QueryOperationTypes } from "./operation-types--0qfPZCP-4Y6nsbET.mjs";
|
|
2
|
+
import "./operation-types-Cmq0ufU2.mjs";
|
|
3
|
+
export type { QueryOperationTypes, QueryOperationTypesForCodecs };
|
package/dist/pack.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { i as QueryOperationTypesForCodecs, n as ProximityWithinOptions, t as ParadeDbProximityChain } from "./operation-types--0qfPZCP-4Y6nsbET.mjs";
|
|
2
|
+
import "./operation-types-Cmq0ufU2.mjs";
|
|
1
3
|
//#region ../../../3-extensions/paradedb/dist/pack.d.mts
|
|
2
4
|
//#region src/exports/pack.d.ts
|
|
3
5
|
declare const paradedbPack: {
|
|
@@ -25,7 +27,9 @@ declare const paradedbPack: {
|
|
|
25
27
|
};
|
|
26
28
|
};
|
|
27
29
|
};
|
|
30
|
+
} & {
|
|
31
|
+
readonly __queryOperationTypes?: QueryOperationTypesForCodecs;
|
|
28
32
|
};
|
|
29
33
|
//#endregion
|
|
30
|
-
export { paradedbPack as default };
|
|
34
|
+
export { type ParadeDbProximityChain, type ProximityWithinOptions, type QueryOperationTypesForCodecs, paradedbPack as default };
|
|
31
35
|
//# sourceMappingURL=pack.d.mts.map
|
package/dist/pack.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pack.d.mts","names":[],"sources":["../../../../3-extensions/paradedb/dist/pack.d.mts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"pack.d.mts","names":[],"sources":["../../../../3-extensions/paradedb/dist/pack.d.mts"],"mappings":";;;;cAGc;WACH;WACA;WACA;WACA;WACA;WACA;aACE;eACE;;;WAGJ,yDAAyD,iBAAiB,uBAAuB;aAC/F;MACP;;;WAGK;aACE;eACE;iBACE;iBACA;iBACA;;;;;WAKN,wBAAwB"}
|
package/dist/pack.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as paradedbPackMeta } from "./descriptor-meta-
|
|
1
|
+
import { n as paradedbPackMeta } from "./descriptor-meta-D-rbkTte-DwbFUTOH.mjs";
|
|
2
2
|
//#region ../../../3-extensions/paradedb/dist/pack.mjs
|
|
3
3
|
const paradedbPack = paradedbPackMeta;
|
|
4
4
|
//#endregion
|
package/dist/pack.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pack.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/pack.mjs"],"sourcesContent":["import { t as paradedbPackMeta } from \"./descriptor-meta-
|
|
1
|
+
{"version":3,"file":"pack.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/pack.mjs"],"sourcesContent":["import { t as paradedbPackMeta } from \"./descriptor-meta-D-rbkTte.mjs\";\n//#region src/exports/pack.ts\nconst paradedbPack = paradedbPackMeta;\n//#endregion\nexport { paradedbPack as default };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;AAEA,MAAM,eAAe"}
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as paradedbPackMeta, r as paradedbQueryOperations } from "./descriptor-meta-
|
|
1
|
+
import { n as paradedbPackMeta, r as paradedbQueryOperations } from "./descriptor-meta-D-rbkTte-DwbFUTOH.mjs";
|
|
2
2
|
//#region ../../../3-extensions/paradedb/dist/runtime.mjs
|
|
3
3
|
const paradedbRuntimeDescriptor = {
|
|
4
4
|
kind: "extension",
|
package/dist/runtime.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/runtime.mjs"],"sourcesContent":["import { n as paradedbQueryOperations, t as paradedbPackMeta } from \"./descriptor-meta-
|
|
1
|
+
{"version":3,"file":"runtime.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/runtime.mjs"],"sourcesContent":["import { n as paradedbQueryOperations, t as paradedbPackMeta } from \"./descriptor-meta-D-rbkTte.mjs\";\n//#region src/exports/runtime.ts\nconst paradedbRuntimeDescriptor = {\n\tkind: \"extension\",\n\tid: paradedbPackMeta.id,\n\tversion: paradedbPackMeta.version,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tcodecs: () => [],\n\tqueryOperations: () => paradedbQueryOperations(),\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { paradedbRuntimeDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;AAEA,MAAM,4BAA4B;CACjC,MAAM;CACN,IAAI,iBAAiB;CACrB,SAAS,iBAAiB;CAC1B,UAAU;CACV,UAAU;CACV,cAAc,CAAC;CACf,uBAAuB,wBAAwB;CAC/C,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-extension-paradedb",
|
|
3
|
-
"version": "8.0.0-rc.
|
|
3
|
+
"version": "8.0.0-rc.20",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"description": "ParadeDB BM25 full-text search indexes and operators for Prisma
|
|
7
|
+
"description": "ParadeDB BM25 full-text search indexes and operators for Prisma 8",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-family-sql": "8.0.0-rc.
|
|
13
|
-
"@prisma/orm-framework": "8.0.0-rc.
|
|
14
|
-
"@prisma/orm-toolchain": "8.0.0-rc.
|
|
12
|
+
"@prisma/orm-family-sql": "8.0.0-rc.20",
|
|
13
|
+
"@prisma/orm-framework": "8.0.0-rc.20",
|
|
14
|
+
"@prisma/orm-toolchain": "8.0.0-rc.20",
|
|
15
15
|
"arktype": "^2.2.2"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@internal/extension-paradedb": "8.0.0-rc.
|
|
19
|
-
"@repo/tsconfig": "8.0.0-rc.
|
|
20
|
-
"@repo/tsdown": "8.0.0-rc.
|
|
18
|
+
"@internal/extension-paradedb": "8.0.0-rc.20",
|
|
19
|
+
"@repo/tsconfig": "8.0.0-rc.20",
|
|
20
|
+
"@repo/tsdown": "8.0.0-rc.20",
|
|
21
21
|
"tsdown": "0.22.14",
|
|
22
22
|
"typescript": "5.9.3"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@prisma/orm-target-postgres": "8.0.0-rc.
|
|
25
|
+
"@prisma/orm-target-postgres": "8.0.0-rc.20",
|
|
26
26
|
"typescript": ">=5.9"
|
|
27
27
|
},
|
|
28
28
|
"peerDependenciesMeta": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
|
-
"url": "https://github.com/prisma/
|
|
43
|
+
"url": "https://github.com/prisma/orm.git",
|
|
44
44
|
"directory": "packages/9-public/@prisma/orm-extension-paradedb"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-meta-CqqjwQV3-rK5CM2pg.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/descriptor-meta-CqqjwQV3.mjs"],"sourcesContent":["import { t as paradedbIndexTypes } from \"./index-types-C1q0xQR4.mjs\";\nimport { LiteralExpr, OperationExpr } from \"@internal/sql-relational-core/ast\";\nimport { buildOperation, toExpr } from \"@internal/sql-relational-core/expression\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/core/constants.ts\n/**\n* Extension ID for ParadeDB pg_search.\n*/\nconst PARADEDB_EXTENSION_ID = \"paradedb\";\n/**\n* Static names and identifiers used across paradedb's contract space.\n*\n* Centralised here so the contract IR (`./contract`), the baseline\n* migration ops (`./migrations`), the head ref, and the descriptor\n* (`../exports/control`) all reference the same values without typos.\n*\n* The space identifier `'paradedb'` is what the framework writes to\n* `migrations/` in the user's repo and what the marker table's\n* `space` column carries for paradedb-owned rows.\n*\n* The `paradedb:*` invariantId namespace is locked here — once\n* published, an invariantId is immutable so downstream consumers can\n* reference it by literal string match.\n*/\nconst PARADEDB_SPACE_ID = \"paradedb\";\n//#endregion\n//#region src/core/errors.ts\nfunction paradeDbError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/core/proximity-chain.ts\nconst TEXT$1 = \"pg/text@1\";\nconst TEXT_REF$1 = { codecId: TEXT$1 };\nvar ParadeDbProximityChain = class ParadeDbProximityChain {\n\treturnType = {\n\t\tcodecId: TEXT$1,\n\t\tnullable: false\n\t};\n\tstart;\n\tsteps;\n\tconstructor(start, steps = []) {\n\t\tthis.start = start;\n\t\tthis.steps = steps;\n\t}\n\twithin(distance, term, options) {\n\t\tif (!Number.isInteger(distance) || distance < 0) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbProximity.within: distance must be a non-negative integer; got ${String(distance)}`, { meta: {\n\t\t\thelper: \"paradeDbProximity.within\",\n\t\t\targument: \"distance\",\n\t\t\treceived: distance\n\t\t} });\n\t\treturn new ParadeDbProximityChain(this.start, [...this.steps, {\n\t\t\tdistance,\n\t\t\tterm,\n\t\t\tordered: options?.ordered === true\n\t\t}]);\n\t}\n\tbuildAst() {\n\t\tif (this.steps.length === 0) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", \"paradeDbProximity: chain must have at least one .within(distance, term) step\", {\n\t\t\tfix: \"Chain at least one .within(distance, term) call before using the proximity expression.\",\n\t\t\tmeta: {\n\t\t\t\thelper: \"paradeDbProximity\",\n\t\t\t\targument: \"steps\"\n\t\t\t}\n\t\t});\n\t\tconst args = [toExpr(this.start, TEXT_REF$1)];\n\t\tlet template = \"({{self}}\";\n\t\tthis.steps.forEach((step, i) => {\n\t\t\tconst op = step.ordered ? \"##>\" : \"##\";\n\t\t\targs.push(LiteralExpr.of(step.distance));\n\t\t\targs.push(toExpr(step.term, TEXT_REF$1));\n\t\t\ttemplate += ` ${op} {{arg${2 * i}}} ${op} {{arg${2 * i + 1}}}`;\n\t\t});\n\t\ttemplate += \")\";\n\t\tconst [self, ...rest] = args;\n\t\tif (!self) throw new InternalError(\"paradeDbProximity: invariant violation — empty args\");\n\t\treturn new OperationExpr({\n\t\t\tmethod: \"paradeDbProximity\",\n\t\t\tself,\n\t\t\targs: rest.length > 0 ? rest : void 0,\n\t\t\treturns: this.returnType,\n\t\t\tlowering: {\n\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\tstrategy: \"function\",\n\t\t\t\ttemplate\n\t\t\t}\n\t\t});\n\t}\n};\n//#endregion\n//#region src/core/descriptor-meta.ts\nconst TEXT = \"pg/text@1\";\nconst BOOL = \"pg/bool@1\";\nconst FLOAT4 = \"pg/float4@1\";\nconst INT4 = \"pg/int4@1\";\nconst TEXT_REF = { codecId: TEXT };\nconst INT4_REF = { codecId: INT4 };\nfunction paradedbQueryOperations() {\n\treturn {\n\t\tparadeDbMatch: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbMatch\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"{{self}} @@@ {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbMatchAny: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbMatchAny\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"{{self}} ||| {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbMatchAll: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbMatchAll\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"{{self}} &&& {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbTerm: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbTerm\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"{{self}} === {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbPhrase: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbPhrase\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"{{self}} ### {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbScore: {\n\t\t\tself: { codecId: INT4 },\n\t\t\timpl: (self) => buildOperation({\n\t\t\t\tmethod: \"paradeDbScore\",\n\t\t\t\targs: [toExpr(self, INT4_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: FLOAT4,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"pdb.score({{self}})\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbFuzzy: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, distance) => {\n\t\t\t\tif (!Number.isInteger(distance) || distance < 0 || distance > 2) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbFuzzy: distance must be an integer in [0, 2]; got ${String(distance)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbFuzzy\",\n\t\t\t\t\targument: \"distance\",\n\t\t\t\t\treceived: distance\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbFuzzy\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(distance)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.fuzzy({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbBoost: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, weight) => {\n\t\t\t\tif (!Number.isInteger(weight) || weight < -2048 || weight > 2048) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbBoost: boost must be an integer in [-2048, 2048]; got ${String(weight)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbBoost\",\n\t\t\t\t\targument: \"weight\",\n\t\t\t\t\treceived: weight\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbBoost\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(weight)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.boost({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbConst: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, value) => {\n\t\t\t\tif (!Number.isInteger(value)) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbConst: value must be an integer; got ${String(value)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbConst\",\n\t\t\t\t\targument: \"value\",\n\t\t\t\t\treceived: value\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbConst\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(value)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.const({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbSlop: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, slop) => {\n\t\t\t\tif (!Number.isInteger(slop) || slop < 0) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbSlop: slop must be a non-negative integer; got ${String(slop)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbSlop\",\n\t\t\t\t\targument: \"slop\",\n\t\t\t\t\treceived: slop\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbSlop\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(slop)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.slop({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbProximity: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (start) => new ParadeDbProximityChain(start)\n\t\t}\n\t};\n}\nconst paradedbPackMeta = {\n\tkind: \"extension\",\n\tid: PARADEDB_EXTENSION_ID,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion: \"0.0.1\",\n\tcapabilities: { postgres: { \"paradedb/bm25\": true } },\n\tindexTypes: paradedbIndexTypes,\n\ttypes: { queryOperationTypes: { import: {\n\t\tpackage: \"@internal/extension-paradedb/operation-types\",\n\t\tnamed: \"QueryOperationTypes\",\n\t\talias: \"ParadeDbQueryOperationTypes\"\n\t} } }\n};\n//#endregion\nexport { paradedbQueryOperations as n, PARADEDB_SPACE_ID as r, paradedbPackMeta as t };\n\n//# sourceMappingURL=descriptor-meta-CqqjwQV3.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,wBAAwB;;;;;;;;;;;;;;;;AAgB9B,MAAM,oBAAoB;AAG1B,SAAS,cAAc,MAAM,SAAS,SAAS;CAC9C,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;AA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