@prisma/orm-postgres-contrib 0.0.0-stage → 8.0.0-rc.21-dev.23
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/LICENSE +201 -0
- package/README.md +42 -2
- package/dist/citext__codec-types.d.mts +2 -0
- package/dist/citext__codec-types.mjs +1 -0
- package/dist/citext__column-types.d.mts +16 -0
- package/dist/citext__column-types.d.mts.map +1 -0
- package/dist/citext__column-types.mjs +17 -0
- package/dist/citext__column-types.mjs.map +1 -0
- package/dist/citext__control.d.mts +7 -0
- package/dist/citext__control.d.mts.map +1 -0
- package/dist/citext__control.mjs +157 -0
- package/dist/citext__control.mjs.map +1 -0
- package/dist/citext__pack.d.mts +41 -0
- package/dist/citext__pack.d.mts.map +1 -0
- package/dist/citext__pack.mjs +2 -0
- package/dist/citext__runtime.d.mts +11 -0
- package/dist/citext__runtime.d.mts.map +1 -0
- package/dist/citext__runtime.mjs +22 -0
- package/dist/citext__runtime.mjs.map +1 -0
- package/dist/codec-types-CO0wKCDo-BU51joVo.d.mts +7 -0
- package/dist/codec-types-CO0wKCDo-BU51joVo.d.mts.map +1 -0
- package/dist/codecs-B-Q9cVKj-BVgKjiD-.d.mts +37 -0
- package/dist/codecs-B-Q9cVKj-BVgKjiD-.d.mts.map +1 -0
- package/dist/codecs-DG1lpGzH-B64bhBWY.mjs +64 -0
- package/dist/codecs-DG1lpGzH-B64bhBWY.mjs.map +1 -0
- package/dist/descriptor-meta-DXd34CQ_-C6qZXngm.mjs +31 -0
- package/dist/descriptor-meta-DXd34CQ_-C6qZXngm.mjs.map +1 -0
- package/package.json +51 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [2026] [Prisma Data, Inc]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @prisma/orm-postgres-contrib
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Prisma 8 packs for the PostgreSQL contrib modules that PostgreSQL marks trusted, the ones any database owner can install.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pnpm add @prisma/orm-postgres-contrib
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Every trusted contrib module gets its pack here, as one group of entrypoints named after the module. Third-party extensions such as pgvector and PostGIS keep a package each (`@prisma/orm-extension-<name>`), because they release on their own schedule; see [ADR 312](https://github.com/prisma/orm/blob/main/docs/architecture%20docs/adrs/ADR%20312%20-%20Postgres%20extension%20packs%20are%20published%20by%20tier.md).
|
|
10
|
+
|
|
11
|
+
## Modules
|
|
12
|
+
|
|
13
|
+
| Module | Entrypoints | What it adds |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| `citext` | `/citext/control`, `/citext/runtime`, `/citext/pack`, `/citext/column-types`, `/citext/codec-types` | Text that PostgreSQL compares, orders and matches without regard to case: the `citext.Citext` PSL type, the `citext()` column type, and the `pg/citext@1` codec (a `string`) |
|
|
16
|
+
|
|
17
|
+
## Using citext
|
|
18
|
+
|
|
19
|
+
Add the pack to `extensions` in `prisma.config.ts`:
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { definePrismaConfig } from 'prisma/config';
|
|
23
|
+
import citext from '@prisma/orm-postgres-contrib/citext/control';
|
|
24
|
+
import { defineConfig as ormConfig } from '@prisma/orm-postgres/config';
|
|
25
|
+
|
|
26
|
+
export default definePrismaConfig({
|
|
27
|
+
orm: ormConfig({
|
|
28
|
+
contract: './src/prisma/contract.prisma',
|
|
29
|
+
extensions: [citext],
|
|
30
|
+
}),
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Then declare a column with it:
|
|
35
|
+
|
|
36
|
+
```prisma
|
|
37
|
+
model User {
|
|
38
|
+
id Int @id
|
|
39
|
+
email citext.Citext @unique
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The pack's contract declares the `citext` extension, so `db sign` adopts a database that already has it, and `db init`, `db update` and `db migrate` create it before the first table that uses it. At runtime, pass `@prisma/orm-postgres-contrib/citext/runtime` in the client's `extensions`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { r as citextColumn, t as CITEXT_CODEC_ID } from "./codecs-B-Q9cVKj-BVgKjiD-.mjs";
|
|
2
|
+
import { ColumnTypeDescriptor } from "@prisma/orm-framework/components/codec";
|
|
3
|
+
//#region ../../../3-extensions/citext/dist/column-types.d.mts
|
|
4
|
+
//#region src/exports/column-types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* A `citext` column: text PostgreSQL compares without regard to case.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* email: field.column(citext())
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
declare function citext(): ColumnTypeDescriptor<typeof CITEXT_CODEC_ID>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { citext, citextColumn };
|
|
16
|
+
//# sourceMappingURL=citext__column-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citext__column-types.d.mts","names":[],"sources":["../../../../3-extensions/citext/dist/column-types.d.mts"],"mappings":";;;;;;;;;;;;iBAWiB,UAAU,4BAA4B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as citextColumn, t as CITEXT_CODEC_ID } from "./codecs-DG1lpGzH-B64bhBWY.mjs";
|
|
2
|
+
//#region ../../../3-extensions/citext/dist/column-types.mjs
|
|
3
|
+
/**
|
|
4
|
+
* A `citext` column: text PostgreSQL compares without regard to case.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* email: field.column(citext())
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
function citext() {
|
|
12
|
+
return { codecId: CITEXT_CODEC_ID };
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { citext, citextColumn };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=citext__column-types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citext__column-types.mjs","names":[],"sources":["../../../../3-extensions/citext/dist/column-types.mjs"],"sourcesContent":["import { i as CITEXT_CODEC_ID, t as citextColumn } from \"./codecs-DG1lpGzH.mjs\";\n//#region src/exports/column-types.ts\n/**\n* A `citext` column: text PostgreSQL compares without regard to case.\n*\n* @example\n* ```typescript\n* email: field.column(citext())\n* ```\n*/\nfunction citext() {\n\treturn { codecId: CITEXT_CODEC_ID };\n}\n//#endregion\nexport { citext, citextColumn };\n\n//# sourceMappingURL=column-types.mjs.map"],"mappings":";;;;;;;;;;AAUA,SAAS,SAAS;CACjB,OAAO,EAAE,SAAS,gBAAgB;AACnC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SqlControlExtensionDescriptor } from "@prisma/orm-family-sql/family/control";
|
|
2
|
+
//#region ../../../3-extensions/citext/dist/control.d.mts
|
|
3
|
+
//#region src/exports/control.d.ts
|
|
4
|
+
declare const citextExtensionDescriptor: SqlControlExtensionDescriptor<'postgres'>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { citextExtensionDescriptor, citextExtensionDescriptor as default };
|
|
7
|
+
//# sourceMappingURL=citext__control.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citext__control.d.mts","names":[],"sources":["../../../../3-extensions/citext/dist/control.d.mts"],"mappings":";;;cAEc,2BAA2B"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { t as CITEXT_CODEC_ID } from "./codecs-DG1lpGzH-B64bhBWY.mjs";
|
|
2
|
+
import { n as citextPackMeta } from "./descriptor-meta-DXd34CQ_-C6qZXngm.mjs";
|
|
3
|
+
import { contractSpaceFromJson } from "@prisma/orm-toolchain/migration-tools/spaces";
|
|
4
|
+
//#region ../../../3-extensions/citext/dist/control.mjs
|
|
5
|
+
var migration_default = {
|
|
6
|
+
from: null,
|
|
7
|
+
to: "62dbb8d4183a5d944c332f5122eb9cea170bb06fa21f7c01fc9093cd074ffbfa",
|
|
8
|
+
providedInvariants: [],
|
|
9
|
+
createdAt: "2026-10-29T15:20:57.730Z",
|
|
10
|
+
migrationHash: "1376f8d05d7abce29fb5bdffa13e6b3a7ee15aa50b08b81f5b8b013ecf46a816"
|
|
11
|
+
};
|
|
12
|
+
var ops_default = [{
|
|
13
|
+
"id": "schema.public",
|
|
14
|
+
"label": "Create schema \"public\"",
|
|
15
|
+
"operationClass": "additive",
|
|
16
|
+
"target": { "id": "postgres" },
|
|
17
|
+
"precheck": [],
|
|
18
|
+
"execute": [{
|
|
19
|
+
"description": "Create schema \"public\"",
|
|
20
|
+
"sql": "CREATE SCHEMA IF NOT EXISTS \"public\"",
|
|
21
|
+
"params": []
|
|
22
|
+
}],
|
|
23
|
+
"postcheck": []
|
|
24
|
+
}, {
|
|
25
|
+
"id": "extension.citext",
|
|
26
|
+
"label": "Create extension \"citext\"",
|
|
27
|
+
"operationClass": "additive",
|
|
28
|
+
"target": {
|
|
29
|
+
"id": "postgres",
|
|
30
|
+
"details": {
|
|
31
|
+
"schema": "public",
|
|
32
|
+
"objectType": "dependency",
|
|
33
|
+
"name": "citext"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"precheck": [{
|
|
37
|
+
"description": "verify extension \"citext\" is not installed",
|
|
38
|
+
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
|
|
39
|
+
"params": ["citext"],
|
|
40
|
+
"expectation": {
|
|
41
|
+
"expects": "absent",
|
|
42
|
+
"object": "extension \"citext\""
|
|
43
|
+
}
|
|
44
|
+
}],
|
|
45
|
+
"execute": [{
|
|
46
|
+
"description": "create extension \"citext\"",
|
|
47
|
+
"sql": "CREATE EXTENSION IF NOT EXISTS \"citext\" WITH SCHEMA \"public\""
|
|
48
|
+
}],
|
|
49
|
+
"postcheck": [{
|
|
50
|
+
"description": "confirm extension \"citext\" is installed",
|
|
51
|
+
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
|
|
52
|
+
"params": ["citext"],
|
|
53
|
+
"expectation": {
|
|
54
|
+
"expects": "present",
|
|
55
|
+
"object": "extension \"citext\""
|
|
56
|
+
}
|
|
57
|
+
}]
|
|
58
|
+
}];
|
|
59
|
+
var head_default = {
|
|
60
|
+
hash: "62dbb8d4183a5d944c332f5122eb9cea170bb06fa21f7c01fc9093cd074ffbfa",
|
|
61
|
+
invariants: []
|
|
62
|
+
};
|
|
63
|
+
var contract_default = {
|
|
64
|
+
schemaVersion: "1",
|
|
65
|
+
targetFamily: "sql",
|
|
66
|
+
target: "postgres",
|
|
67
|
+
profileHash: "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2",
|
|
68
|
+
roots: {},
|
|
69
|
+
domain: { "namespaces": { "public": { "models": {} } } },
|
|
70
|
+
storage: {
|
|
71
|
+
"namespaces": { "public": {
|
|
72
|
+
"entries": {
|
|
73
|
+
"extension": { "citext": {
|
|
74
|
+
"kind": "extension",
|
|
75
|
+
"name": "citext"
|
|
76
|
+
} },
|
|
77
|
+
"table": {}
|
|
78
|
+
},
|
|
79
|
+
"id": "public",
|
|
80
|
+
"kind": "postgres-schema"
|
|
81
|
+
} },
|
|
82
|
+
"storageHash": "62dbb8d4183a5d944c332f5122eb9cea170bb06fa21f7c01fc9093cd074ffbfa",
|
|
83
|
+
"types": { "citext": {
|
|
84
|
+
"codecId": "pg/citext@1",
|
|
85
|
+
"dataType": "citext/citext",
|
|
86
|
+
"kind": "codec-instance"
|
|
87
|
+
} }
|
|
88
|
+
},
|
|
89
|
+
capabilities: {
|
|
90
|
+
"postgres": {
|
|
91
|
+
"distinctOn": true,
|
|
92
|
+
"forKeyShare": true,
|
|
93
|
+
"forNoKeyUpdate": true,
|
|
94
|
+
"jsonAgg": true,
|
|
95
|
+
"lateral": true,
|
|
96
|
+
"limit": true,
|
|
97
|
+
"orderBy": true,
|
|
98
|
+
"returning": true
|
|
99
|
+
},
|
|
100
|
+
"sql": {
|
|
101
|
+
"checkConstraint": true,
|
|
102
|
+
"defaultInInsert": true,
|
|
103
|
+
"enums": true,
|
|
104
|
+
"forShare": true,
|
|
105
|
+
"forUpdate": true,
|
|
106
|
+
"insertOnConflictSkip": true,
|
|
107
|
+
"insertOnConflictWithoutTarget": true,
|
|
108
|
+
"lateral": true,
|
|
109
|
+
"lockNowait": true,
|
|
110
|
+
"lockOf": true,
|
|
111
|
+
"lockSkipLocked": true,
|
|
112
|
+
"returning": true,
|
|
113
|
+
"scalarList": true
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
extensions: {},
|
|
117
|
+
meta: {},
|
|
118
|
+
_generated: {
|
|
119
|
+
"warning": "⚠️ GENERATED FILE - DO NOT EDIT",
|
|
120
|
+
"message": "This file is automatically generated by \"prisma contract emit\".",
|
|
121
|
+
"regenerate": "To regenerate, run: prisma contract emit"
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Names shared by citext's contract, its migration, the head ref and the descriptor.
|
|
126
|
+
*/
|
|
127
|
+
const CITEXT_SPACE_ID = "citext";
|
|
128
|
+
const citextContractSpace = contractSpaceFromJson({
|
|
129
|
+
contractJson: contract_default,
|
|
130
|
+
migrations: [{
|
|
131
|
+
dirName: "20261029T1520_create_citext_extension",
|
|
132
|
+
metadata: migration_default,
|
|
133
|
+
ops: ops_default
|
|
134
|
+
}],
|
|
135
|
+
headRef: head_default
|
|
136
|
+
});
|
|
137
|
+
const citextControlPlaneHooks = { resolveIdentityValue: () => "''" };
|
|
138
|
+
const citextExtensionDescriptor = {
|
|
139
|
+
...citextPackMeta,
|
|
140
|
+
id: CITEXT_SPACE_ID,
|
|
141
|
+
contractSpace: citextContractSpace,
|
|
142
|
+
types: {
|
|
143
|
+
...citextPackMeta.types,
|
|
144
|
+
codecTypes: {
|
|
145
|
+
...citextPackMeta.types.codecTypes,
|
|
146
|
+
controlPlaneHooks: { [CITEXT_CODEC_ID]: citextControlPlaneHooks }
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
create: () => ({
|
|
150
|
+
familyId: "sql",
|
|
151
|
+
targetId: "postgres"
|
|
152
|
+
})
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
export { citextExtensionDescriptor, citextExtensionDescriptor as default };
|
|
156
|
+
|
|
157
|
+
//# sourceMappingURL=citext__control.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citext__control.mjs","names":[],"sources":["../../../../3-extensions/citext/dist/control.mjs"],"sourcesContent":["import { i as CITEXT_CODEC_ID } from \"./codecs-DG1lpGzH.mjs\";\nimport { t as citextPackMeta } from \"./descriptor-meta-DXd34CQ_.mjs\";\nimport { contractSpaceFromJson } from \"@internal/migration-tools/spaces\";\n//#region migrations/20261029T1520_create_citext_extension/migration.json\nvar migration_default = {\n\tfrom: null,\n\tto: \"62dbb8d4183a5d944c332f5122eb9cea170bb06fa21f7c01fc9093cd074ffbfa\",\n\tprovidedInvariants: [],\n\tcreatedAt: \"2026-10-29T15:20:57.730Z\",\n\tmigrationHash: \"1376f8d05d7abce29fb5bdffa13e6b3a7ee15aa50b08b81f5b8b013ecf46a816\"\n};\n//#endregion\n//#region migrations/20261029T1520_create_citext_extension/ops.json\nvar ops_default = [{\n\t\"id\": \"schema.public\",\n\t\"label\": \"Create schema \\\"public\\\"\",\n\t\"operationClass\": \"additive\",\n\t\"target\": { \"id\": \"postgres\" },\n\t\"precheck\": [],\n\t\"execute\": [{\n\t\t\"description\": \"Create schema \\\"public\\\"\",\n\t\t\"sql\": \"CREATE SCHEMA IF NOT EXISTS \\\"public\\\"\",\n\t\t\"params\": []\n\t}],\n\t\"postcheck\": []\n}, {\n\t\"id\": \"extension.citext\",\n\t\"label\": \"Create extension \\\"citext\\\"\",\n\t\"operationClass\": \"additive\",\n\t\"target\": {\n\t\t\"id\": \"postgres\",\n\t\t\"details\": {\n\t\t\t\"schema\": \"public\",\n\t\t\t\"objectType\": \"dependency\",\n\t\t\t\"name\": \"citext\"\n\t\t}\n\t},\n\t\"precheck\": [{\n\t\t\"description\": \"verify extension \\\"citext\\\" is not installed\",\n\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"citext\"],\n\t\t\"expectation\": {\n\t\t\t\"expects\": \"absent\",\n\t\t\t\"object\": \"extension \\\"citext\\\"\"\n\t\t}\n\t}],\n\t\"execute\": [{\n\t\t\"description\": \"create extension \\\"citext\\\"\",\n\t\t\"sql\": \"CREATE EXTENSION IF NOT EXISTS \\\"citext\\\" WITH SCHEMA \\\"public\\\"\"\n\t}],\n\t\"postcheck\": [{\n\t\t\"description\": \"confirm extension \\\"citext\\\" is installed\",\n\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"citext\"],\n\t\t\"expectation\": {\n\t\t\t\"expects\": \"present\",\n\t\t\t\"object\": \"extension \\\"citext\\\"\"\n\t\t}\n\t}]\n}];\n//#endregion\n//#region migrations/refs/head.json\nvar head_default = {\n\thash: \"62dbb8d4183a5d944c332f5122eb9cea170bb06fa21f7c01fc9093cd074ffbfa\",\n\tinvariants: []\n};\n//#endregion\n//#region src/contract.json\nvar contract_default = {\n\tschemaVersion: \"1\",\n\ttargetFamily: \"sql\",\n\ttarget: \"postgres\",\n\tprofileHash: \"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2\",\n\troots: {},\n\tdomain: { \"namespaces\": { \"public\": { \"models\": {} } } },\n\tstorage: {\n\t\t\"namespaces\": { \"public\": {\n\t\t\t\"entries\": {\n\t\t\t\t\"extension\": { \"citext\": {\n\t\t\t\t\t\"kind\": \"extension\",\n\t\t\t\t\t\"name\": \"citext\"\n\t\t\t\t} },\n\t\t\t\t\"table\": {}\n\t\t\t},\n\t\t\t\"id\": \"public\",\n\t\t\t\"kind\": \"postgres-schema\"\n\t\t} },\n\t\t\"storageHash\": \"62dbb8d4183a5d944c332f5122eb9cea170bb06fa21f7c01fc9093cd074ffbfa\",\n\t\t\"types\": { \"citext\": {\n\t\t\t\"codecId\": \"pg/citext@1\",\n\t\t\t\"dataType\": \"citext/citext\",\n\t\t\t\"kind\": \"codec-instance\"\n\t\t} }\n\t},\n\tcapabilities: {\n\t\t\"postgres\": {\n\t\t\t\"distinctOn\": true,\n\t\t\t\"forKeyShare\": true,\n\t\t\t\"forNoKeyUpdate\": true,\n\t\t\t\"jsonAgg\": true,\n\t\t\t\"lateral\": true,\n\t\t\t\"limit\": true,\n\t\t\t\"orderBy\": true,\n\t\t\t\"returning\": true\n\t\t},\n\t\t\"sql\": {\n\t\t\t\"checkConstraint\": true,\n\t\t\t\"defaultInInsert\": true,\n\t\t\t\"enums\": true,\n\t\t\t\"forShare\": true,\n\t\t\t\"forUpdate\": true,\n\t\t\t\"insertOnConflictSkip\": true,\n\t\t\t\"insertOnConflictWithoutTarget\": true,\n\t\t\t\"lateral\": true,\n\t\t\t\"lockNowait\": true,\n\t\t\t\"lockOf\": true,\n\t\t\t\"lockSkipLocked\": true,\n\t\t\t\"returning\": true,\n\t\t\t\"scalarList\": true\n\t\t}\n\t},\n\textensions: {},\n\tmeta: {},\n\t_generated: {\n\t\t\"warning\": \"⚠️ GENERATED FILE - DO NOT EDIT\",\n\t\t\"message\": \"This file is automatically generated by \\\"prisma contract emit\\\".\",\n\t\t\"regenerate\": \"To regenerate, run: prisma contract emit\"\n\t}\n};\n//#endregion\n//#region src/core/contract-space-constants.ts\n/**\n* Names shared by citext's contract, its migration, the head ref and the descriptor.\n*/\nconst CITEXT_SPACE_ID = \"citext\";\n//#endregion\n//#region src/exports/control.ts\nconst citextContractSpace = contractSpaceFromJson({\n\tcontractJson: contract_default,\n\tmigrations: [{\n\t\tdirName: \"20261029T1520_create_citext_extension\",\n\t\tmetadata: migration_default,\n\t\tops: ops_default\n\t}],\n\theadRef: head_default\n});\nconst citextControlPlaneHooks = { resolveIdentityValue: () => \"''\" };\nconst citextExtensionDescriptor = {\n\t...citextPackMeta,\n\tid: CITEXT_SPACE_ID,\n\tcontractSpace: citextContractSpace,\n\ttypes: {\n\t\t...citextPackMeta.types,\n\t\tcodecTypes: {\n\t\t\t...citextPackMeta.types.codecTypes,\n\t\t\tcontrolPlaneHooks: { [CITEXT_CODEC_ID]: citextControlPlaneHooks }\n\t\t}\n\t},\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\n//#endregion\nexport { citextExtensionDescriptor, citextExtensionDescriptor as default };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;AAIA,IAAI,oBAAoB;CACvB,MAAM;CACN,IAAI;CACJ,oBAAoB,CAAC;CACrB,WAAW;CACX,eAAe;AAChB;AAGA,IAAI,cAAc,CAAC;CAClB,MAAM;CACN,SAAS;CACT,kBAAkB;CAClB,UAAU,EAAE,MAAM,WAAW;CAC7B,YAAY,CAAC;CACb,WAAW,CAAC;EACX,eAAe;EACf,OAAO;EACP,UAAU,CAAC;CACZ,CAAC;CACD,aAAa,CAAC;AACf,GAAG;CACF,MAAM;CACN,SAAS;CACT,kBAAkB;CAClB,UAAU;EACT,MAAM;EACN,WAAW;GACV,UAAU;GACV,cAAc;GACd,QAAQ;EACT;CACD;CACA,YAAY,CAAC;EACZ,eAAe;EACf,OAAO;EACP,UAAU,CAAC,QAAQ;EACnB,eAAe;GACd,WAAW;GACX,UAAU;EACX;CACD,CAAC;CACD,WAAW,CAAC;EACX,eAAe;EACf,OAAO;CACR,CAAC;CACD,aAAa,CAAC;EACb,eAAe;EACf,OAAO;EACP,UAAU,CAAC,QAAQ;EACnB,eAAe;GACd,WAAW;GACX,UAAU;EACX;CACD,CAAC;AACF,CAAC;AAGD,IAAI,eAAe;CAClB,MAAM;CACN,YAAY,CAAC;AACd;AAGA,IAAI,mBAAmB;CACtB,eAAe;CACf,cAAc;CACd,QAAQ;CACR,aAAa;CACb,OAAO,CAAC;CACR,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,EAAE,EAAE;CACvD,SAAS;EACR,cAAc,EAAE,UAAU;GACzB,WAAW;IACV,aAAa,EAAE,UAAU;KACxB,QAAQ;KACR,QAAQ;IACT,EAAE;IACF,SAAS,CAAC;GACX;GACA,MAAM;GACN,QAAQ;EACT,EAAE;EACF,eAAe;EACf,SAAS,EAAE,UAAU;GACpB,WAAW;GACX,YAAY;GACZ,QAAQ;EACT,EAAE;CACH;CACA,cAAc;EACb,YAAY;GACX,cAAc;GACd,eAAe;GACf,kBAAkB;GAClB,WAAW;GACX,WAAW;GACX,SAAS;GACT,WAAW;GACX,aAAa;EACd;EACA,OAAO;GACN,mBAAmB;GACnB,mBAAmB;GACnB,SAAS;GACT,YAAY;GACZ,aAAa;GACb,wBAAwB;GACxB,iCAAiC;GACjC,WAAW;GACX,cAAc;GACd,UAAU;GACV,kBAAkB;GAClB,aAAa;GACb,cAAc;EACf;CACD;CACA,YAAY,CAAC;CACb,MAAM,CAAC;CACP,YAAY;EACX,WAAW;EACX,WAAW;EACX,cAAc;CACf;AACD;;;;AAMA,MAAM,kBAAkB;AAGxB,MAAM,sBAAsB,sBAAsB;CACjD,cAAc;CACd,YAAY,CAAC;EACZ,SAAS;EACT,UAAU;EACV,KAAK;CACN,CAAC;CACD,SAAS;AACV,CAAC;AACD,MAAM,0BAA0B,EAAE,4BAA4B,KAAK;AACnE,MAAM,4BAA4B;CACjC,GAAG;CACH,IAAI;CACJ,eAAe;CACf,OAAO;EACN,GAAG,eAAe;EAClB,YAAY;GACX,GAAG,eAAe,MAAM;GACxB,mBAAmB,GAAG,kBAAkB,wBAAwB;EACjE;CACD;CACA,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { t as CodecTypes } from "./codec-types-CO0wKCDo-BU51joVo.mjs";
|
|
2
|
+
//#region ../../../3-extensions/citext/dist/pack.d.mts
|
|
3
|
+
//#region src/core/descriptor-meta.d.ts
|
|
4
|
+
declare const citextPackMetaBase: {
|
|
5
|
+
readonly kind: "extension";
|
|
6
|
+
readonly id: "citext";
|
|
7
|
+
readonly familyId: "sql";
|
|
8
|
+
readonly targetId: "postgres";
|
|
9
|
+
readonly version: "0.0.1";
|
|
10
|
+
readonly authoring: {
|
|
11
|
+
readonly type: {
|
|
12
|
+
readonly citext: {
|
|
13
|
+
readonly Citext: {
|
|
14
|
+
readonly kind: "typeConstructor";
|
|
15
|
+
readonly inferred: true;
|
|
16
|
+
readonly documentation: "Text that PostgreSQL compares without regard to case, stored as citext.";
|
|
17
|
+
readonly output: {
|
|
18
|
+
readonly codecId: "pg/citext@1";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
readonly dataTypes: readonly import("@prisma/orm-framework/components/codec").DataType[];
|
|
25
|
+
readonly types: {
|
|
26
|
+
readonly codecTypes: {
|
|
27
|
+
readonly codecDescriptors: import("@prisma/orm-framework/components/codec").CodecDescriptor<unknown>[];
|
|
28
|
+
readonly import: {
|
|
29
|
+
readonly package: "@internal/extension-citext/codec-types";
|
|
30
|
+
readonly named: "CodecTypes";
|
|
31
|
+
readonly alias: "CitextTypes";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
declare const citextPackMeta: typeof citextPackMetaBase & {
|
|
37
|
+
readonly __codecTypes?: CodecTypes;
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { type CodecTypes, citextPackMeta as default };
|
|
41
|
+
//# sourceMappingURL=citext__pack.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citext__pack.d.mts","names":[],"sources":["../../../../3-extensions/citext/dist/pack.d.mts"],"mappings":";;;cAEc;WACH;WACA;WACA;WACA;WACA;WACA;aACE;eACE;iBACE;mBACE;mBACA;mBACA;mBACA;qBACE;;;;;;WAMV,mEAAmE;WACnE;aACE;eACE,iEAAiE;eACjE;iBACE;iBACA;iBACA;;;;;cAKH,uBAAuB;WAC1B,eAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SqlRuntimeExtensionDescriptor } from "@prisma/orm-family-sql/runtime";
|
|
2
|
+
import { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/query-lane-context";
|
|
3
|
+
//#region ../../../3-extensions/citext/dist/runtime.d.mts
|
|
4
|
+
//#region src/core/registry.d.ts
|
|
5
|
+
declare const citextCodecRegistry: CodecDescriptorRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/exports/runtime.d.ts
|
|
8
|
+
declare const citextRuntimeDescriptor: SqlRuntimeExtensionDescriptor<'postgres'>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { citextCodecRegistry, citextRuntimeDescriptor as default };
|
|
11
|
+
//# sourceMappingURL=citext__runtime.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citext__runtime.d.mts","names":[],"sources":["../../../../3-extensions/citext/dist/runtime.d.mts"],"mappings":";;;;cAGc,qBAAqB;;;cAGrB,yBAAyB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { n as citextPackMeta, t as citextCodecRegistry } from "./descriptor-meta-DXd34CQ_-C6qZXngm.mjs";
|
|
2
|
+
//#region ../../../3-extensions/citext/dist/runtime.mjs
|
|
3
|
+
const citextRuntimeDescriptor = {
|
|
4
|
+
kind: "extension",
|
|
5
|
+
id: citextPackMeta.id,
|
|
6
|
+
version: citextPackMeta.version,
|
|
7
|
+
dataTypes: citextPackMeta.dataTypes,
|
|
8
|
+
familyId: "sql",
|
|
9
|
+
targetId: "postgres",
|
|
10
|
+
types: { codecTypes: { codecDescriptors: Array.from(citextCodecRegistry.values()) } },
|
|
11
|
+
codecs: () => Array.from(citextCodecRegistry.values()),
|
|
12
|
+
create() {
|
|
13
|
+
return {
|
|
14
|
+
familyId: "sql",
|
|
15
|
+
targetId: "postgres"
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { citextCodecRegistry, citextRuntimeDescriptor as default };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=citext__runtime.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citext__runtime.mjs","names":[],"sources":["../../../../3-extensions/citext/dist/runtime.mjs"],"sourcesContent":["import { n as citextCodecRegistry, t as citextPackMeta } from \"./descriptor-meta-DXd34CQ_.mjs\";\n//#region src/exports/runtime.ts\nconst citextRuntimeDescriptor = {\n\tkind: \"extension\",\n\tid: citextPackMeta.id,\n\tversion: citextPackMeta.version,\n\tdataTypes: citextPackMeta.dataTypes,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\ttypes: { codecTypes: { codecDescriptors: Array.from(citextCodecRegistry.values()) } },\n\tcodecs: () => Array.from(citextCodecRegistry.values()),\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { citextCodecRegistry, citextRuntimeDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;AAEA,MAAM,0BAA0B;CAC/B,MAAM;CACN,IAAI,eAAe;CACnB,SAAS,eAAe;CACxB,WAAW,eAAe;CAC1B,UAAU;CACV,UAAU;CACV,OAAO,EAAE,YAAY,EAAE,kBAAkB,MAAM,KAAK,oBAAoB,OAAO,CAAC,EAAE,EAAE;CACpF,cAAc,MAAM,KAAK,oBAAoB,OAAO,CAAC;CACrD,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { n as CodecTypes$1 } from "./codecs-B-Q9cVKj-BVgKjiD-.mjs";
|
|
2
|
+
//#region ../../../3-extensions/citext/dist/codec-types-CO0wKCDo.d.mts
|
|
3
|
+
//#region src/types/codec-types.d.ts
|
|
4
|
+
type CodecTypes = CodecTypes$1;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { CodecTypes as t };
|
|
7
|
+
//# sourceMappingURL=codec-types-CO0wKCDo-BU51joVo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-types-CO0wKCDo-BU51joVo.d.mts","names":[],"sources":["../../../../3-extensions/citext/dist/codec-types-CO0wKCDo.d.mts"],"mappings":";;;KAEK,aAAa"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CodecCallContext, CodecImpl, CodecInstanceContext, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
2
|
+
import { PostgresCodecDescriptor } from "@prisma/orm-target-postgres/target/codec-descriptor";
|
|
3
|
+
import { JsonValue } from "@prisma/orm-framework/contract/types";
|
|
4
|
+
import { ExtractCodecTypes, ProjectionExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
5
|
+
//#region ../../../3-extensions/citext/dist/codecs-B-Q9cVKj.d.mts
|
|
6
|
+
//#region src/core/constants.d.ts
|
|
7
|
+
declare const CITEXT_CODEC_ID: "pg/citext@1";
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/core/codecs.d.ts
|
|
10
|
+
declare class CitextCodec extends CodecImpl<typeof CITEXT_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
|
|
11
|
+
toWire(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
12
|
+
fromWire(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
13
|
+
fromDataTypeValue(value: DataTypeValue<string>): string;
|
|
14
|
+
toDataTypeValue(input: string): DataTypeValue;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The traits are a text codec's. PostgreSQL compares, orders and matches citext values without regard to case.
|
|
18
|
+
*/
|
|
19
|
+
declare class CitextDescriptor extends PostgresCodecDescriptor<void> {
|
|
20
|
+
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
21
|
+
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
22
|
+
readonly codecId: "pg/citext@1";
|
|
23
|
+
readonly jsonType: "string";
|
|
24
|
+
readonly traits: readonly ["equality", "order", "textual"];
|
|
25
|
+
readonly enumRefusal = "A CHECK on a citext column compares without regard to case, so it admits a value that differs from a member only in case, and that value reads back as no member. No enum can use a citext codec; use a text enum instead.";
|
|
26
|
+
readonly paramsSchema: undefined;
|
|
27
|
+
renderValueLiteral(value: JsonValue): string | undefined;
|
|
28
|
+
factory(): (ctx: CodecInstanceContext) => CitextCodec;
|
|
29
|
+
}
|
|
30
|
+
declare const citextColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<CitextCodec, undefined>;
|
|
31
|
+
declare const codecDescriptorMap: {
|
|
32
|
+
readonly citext: CitextDescriptor;
|
|
33
|
+
};
|
|
34
|
+
type CodecTypes = ExtractCodecTypes<typeof codecDescriptorMap>;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { CodecTypes as n, citextColumn as r, CITEXT_CODEC_ID as t };
|
|
37
|
+
//# sourceMappingURL=codecs-B-Q9cVKj-BVgKjiD-.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-B-Q9cVKj-BVgKjiD-.d.mts","names":[],"sources":["../../../../3-extensions/citext/dist/codecs-B-Q9cVKj.d.mts"],"mappings":";;;;;;cAKc;;;cAGA,oBAAoB,iBAAiB;EACjD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,SAAS,cAAc,MAAM,mBAAmB;EAChD,kBAAkB,OAAO;EACzB,gBAAgB,gBAAgB;;;;;cAKpB,yBAAyB;YAC3B,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;WACA;WACA;EACT,mBAAmB,OAAO;EAC1B,YAAY,KAAK,yBAAyB;;cAE9B,mEAAmE,WAAW;cAC9E;WACH,QAAQ;;KAEd,aAAa,yBAAyB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { CodecImpl, castUnchanged, column, readJsonString, renderTsLiteral } from "@prisma/orm-framework/components/codec";
|
|
2
|
+
import { sqlDataType } from "@prisma/orm-family-sql/contract/data-type";
|
|
3
|
+
import { pgText } from "@prisma/orm-target-postgres/target/data-types";
|
|
4
|
+
import { PostgresCodecDescriptor, definePostgresCodecs } from "@prisma/orm-target-postgres/target/codec-descriptor";
|
|
5
|
+
//#region ../../../3-extensions/citext/dist/codecs-DG1lpGzH.mjs
|
|
6
|
+
const CITEXT_CODEC_ID = "pg/citext@1";
|
|
7
|
+
/**
|
|
8
|
+
* PostgreSQL's case-insensitive text. Its stored form is the text as written, and it takes a value written as text unchanged.
|
|
9
|
+
*/
|
|
10
|
+
const citextCitext = sqlDataType("citext/citext", {
|
|
11
|
+
texts: [{
|
|
12
|
+
text: "citext",
|
|
13
|
+
written: true,
|
|
14
|
+
catalog: true
|
|
15
|
+
}],
|
|
16
|
+
read: (json) => readJsonString("citext/citext", json),
|
|
17
|
+
casts: { [pgText.id]: castUnchanged }
|
|
18
|
+
});
|
|
19
|
+
const citextDataTypes = [citextCitext];
|
|
20
|
+
var CitextCodec = class extends CodecImpl {
|
|
21
|
+
async toWire(value, _ctx) {
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
async fromWire(wire, _ctx) {
|
|
25
|
+
return wire;
|
|
26
|
+
}
|
|
27
|
+
fromDataTypeValue(value) {
|
|
28
|
+
return value.value;
|
|
29
|
+
}
|
|
30
|
+
toDataTypeValue(input) {
|
|
31
|
+
return this.dataTypeValueOf(input);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The traits are a text codec's. PostgreSQL compares, orders and matches citext values without regard to case.
|
|
36
|
+
*/
|
|
37
|
+
var CitextDescriptor = class extends PostgresCodecDescriptor {
|
|
38
|
+
jsonProjection(expression) {
|
|
39
|
+
return expression;
|
|
40
|
+
}
|
|
41
|
+
dataType = citextCitext.id;
|
|
42
|
+
codecId = CITEXT_CODEC_ID;
|
|
43
|
+
jsonType = "string";
|
|
44
|
+
traits = [
|
|
45
|
+
"equality",
|
|
46
|
+
"order",
|
|
47
|
+
"textual"
|
|
48
|
+
];
|
|
49
|
+
enumRefusal = "A CHECK on a citext column compares without regard to case, so it admits a value that differs from a member only in case, and that value reads back as no member. No enum can use a citext codec; use a text enum instead.";
|
|
50
|
+
paramsSchema = void 0;
|
|
51
|
+
renderValueLiteral(value) {
|
|
52
|
+
return renderTsLiteral(value);
|
|
53
|
+
}
|
|
54
|
+
factory() {
|
|
55
|
+
return () => new CitextCodec(this, citextCitext);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const citextDescriptor = new CitextDescriptor();
|
|
59
|
+
const citextColumn = () => column(citextDescriptor.factory(), citextDescriptor.codecId, void 0);
|
|
60
|
+
const codecDescriptors = definePostgresCodecs(Object.values({ citext: citextDescriptor }));
|
|
61
|
+
//#endregion
|
|
62
|
+
export { codecDescriptors as i, citextColumn as n, citextDataTypes as r, CITEXT_CODEC_ID as t };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=codecs-DG1lpGzH-B64bhBWY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-DG1lpGzH-B64bhBWY.mjs","names":[],"sources":["../../../../3-extensions/citext/dist/codecs-DG1lpGzH.mjs"],"sourcesContent":["import { CodecImpl, castUnchanged, column, readJsonString, renderTsLiteral } from \"@internal/framework-components/codec\";\nimport { sqlDataType } from \"@internal/sql-contract/data-type\";\nimport { pgText } from \"@internal/target-postgres/data-types\";\nimport { PostgresCodecDescriptor, definePostgresCodecs } from \"@internal/target-postgres/codec-descriptor\";\n//#region src/core/constants.ts\nconst CITEXT_CODEC_ID = \"pg/citext@1\";\n//#endregion\n//#region src/core/data-types.ts\n/**\n* PostgreSQL's case-insensitive text. Its stored form is the text as written, and it takes a value written as text unchanged.\n*/\nconst citextCitext = sqlDataType(\"citext/citext\", {\n\ttexts: [{\n\t\ttext: \"citext\",\n\t\twritten: true,\n\t\tcatalog: true\n\t}],\n\tread: (json) => readJsonString(\"citext/citext\", json),\n\tcasts: { [pgText.id]: castUnchanged }\n});\nconst citextDataTypes = [citextCitext];\n//#endregion\n//#region src/core/codecs.ts\nvar CitextCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\n/**\n* The traits are a text codec's. PostgreSQL compares, orders and matches citext values without regard to case.\n*/\nvar CitextDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = citextCitext.id;\n\tcodecId = CITEXT_CODEC_ID;\n\tjsonType = \"string\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\tenumRefusal = \"A CHECK on a citext column compares without regard to case, so it admits a value that differs from a member only in case, and that value reads back as no member. No enum can use a citext codec; use a text enum instead.\";\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new CitextCodec(this, citextCitext);\n\t}\n};\nconst citextDescriptor = new CitextDescriptor();\nconst citextColumn = () => column(citextDescriptor.factory(), citextDescriptor.codecId, void 0);\nconst codecDescriptors = definePostgresCodecs(Object.values({ citext: citextDescriptor }));\n//#endregion\nexport { CITEXT_CODEC_ID as i, codecDescriptors as n, citextDataTypes as r, citextColumn as t };\n\n//# sourceMappingURL=codecs-DG1lpGzH.mjs.map"],"mappings":";;;;;AAKA,MAAM,kBAAkB;;;;AAMxB,MAAM,eAAe,YAAY,iBAAiB;CACjD,OAAO,CAAC;EACP,MAAM;EACN,SAAS;EACT,SAAS;CACV,CAAC;CACD,OAAO,SAAS,eAAe,iBAAiB,IAAI;CACpD,OAAO,GAAG,OAAO,KAAK,cAAc;AACrC,CAAC;AACD,MAAM,kBAAkB,CAAC,YAAY;AAGrC,IAAI,cAAc,cAAc,UAAU;CACzC,MAAM,OAAO,OAAO,MAAM;EACzB,OAAO;CACR;CACA,MAAM,SAAS,MAAM,MAAM;EAC1B,OAAO;CACR;CACA,kBAAkB,OAAO;EACxB,OAAO,MAAM;CACd;CACA,gBAAgB,OAAO;EACtB,OAAO,KAAK,gBAAgB,KAAK;CAClC;AACD;;;;AAIA,IAAI,mBAAmB,cAAc,wBAAwB;CAC5D,eAAe,YAAY;EAC1B,OAAO;CACR;CACA,WAAW,aAAa;CACxB,UAAU;CACV,WAAW;CACX,SAAS;EACR;EACA;EACA;CACD;CACA,cAAc;CACd,eAAe,KAAK;CACpB,mBAAmB,OAAO;EACzB,OAAO,gBAAgB,KAAK;CAC7B;CACA,UAAU;EACT,aAAa,IAAI,YAAY,MAAM,YAAY;CAChD;AACD;AACA,MAAM,mBAAmB,IAAI,iBAAiB;AAC9C,MAAM,qBAAqB,OAAO,iBAAiB,QAAQ,GAAG,iBAAiB,SAAS,KAAK,CAAC;AAC9F,MAAM,mBAAmB,qBAAqB,OAAO,OAAO,EAAE,QAAQ,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { i as codecDescriptors, r as citextDataTypes, t as CITEXT_CODEC_ID } from "./codecs-DG1lpGzH-B64bhBWY.mjs";
|
|
2
|
+
import { buildCodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/codec-descriptor-registry";
|
|
3
|
+
//#region ../../../3-extensions/citext/dist/descriptor-meta-DXd34CQ_.mjs
|
|
4
|
+
const citextAuthoringTypes = { citext: { Citext: {
|
|
5
|
+
kind: "typeConstructor",
|
|
6
|
+
inferred: true,
|
|
7
|
+
documentation: "Text that PostgreSQL compares without regard to case, stored as citext.",
|
|
8
|
+
output: { codecId: CITEXT_CODEC_ID }
|
|
9
|
+
} } };
|
|
10
|
+
const citextCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);
|
|
11
|
+
const citextPackMeta = {
|
|
12
|
+
kind: "extension",
|
|
13
|
+
id: "citext",
|
|
14
|
+
familyId: "sql",
|
|
15
|
+
targetId: "postgres",
|
|
16
|
+
version: "0.0.1",
|
|
17
|
+
authoring: { type: citextAuthoringTypes },
|
|
18
|
+
dataTypes: citextDataTypes,
|
|
19
|
+
types: { codecTypes: {
|
|
20
|
+
codecDescriptors: Array.from(citextCodecRegistry.values()),
|
|
21
|
+
import: {
|
|
22
|
+
package: "@internal/extension-citext/codec-types",
|
|
23
|
+
named: "CodecTypes",
|
|
24
|
+
alias: "CitextTypes"
|
|
25
|
+
}
|
|
26
|
+
} }
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { citextPackMeta as n, citextCodecRegistry as t };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=descriptor-meta-DXd34CQ_-C6qZXngm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptor-meta-DXd34CQ_-C6qZXngm.mjs","names":[],"sources":["../../../../3-extensions/citext/dist/descriptor-meta-DXd34CQ_.mjs"],"sourcesContent":["import { i as CITEXT_CODEC_ID, n as codecDescriptors, r as citextDataTypes } from \"./codecs-DG1lpGzH.mjs\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/authoring.ts\nconst citextAuthoringTypes = { citext: { Citext: {\n\tkind: \"typeConstructor\",\n\tinferred: true,\n\tdocumentation: \"Text that PostgreSQL compares without regard to case, stored as citext.\",\n\toutput: { codecId: CITEXT_CODEC_ID }\n} } };\n//#endregion\n//#region src/core/registry.ts\nconst citextCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\nconst citextPackMeta = {\n\tkind: \"extension\",\n\tid: \"citext\",\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion: \"0.0.1\",\n\tauthoring: { type: citextAuthoringTypes },\n\tdataTypes: citextDataTypes,\n\ttypes: { codecTypes: {\n\t\tcodecDescriptors: Array.from(citextCodecRegistry.values()),\n\t\timport: {\n\t\t\tpackage: \"@internal/extension-citext/codec-types\",\n\t\t\tnamed: \"CodecTypes\",\n\t\t\talias: \"CitextTypes\"\n\t\t}\n\t} }\n};\n//#endregion\nexport { citextCodecRegistry as n, citextPackMeta as t };\n\n//# sourceMappingURL=descriptor-meta-DXd34CQ_.mjs.map"],"mappings":";;;AAGA,MAAM,uBAAuB,EAAE,QAAQ,EAAE,QAAQ;CAChD,MAAM;CACN,UAAU;CACV,eAAe;CACf,QAAQ,EAAE,SAAS,gBAAgB;AACpC,EAAE,EAAE;AAGJ,MAAM,sBAAsB,6BAA6B,gBAAgB;AACzE,MAAM,iBAAiB;CACtB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV,SAAS;CACT,WAAW,EAAE,MAAM,qBAAqB;CACxC,WAAW;CACX,OAAO,EAAE,YAAY;EACpB,kBAAkB,MAAM,KAAK,oBAAoB,OAAO,CAAC;EACzD,QAAQ;GACP,SAAS;GACT,OAAO;GACP,OAAO;EACR;CACD,EAAE;AACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-postgres-contrib",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "8.0.0-rc.21-dev.23",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"description": "Packs for the trusted PostgreSQL contrib modules, such as citext, for Prisma 8",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"prisma-orm-extension"
|
|
10
|
+
],
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@prisma/orm-family-sql": "8.0.0-rc.21-dev.23",
|
|
16
|
+
"@prisma/orm-framework": "8.0.0-rc.21-dev.23",
|
|
17
|
+
"@prisma/orm-toolchain": "8.0.0-rc.21-dev.23"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@internal/extension-citext": "8.0.0-rc.21-dev.23",
|
|
21
|
+
"@repo/tsconfig": "8.0.0-rc.21-dev.23",
|
|
22
|
+
"@repo/tsdown": "8.0.0-rc.21-dev.23",
|
|
23
|
+
"@prisma/orm-target-postgres": "8.0.0-rc.21-dev.23",
|
|
24
|
+
"tsdown": "0.22.14",
|
|
25
|
+
"typescript": "5.9.3"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@prisma/orm-target-postgres": "8.0.0-rc.21-dev.23",
|
|
29
|
+
"typescript": ">=5.9"
|
|
30
|
+
},
|
|
31
|
+
"peerDependenciesMeta": {
|
|
32
|
+
"typescript": {
|
|
33
|
+
"optional": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"exports": {
|
|
37
|
+
"./citext/codec-types": "./dist/citext__codec-types.mjs",
|
|
38
|
+
"./citext/column-types": "./dist/citext__column-types.mjs",
|
|
39
|
+
"./citext/control": "./dist/citext__control.mjs",
|
|
40
|
+
"./citext/pack": "./dist/citext__pack.mjs",
|
|
41
|
+
"./citext/runtime": "./dist/citext__runtime.mjs",
|
|
42
|
+
"./package.json": "./package.json"
|
|
43
|
+
},
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "https://github.com/prisma/orm.git",
|
|
47
|
+
"directory": "packages/9-public/@prisma/orm-postgres-contrib"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsdown",
|
|
51
|
+
"lint": "biome check . --error-on-warnings",
|
|
52
|
+
"clean": "rm -rf dist src-gen"
|
|
53
|
+
}
|
|
6
54
|
}
|