@crvouga/mockingbird-service-postgres 3.2.0 → 3.4.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/CHANGELOG.md +17 -1
- package/COMPATIBILITY.md +35 -5
- package/README.md +219 -57
- package/compat/coverage.json +8 -7
- package/compat/divergences.json +37 -2
- package/compat/requirements.json +1 -1
- package/compat/sections/cat.ts +49 -0
- package/compat/sections/ddl.ts +11 -0
- package/compat/unsupported-register.json +0 -3
- package/dist/admin.js +4812 -987
- package/dist/admin.js.map +4 -4
- package/dist/api/database.d.ts +11 -0
- package/dist/ast/nodes.d.ts +43 -1
- package/dist/constraints/enforce.d.ts +2 -0
- package/dist/executor/alter-column.d.ts +27 -0
- package/dist/executor/comment.d.ts +4 -0
- package/dist/executor/ddl.d.ts +1 -2
- package/dist/executor/dml.d.ts +2 -0
- package/dist/executor/extensions.d.ts +11 -0
- package/dist/executor/maintenance.d.ts +25 -0
- package/dist/expressions/context.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3249 -549
- package/dist/index.js.map +4 -4
- package/dist/parser/parser.d.ts +9 -0
- package/dist/schema/catalog-extensions.d.ts +5 -0
- package/dist/schema/extensions.d.ts +33 -0
- package/dist/schema/index-catalog.d.ts +40 -0
- package/dist/schema/persistence.d.ts +32 -0
- package/dist/schema/storage.d.ts +22 -0
- package/dist/server.js +5390 -744
- package/dist/server.js.map +4 -4
- package/dist/sql/deparse-default.d.ts +12 -0
- package/dist/sql/deparse-index.d.ts +12 -2
- package/dist/sql/keywords.d.ts +6 -0
- package/dist/sql/ruleutils.d.ts +27 -0
- package/dist/storage/database-state.d.ts +51 -0
- package/dist/types/regnamespace.d.ts +23 -0
- package/dist/types/value.d.ts +2 -0
- package/dist/unstable.js +11520 -8875
- package/dist/unstable.js.map +4 -4
- package/dist/wire/cli.js +6445 -1260
- package/dist/wire/cli.js.map +4 -4
- package/dist/wire/cluster.d.ts +8 -0
- package/dist/wire/connection.d.ts +38 -0
- package/dist/wire/durable.d.ts +82 -0
- package/dist/wire/file-storage.d.ts +3 -0
- package/dist/wire/fleet.d.ts +210 -1
- package/dist/wire/index.d.ts +21 -1
- package/dist/wire/index.js +5383 -741
- package/dist/wire/index.js.map +4 -4
- package/dist/wire/startup.d.ts +36 -0
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** ErrorResponse fields of a rejected startup packet; the connection always ends with FATAL. */
|
|
2
|
+
export type StartupFailure = {
|
|
3
|
+
code: string;
|
|
4
|
+
message: string;
|
|
5
|
+
detail?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class StartupError extends Error {
|
|
9
|
+
readonly fields: StartupFailure;
|
|
10
|
+
constructor(fields: StartupFailure);
|
|
11
|
+
}
|
|
12
|
+
export type StartupSetting = {
|
|
13
|
+
name: string;
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* `pg_split_opts`: arguments are separated by whitespace; a backslash makes the next character
|
|
18
|
+
* literal (`\ ` is a space inside an argument, `\\` a backslash).
|
|
19
|
+
*/
|
|
20
|
+
export declare const splitOptions: (options: string) => string[];
|
|
21
|
+
/**
|
|
22
|
+
* Every setting a startup packet asks for, in the order PostgreSQL applies them: the `options`
|
|
23
|
+
* switches, then the parameters sent by name (which therefore win).
|
|
24
|
+
*/
|
|
25
|
+
export declare const startupSettings: (parameters: Readonly<Record<string, string>>) => StartupSetting[];
|
|
26
|
+
/**
|
|
27
|
+
* `SplitIdentifierString`: a comma-separated list of identifiers, each bare (folded to lower
|
|
28
|
+
* case) or double-quoted. Null when the list is malformed.
|
|
29
|
+
*/
|
|
30
|
+
export declare const splitIdentifierList: (raw: string) => string[] | null;
|
|
31
|
+
/**
|
|
32
|
+
* Check `settings` and write them into `session`, a copy of the database's settings. Returns the
|
|
33
|
+
* values that are now the session's reset defaults. A parameter the engine has no setting for
|
|
34
|
+
* is `42704`, the same rule its `SET` follows; names containing a dot are custom parameters.
|
|
35
|
+
*/
|
|
36
|
+
export declare const applyStartupSettings: (settings: readonly StartupSetting[], session: Map<string, string>) => Map<string, string>;
|
package/package.json
CHANGED