@vibeorm/schema 5.10.0 → 5.11.0
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/dist/capabilities.d.ts +22 -0
- package/dist/errors.d.ts +11 -0
- package/dist/index.js +11 -4
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/capabilities.d.ts
CHANGED
|
@@ -200,6 +200,28 @@ export type DialectCapabilities = {
|
|
|
200
200
|
* assignments change nothing. Without it `skipUnchanged` is refused.
|
|
201
201
|
*/
|
|
202
202
|
readonly upsertSkipUnchanged: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Carrier rows: under the `"join"` relation strategy, the lists, counts and
|
|
205
|
+
* aggregates below a to-one that several rows of one statement share are
|
|
206
|
+
* built and sent once per distinct target. The first row of each target
|
|
207
|
+
* carries them (window ordinals over the statement's rows) in a lateral
|
|
208
|
+
* gated on "this row is the carrier", and the dialect's planner must not
|
|
209
|
+
* run that lateral for the other rows (PostgreSQL: a One-Time Filter).
|
|
210
|
+
* Without it such a level nests on a level of few rows and loads by key
|
|
211
|
+
* after the statement otherwise.
|
|
212
|
+
*/
|
|
213
|
+
readonly carrierRows: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* A dictionary of shared lists: under the `"join"` relation strategy, the
|
|
216
|
+
* lists, counts and aggregates below a to-one that sits under a list level
|
|
217
|
+
* are built and sent once per distinct target of the whole statement. The
|
|
218
|
+
* statement keeps its rows in a common table expression, reads the targets'
|
|
219
|
+
* keys back out of the JSON it built for them, builds one entry per
|
|
220
|
+
* distinct key and returns the entries on its first row. Without it such a
|
|
221
|
+
* level nests on a level of few rows and loads by key after the statement
|
|
222
|
+
* otherwise.
|
|
223
|
+
*/
|
|
224
|
+
readonly sharedListDictionary: boolean;
|
|
203
225
|
};
|
|
204
226
|
export declare const POSTGRES_CAPABILITIES: DialectCapabilities;
|
|
205
227
|
export declare const SQLITE_CAPABILITIES: DialectCapabilities;
|
package/dist/errors.d.ts
CHANGED
|
@@ -30,6 +30,17 @@ export declare const VIBE_ERROR_CODES: readonly [
|
|
|
30
30
|
"VIBE_SCHEMA_INVALID",
|
|
31
31
|
/** Feature requested on a dialect that does not support it. */
|
|
32
32
|
"VIBE_UNSUPPORTED_CAPABILITY",
|
|
33
|
+
/**
|
|
34
|
+
* One value of a statement's result passed the size limit the server sets
|
|
35
|
+
* for a single value, so the server could not send the result.
|
|
36
|
+
* `meta.limit` names the limit: `"max_allowed_packet"` on MySQL (a server
|
|
37
|
+
* setting, 64 MB by default) or `"MaxAllocSize"` on PostgreSQL (1 GB,
|
|
38
|
+
* fixed). `meta.relation` names the relation whose payload it was, where
|
|
39
|
+
* the runtime knows it. The `"join"` relation strategy sends the lists of a
|
|
40
|
+
* relation level as one JSON value; the `"query"` strategy reads them as
|
|
41
|
+
* rows and has no such limit.
|
|
42
|
+
*/
|
|
43
|
+
"VIBE_RESULT_TOO_LARGE",
|
|
33
44
|
/** Generated client is stale relative to config/schema — re-run generate. */
|
|
34
45
|
"VIBE_STALE_CLIENT",
|
|
35
46
|
/** Configuration problem (vibeorm.config.ts, flags, env). */
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var VIBE_ERROR_CODES = [
|
|
|
10
10
|
"VIBE_DATA_INVALID",
|
|
11
11
|
"VIBE_SCHEMA_INVALID",
|
|
12
12
|
"VIBE_UNSUPPORTED_CAPABILITY",
|
|
13
|
+
"VIBE_RESULT_TOO_LARGE",
|
|
13
14
|
"VIBE_STALE_CLIENT",
|
|
14
15
|
"VIBE_CONFIG",
|
|
15
16
|
"VIBE_MIGRATION",
|
|
@@ -484,7 +485,9 @@ var POSTGRES_CAPABILITIES = Object.freeze({
|
|
|
484
485
|
groupingSets: "groupingSets",
|
|
485
486
|
rowCapture: true,
|
|
486
487
|
returningReadsJoinedSource: true,
|
|
487
|
-
upsertSkipUnchanged: true
|
|
488
|
+
upsertSkipUnchanged: true,
|
|
489
|
+
carrierRows: true,
|
|
490
|
+
sharedListDictionary: true
|
|
488
491
|
});
|
|
489
492
|
var SQLITE_CAPABILITIES = Object.freeze({
|
|
490
493
|
rowRuleAppendOnly: true,
|
|
@@ -532,7 +535,9 @@ var SQLITE_CAPABILITIES = Object.freeze({
|
|
|
532
535
|
groupingSets: "none",
|
|
533
536
|
rowCapture: false,
|
|
534
537
|
returningReadsJoinedSource: false,
|
|
535
|
-
upsertSkipUnchanged: true
|
|
538
|
+
upsertSkipUnchanged: true,
|
|
539
|
+
carrierRows: false,
|
|
540
|
+
sharedListDictionary: false
|
|
536
541
|
});
|
|
537
542
|
var MYSQL_CAPABILITIES = Object.freeze({
|
|
538
543
|
rowRuleAppendOnly: true,
|
|
@@ -580,7 +585,9 @@ var MYSQL_CAPABILITIES = Object.freeze({
|
|
|
580
585
|
groupingSets: "rollup",
|
|
581
586
|
rowCapture: false,
|
|
582
587
|
returningReadsJoinedSource: false,
|
|
583
|
-
upsertSkipUnchanged: true
|
|
588
|
+
upsertSkipUnchanged: true,
|
|
589
|
+
carrierRows: true,
|
|
590
|
+
sharedListDictionary: true
|
|
584
591
|
});
|
|
585
592
|
var DIALECT_CAPABILITIES = Object.freeze({
|
|
586
593
|
postgres: POSTGRES_CAPABILITIES,
|
|
@@ -5513,4 +5520,4 @@ export {
|
|
|
5513
5520
|
withSuggestion
|
|
5514
5521
|
};
|
|
5515
5522
|
|
|
5516
|
-
//# debugId=
|
|
5523
|
+
//# debugId=9496E5998F6FBDFD64756E2164756E21
|