-
Notifications
You must be signed in to change notification settings - Fork 32
/
completions.json
377 lines (377 loc) · 14 KB
/
completions.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
{
"primitiveTypes": [
{
"label": "String",
"documentation": "Variable length text"
},
{
"label": "Boolean",
"documentation": "True or false value"
},
{
"label": "Int",
"documentation": "Integer value"
},
{
"label": "Float",
"documentation": "Floating point number"
},
{
"label": "DateTime",
"documentation": "Timestamp"
},
{
"label": "Json",
"documentation": "A JSON object"
},
{
"label": "Bytes",
"documentation": ""
},
{
"label": "Decimal",
"documentation": "Decimal value"
},
{
"label": "BigInt",
"documentation": "Integer values that may be greater than 2^53"
},
{
"label": "Unsupported(\"\")",
"documentation": "An arbitrary database column type, for which Prisma has no syntax. Fields of type `Unsupported` work with Prisma Migrate and introspection, but are not exposed in Prisma Client.",
"fullSignature": "Unsupported(_ name: String)",
"params": [
{
"label": "name",
"documentation": "Name of the column type as expected by the underlying database, e.g. Unsupported(\"GEOGRAPHY(POINT,4326)\"). This string is not validated by Prisma Migrate and will be used by Prisma Migrate to generate the DDL statements to evolve the database schema. Prisma Introspect will overwrite this when re-introspecting if the type does not match."
}
]
}
],
"blockTypes": [
{
"label": "datasource",
"documentation": "The datasource block tells the schema where the models are backed."
},
{
"label": "generator",
"documentation": "Generator blocks configure which clients are generated and how they're generated. Language preferences and binary configuration will go in here."
},
{
"label": "model",
"documentation": "Models represent the entities of your application domain. They are defined using model blocks in the data model."
},
{
"label": "enum",
"documentation": "Enums are defined via the enum block. You can define enums in your data model if they're supported by the data source you use:\n• PostgreSQL: Supported\n• MySQL: Supported\n• MariaDB: Supported\n• SQLite: Not supported"
}
],
"dataSourceFields": [
{
"label": "provider",
"documentation": "Describes which data source connector to use. Can be one of the following built in datasource providers: `postgresql`, `mysql` or `sqlite`."
},
{
"label": "url",
"documentation": "Connection URL including authentication info. Each datasource provider documents the URL syntax. Most providers use the syntax provided by the database, [learn more](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-schema)."
},
{
"label": "shadowDatabaseUrl",
"documentation": "Connection URL including authentication info to use for Migrate's [shadow database](https://www.prisma.io/docs/concepts/components/prisma-migrate#shadow-database). Each datasource provider documents the URL syntax. Most providers use the syntax provided by the database."
}
],
"generatorFields": [
{
"label": "provider",
"documentation": "Describes which generator to use. This can point to a file that implements a generator or specify a built-in generator directly."
},
{
"label": "output",
"documentation": "Determines the location for the generated client, [learn more](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-schema)"
},
{
"label": "binaryTargets",
"documentation": "Specifies the OS on which the Prisma Client will run to ensure binary compatibility of the query engine."
},
{
"label": "previewFeatures",
"documentation": "Enables preview feature flags."
}
],
"blockAttributes": [
{
"label": "@@map(\"\")",
"documentation": "Maps a model name from the Prisma schema to a different table name.",
"fullSignature": "@@map(_ name: String)",
"params": [
{
"label": "name",
"documentation": "The name of the target database table."
}
]
},
{
"label": "@@id([])",
"documentation": "Defines a multi-field ID on the model.",
"fullSignature": "@@id(_ fields: FieldReference[])",
"params": [
{
"label": "fields",
"documentation": "A list of references."
}
]
},
{
"label": "@@unique([])",
"documentation": "Defines a compound unique constraint for the specified fields.",
"fullSignature": "@@unique(_ fields: FieldReference[])",
"params": [
{
"label": "fields",
"documentation": "A list of references."
}
]
},
{
"label": "@@index([])",
"documentation": "Defines an index on the model.",
"fullSignature": "@@index(_ fields: FieldReference[])",
"params": [
{
"label": "fields",
"documentation": "A list of references."
}
]
},
{
"label": "@@ignore",
"documentation": "A model with an `@@ignore` attribute can be kept in sync with the database schema using Prisma Migrate and Introspection, but won't be exposed in Prisma Client.",
"fullSignature": "@@ignore",
"params": []
}
],
"fieldAttributes": [
{
"label": "@id",
"fullSignature": "@id",
"documentation": "Defines a single-field ID on the model.",
"params": []
},
{
"label": "@unique",
"fullSignature": "@unique",
"documentation": "Defines a unique constraint for this field.",
"params": []
},
{
"label": "@map(\"\")",
"documentation": "Maps a field name from the Prisma schema to a different column name.",
"fullSignature": "@map(_ name: String)",
"params": [
{
"label": "name",
"documentation": "The name of the target database column."
}
]
},
{
"label": "@default()",
"documentation": "Defines a default value for this field. `@default` takes an expression as an argument.",
"fullSignature": "@default(_ expression: Expression)",
"params": [
{
"label": "expression",
"documentation": "An expression (e.g. `5`, `true`, `now()`)."
}
]
},
{
"label": "@relation()",
"documentation": "Defines meta information about the relation. [Learn more](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-schema/relations#the-relation-attribute).",
"fullSignature": "@relation(_ name: String?, fields: FieldReference[]?, references: FieldReference[]?)",
"params": [
{
"label": "name",
"documentation": "Defines the name of the relationship. In an m-n-relation, it also determines the name of the underlying relation table."
},
{
"label": "fields",
"documentation": "A list of field references of the *current* model."
},
{
"label": "references",
"documentation": "A list of field references of the model on *the other side of the relation*."
},
{
"label": "onDelete",
"documentation": "Specifies the action to perform when a referenced entry in the referenced model is being deleted."
},
{
"label": "onUpdate",
"documentation": "Specifies the action to perform when a referenced field in the referenced model is being updated to a new value."
}
]
},
{
"label": "@updatedAt",
"fullSignature": "@updatedAt",
"documentation": "Automatically stores the time when a record was last updated.",
"params": []
},
{
"label": "@ignore",
"fullSignature": "@ignore",
"documentation": "A field with an `@ignore` attribute can be kept in sync with the database schema using Prisma Migrate and Introspection, but won't be exposed in Prisma Client.",
"params": []
}
],
"relationArguments": [
{
"label": "references: []",
"fullSignature": "references: []",
"documentation": "A list of field references of the model on *the other side of the relation*.",
"params": []
},
{
"label": "fields: []",
"fullSignature": "fields: []",
"documentation": "A list of field references of the *current* model.",
"params": []
},
{
"label": "onDelete: ",
"fullSignature": "onDelete: Cascade | Restrict | NoAction | SetNull | SetDefault",
"documentation": "Specifies the action to perform when a referenced entry in the referenced model is being deleted, [learn more](https://www.prisma.io/docs/concepts/components/prisma-schema/relations/referential-actions).",
"params": [
{
"label": "Cascade",
"documentation": "Deleting a referenced record will trigger the deletion of referencing record."
},
{
"label": "Restrict",
"documentation": "Prevents the deletion if any referencing records exist."
},
{
"label": "NoAction",
"documentation": "Is similar to Restrict, the difference between the two is dependant on the database being used, [learn more](https://www.prisma.io/docs/concepts/components/prisma-schema/relations/referential-actions)."
},
{
"label": "SetNull",
"documentation": "The scalar field of the referenced object will be set to NULL."
},
{
"label": "SetDefault",
"documentation": "The scalar field of the referencing object will be set to the fields default value."
}
]
},
{
"label": "onUpdate: ",
"fullSignature": "onUpdate: Cascade | Restrict | NoAction | SetNull | SetDefault",
"documentation": "Specifies the action to perform when a referenced field in the referenced model is being updated to a new value, [learn more](https://www.prisma.io/docs/concepts/components/prisma-schema/relations/referential-actions).",
"params": [
{
"label": "Cascade",
"documentation": "Updates the relation scalar fields if the referenced scalar fields of the dependant record are updated."
},
{
"label": "Restrict",
"documentation": "Prevents the identifier of a referenced record from being changed."
},
{
"label": "NoAction",
"documentation": "Is similar to Restrict, the difference between the two is dependant on the database being used, [learn more](https://www.prisma.io/docs/concepts/components/prisma-schema/relations/referential-actions)."
},
{
"label": "SetNull",
"documentation": "When updating the identifier of a referenced object, the scalar fields of the referencing objects will be set to NULL."
},
{
"label": "SetDefault",
"documentation": "The scalar field of the referencing object will be set to the fields default value."
}
]
},
{
"label": "\"\"",
"fullSignature": "String",
"documentation": "Defines the name of the relationship. In an m-n-relation, it also determines the name of the underlying relation table.",
"params": []
},
{
"label": "name: ",
"fullSignature": "name: String",
"documentation": "Defines the name of the relationship. In an m-n-relation, it also determines the name of the underlying relation table.",
"params": []
}
],
"datasourceUrlArguments": [
{
"label": "\"\"",
"fullSignature": "\"\"",
"documentation": "Connection URL including authentication info. Each datasource provider documents the URL syntax. Most providers use the syntax provided by the database, [learn more](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-schema).",
"params": []
},
{
"label": "env()",
"fullSignature": "env(_ environmentVariable: string)",
"documentation": "Specifies a data source via an environment variable. When running a Prisma CLI command that needs the database connection URL (e.g. `prisma generate`), you need to make sure that the `DATABASE_URL` environment variable is set. One way to do so is by creating a `.env` file. Note that the file must be in the same directory as your schema.prisma file to automatically be picked up by the Prisma CLI.",
"params": [
{
"label": "environmentVariable",
"documentation": "The environment variable in which the database connection URL is stored."
}
]
}
],
"generatorProviders": [
{
"label": "prisma-client-js",
"documentation": "Built-in generator."
}
],
"generatorProviderArguments": [
{
"label": "\"\"",
"documentation": "Specifies a single provider."
}
],
"datasourceProviders": [
{
"label": "mysql",
"documentation": "Specifies a MySQL data source. Learn more about the MySQL data source connector [here](https://www.prisma.io/docs/reference/database-connectors/mysql)."
},
{
"label": "postgresql",
"documentation": "Specifies a PostGreSQL data source. Learn more about the PostgreSQL data source connector [here](https://www.prisma.io/docs/reference/database-connectors/postgresql)."
},
{
"label": "sqlite",
"documentation": "Specifies a SQLite data source. Learn more about the SQLite data source connector [here](https://www.prisma.io/docs/reference/database-connectors/sqlite)."
},
{
"label": "sqlserver",
"documentation": "Specifies a Microsoft SQL Server data source. Learn more about this connector [here](https://pris.ly/d/mssql-connector)"
}
],
"datasourceProviderArguments": [
{
"label": "[]",
"documentation": "Specifies multiple providers."
},
{
"label": "\"\"",
"documentation": "Specifies a single provider."
}
],
"previewFeaturesArguments": [
{
"label": "[]",
"documentation": "Enables preview feature flags."
},
{
"label": "\"\"",
"documentation": "Enables a preview feature flag."
}
]
}