encore.dev 1.46.13 → 1.46.15
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/api/mod.ts +19 -11
- package/app_meta.ts +12 -3
- package/dist/api/mod.d.ts +2 -2
- package/dist/api/mod.js.map +1 -1
- package/dist/app_meta.d.ts +4 -0
- package/dist/app_meta.js +4 -3
- package/dist/app_meta.js.map +1 -1
- package/dist/internal/runtime/napi/napi.cjs +1 -1
- package/dist/internal/runtime/napi/napi.d.cts +5 -0
- package/dist/storage/sqldb/database.d.ts +74 -1
- package/dist/storage/sqldb/database.js +143 -11
- package/dist/storage/sqldb/database.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/internal/runtime/napi/napi.cjs +1 -1
- package/internal/runtime/napi/napi.d.cts +5 -0
- package/package.json +1 -1
- package/storage/sqldb/database.ts +174 -12
package/api/mod.ts
CHANGED
|
@@ -25,7 +25,15 @@ export type Header<
|
|
|
25
25
|
> = TypeOrName extends string ? string : TypeOrName;
|
|
26
26
|
|
|
27
27
|
export type Query<
|
|
28
|
-
TypeOrName extends
|
|
28
|
+
TypeOrName extends
|
|
29
|
+
| string
|
|
30
|
+
| string[]
|
|
31
|
+
| number
|
|
32
|
+
| number[]
|
|
33
|
+
| boolean
|
|
34
|
+
| boolean[]
|
|
35
|
+
| Date
|
|
36
|
+
| Date[] = string,
|
|
29
37
|
Name extends string = ""
|
|
30
38
|
> = TypeOrName extends string ? string : TypeOrName;
|
|
31
39
|
|
|
@@ -151,21 +159,21 @@ export interface StreamOut<Response> {
|
|
|
151
159
|
|
|
152
160
|
export type StreamInOutHandlerFn<HandshakeData, Request, Response> =
|
|
153
161
|
HandshakeData extends void
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
162
|
+
? (stream: StreamInOut<Request, Response>) => Promise<void>
|
|
163
|
+
: (
|
|
164
|
+
data: HandshakeData,
|
|
165
|
+
stream: StreamInOut<Request, Response>
|
|
166
|
+
) => Promise<void>;
|
|
159
167
|
|
|
160
168
|
export type StreamOutHandlerFn<HandshakeData, Response> =
|
|
161
169
|
HandshakeData extends void
|
|
162
|
-
|
|
163
|
-
|
|
170
|
+
? (stream: StreamOut<Response>) => Promise<void>
|
|
171
|
+
: (data: HandshakeData, stream: StreamOut<Response>) => Promise<void>;
|
|
164
172
|
|
|
165
173
|
export type StreamInHandlerFn<HandshakeData, Request, Response> =
|
|
166
174
|
HandshakeData extends void
|
|
167
|
-
|
|
168
|
-
|
|
175
|
+
? (stream: StreamIn<Request>) => Promise<Response>
|
|
176
|
+
: (data: HandshakeData, stream: StreamIn<Request>) => Promise<Response>;
|
|
169
177
|
|
|
170
178
|
export type StreamInOut<Request, Response> = StreamIn<Request> &
|
|
171
179
|
StreamOut<Response>;
|
|
@@ -254,7 +262,7 @@ export interface StaticOptions {
|
|
|
254
262
|
|
|
255
263
|
/**
|
|
256
264
|
* Path to the file to serve when the requested file is not found.
|
|
257
|
-
* The path
|
|
265
|
+
* The path must be a relative path to within the calling file's directory.
|
|
258
266
|
*/
|
|
259
267
|
notFound?: string;
|
|
260
268
|
|
package/app_meta.ts
CHANGED
|
@@ -71,6 +71,14 @@ export interface BuildMeta {
|
|
|
71
71
|
export interface DeployMeta {
|
|
72
72
|
// The unique id of the deployment. Generated by the Encore Platform.
|
|
73
73
|
id: string;
|
|
74
|
+
|
|
75
|
+
// The services hosted by this deployment, keyed by the service name.
|
|
76
|
+
hostedServices: Record<string, HostedService>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface HostedService {
|
|
80
|
+
// The name of the service
|
|
81
|
+
name: string;
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
// Returns metadata about the running Encore application.
|
|
@@ -87,15 +95,16 @@ export function appMeta(): AppMeta {
|
|
|
87
95
|
environment: {
|
|
88
96
|
name: rt.environment.name,
|
|
89
97
|
type: envType(rt.environment.type),
|
|
90
|
-
cloud: cloudProvider(rt.environment.cloud)
|
|
98
|
+
cloud: cloudProvider(rt.environment.cloud)
|
|
91
99
|
},
|
|
92
100
|
build: {
|
|
93
101
|
revision: rt.build.revision,
|
|
94
|
-
uncommittedChanges: rt.build.uncommittedChanges
|
|
102
|
+
uncommittedChanges: rt.build.uncommittedChanges
|
|
95
103
|
},
|
|
96
104
|
deploy: {
|
|
97
105
|
id: rt.deploy.id,
|
|
98
|
-
|
|
106
|
+
hostedServices: rt.deploy.hostedServices
|
|
107
|
+
}
|
|
99
108
|
};
|
|
100
109
|
}
|
|
101
110
|
|
package/dist/api/mod.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { IterableSocket, IterableStream, Sink } from "./stream.js";
|
|
|
8
8
|
export { RawRequest, RawResponse } from "../internal/api/node_http.js";
|
|
9
9
|
export type Method = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "TRACE" | "CONNECT";
|
|
10
10
|
export type Header<TypeOrName extends string | number | boolean | Date = string, Name extends string = ""> = TypeOrName extends string ? string : TypeOrName;
|
|
11
|
-
export type Query<TypeOrName extends string | number | boolean | Date = string, Name extends string = ""> = TypeOrName extends string ? string : TypeOrName;
|
|
11
|
+
export type Query<TypeOrName extends string | string[] | number | number[] | boolean | boolean[] | Date | Date[] = string, Name extends string = ""> = TypeOrName extends string ? string : TypeOrName;
|
|
12
12
|
export interface APIOptions {
|
|
13
13
|
/**
|
|
14
14
|
* The HTTP method(s) to match for this endpoint.
|
|
@@ -147,7 +147,7 @@ export interface StaticOptions {
|
|
|
147
147
|
dir: string;
|
|
148
148
|
/**
|
|
149
149
|
* Path to the file to serve when the requested file is not found.
|
|
150
|
-
* The path
|
|
150
|
+
* The path must be a relative path to within the calling file's directory.
|
|
151
151
|
*/
|
|
152
152
|
notFound?: string;
|
|
153
153
|
/**
|
package/dist/api/mod.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../api/mod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C;AACxD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/app_meta.d.ts
CHANGED
package/dist/app_meta.js
CHANGED
|
@@ -13,15 +13,16 @@ export function appMeta() {
|
|
|
13
13
|
environment: {
|
|
14
14
|
name: rt.environment.name,
|
|
15
15
|
type: envType(rt.environment.type),
|
|
16
|
-
cloud: cloudProvider(rt.environment.cloud)
|
|
16
|
+
cloud: cloudProvider(rt.environment.cloud)
|
|
17
17
|
},
|
|
18
18
|
build: {
|
|
19
19
|
revision: rt.build.revision,
|
|
20
|
-
uncommittedChanges: rt.build.uncommittedChanges
|
|
20
|
+
uncommittedChanges: rt.build.uncommittedChanges
|
|
21
21
|
},
|
|
22
22
|
deploy: {
|
|
23
23
|
id: rt.deploy.id,
|
|
24
|
-
|
|
24
|
+
hostedServices: rt.deploy.hostedServices
|
|
25
|
+
}
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
return cached;
|
package/dist/app_meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_meta.js","sourceRoot":"","sources":["../app_meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"app_meta.js","sourceRoot":"","sources":["../app_meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAmFlD,yDAAyD;AACzD,EAAE;AACF,2DAA2D;AAC3D,oDAAoD;AACpD,MAAM,UAAU,OAAO;IACrB,qCAAqC;IACrC,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;QACpB,IAAI,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC;QAC9B,MAAM,GAAG;YACP,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,UAAU,EAAE,EAAE,CAAC,UAAU;YACzB,WAAW,EAAE;gBACX,IAAI,EAAE,EAA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OAAO,OAAO,CAAC;QACjB;YACE,OAAO,OAAO,CAAC;IACnB,CAAC;AACH,CAAC;AAED,6CAA6C;AAC7C,IAAI,MAAM,GAAmB,IAAI,CAAC"}
|
|
@@ -93,6 +93,7 @@ export interface DeleteOptions {
|
|
|
93
93
|
export interface DeployMeta {
|
|
94
94
|
id: string
|
|
95
95
|
deployTime: string
|
|
96
|
+
hostedServices: Record<string, HostedService>
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
export interface DownloadOptions {
|
|
@@ -126,6 +127,10 @@ export interface GatewayConfig {
|
|
|
126
127
|
auth?: (...args: any[]) => any
|
|
127
128
|
}
|
|
128
129
|
|
|
130
|
+
export interface HostedService {
|
|
131
|
+
name: string
|
|
132
|
+
}
|
|
133
|
+
|
|
129
134
|
export class ListEntry {
|
|
130
135
|
name: string
|
|
131
136
|
size: number
|
|
@@ -13,7 +13,7 @@ export interface SQLDatabaseConfig {
|
|
|
13
13
|
*/
|
|
14
14
|
export type Row = Record<string, any>;
|
|
15
15
|
/** Represents a type that can be used in query template literals */
|
|
16
|
-
export type Primitive = string | number | boolean | Buffer | Date | null;
|
|
16
|
+
export type Primitive = string | number | number[] | boolean | Buffer | Date | null | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* Constructing a new database object will result in Encore provisioning a database with
|
|
19
19
|
* that name and returning this object to represent it.
|
|
@@ -175,6 +175,50 @@ export declare class Connection {
|
|
|
175
175
|
* This produces the query: "SELECT id FROM users WHERE email=$1".
|
|
176
176
|
*/
|
|
177
177
|
query<T extends Row = Record<string, any>>(strings: TemplateStringsArray, ...params: Primitive[]): AsyncGenerator<T>;
|
|
178
|
+
/**
|
|
179
|
+
* rawQuery queries the database using a raw parametrised SQL query and parameters.
|
|
180
|
+
*
|
|
181
|
+
* It returns an async generator, that allows iterating over the results
|
|
182
|
+
* in a streaming fashion using `for await`.
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* const query = "SELECT id FROM users WHERE email=$1";
|
|
186
|
+
* const email = "foo@example.com";
|
|
187
|
+
* for await (const row of database.rawQuery(query, email)) {
|
|
188
|
+
* console.log(row);
|
|
189
|
+
* }
|
|
190
|
+
*
|
|
191
|
+
* @param query - The raw SQL query string.
|
|
192
|
+
* @param params - The parameters to be used in the query.
|
|
193
|
+
* @returns An async generator that yields rows from the query result.
|
|
194
|
+
*/
|
|
195
|
+
rawQuery<T extends Row = Record<string, any>>(query: string, ...params: Primitive[]): AsyncGenerator<T>;
|
|
196
|
+
/**
|
|
197
|
+
* queryAll queries the database using a template string, replacing your placeholders in the template
|
|
198
|
+
* with parametrised values without risking SQL injections.
|
|
199
|
+
*
|
|
200
|
+
* It returns an array of all results.
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
*
|
|
204
|
+
* const email = "foo@example.com";
|
|
205
|
+
* const result = database.queryAll`SELECT id FROM users WHERE email=${email}`
|
|
206
|
+
*
|
|
207
|
+
* This produces the query: "SELECT id FROM users WHERE email=$1".
|
|
208
|
+
*/
|
|
209
|
+
queryAll<T extends Row = Record<string, any>>(strings: TemplateStringsArray, ...params: Primitive[]): Promise<T[]>;
|
|
210
|
+
/**
|
|
211
|
+
* rawQueryAll queries the database using a raw parametrised SQL query and parameters.
|
|
212
|
+
*
|
|
213
|
+
* It returns an array of all results.
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
*
|
|
217
|
+
* const query = "SELECT id FROM users WHERE email=$1";
|
|
218
|
+
* const email = "foo@example.com";
|
|
219
|
+
* const rows = await database.rawQueryAll(query, email);
|
|
220
|
+
*/
|
|
221
|
+
rawQueryAll<T extends Row = Record<string, any>>(query: string, ...params: Primitive[]): Promise<T[]>;
|
|
178
222
|
/**
|
|
179
223
|
* queryRow is like query but returns only a single row.
|
|
180
224
|
* If the query selects no rows it returns null.
|
|
@@ -185,6 +229,22 @@ export declare class Connection {
|
|
|
185
229
|
* const result = database.queryRow`SELECT id FROM users WHERE email=${email}`
|
|
186
230
|
*/
|
|
187
231
|
queryRow<T extends Row = Record<string, any>>(strings: TemplateStringsArray, ...params: Primitive[]): Promise<T | null>;
|
|
232
|
+
/**
|
|
233
|
+
* rawQueryRow is like rawQuery but returns only a single row.
|
|
234
|
+
* If the query selects no rows, it returns null.
|
|
235
|
+
* Otherwise, it returns the first row and discards the rest.
|
|
236
|
+
*
|
|
237
|
+
* @example
|
|
238
|
+
* const query = "SELECT id FROM users WHERE email=$1";
|
|
239
|
+
* const email = "foo@example.com";
|
|
240
|
+
* const result = await database.rawQueryRow(query, email);
|
|
241
|
+
* console.log(result);
|
|
242
|
+
*
|
|
243
|
+
* @param query - The raw SQL query string.
|
|
244
|
+
* @param params - The parameters to be used in the query.
|
|
245
|
+
* @returns A promise that resolves to a single row or null.
|
|
246
|
+
*/
|
|
247
|
+
rawQueryRow<T extends Row = Record<string, any>>(query: string, ...params: Primitive[]): Promise<T | null>;
|
|
188
248
|
/**
|
|
189
249
|
* exec executes a query without returning any rows.
|
|
190
250
|
*
|
|
@@ -193,4 +253,17 @@ export declare class Connection {
|
|
|
193
253
|
* const result = database.exec`DELETE FROM users WHERE email=${email}`
|
|
194
254
|
*/
|
|
195
255
|
exec(strings: TemplateStringsArray, ...params: Primitive[]): Promise<void>;
|
|
256
|
+
/**
|
|
257
|
+
* rawExec executes a query without returning any rows.
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* const query = "DELETE FROM users WHERE email=$1";
|
|
261
|
+
* const email = "foo@example.com";
|
|
262
|
+
* await database.rawExec(query, email);
|
|
263
|
+
*
|
|
264
|
+
* @param query - The raw SQL query string.
|
|
265
|
+
* @param params - The parameters to be used in the query.
|
|
266
|
+
* @returns A promise that resolves when the query has been executed.
|
|
267
|
+
*/
|
|
268
|
+
rawExec(query: string, ...params: Primitive[]): Promise<void>;
|
|
196
269
|
}
|
|
@@ -47,7 +47,7 @@ export class SQLDatabase {
|
|
|
47
47
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
48
48
|
async *query(strings, ...params) {
|
|
49
49
|
const query = buildQuery(strings, params);
|
|
50
|
-
const args =
|
|
50
|
+
const args = buildQueryArgs(params);
|
|
51
51
|
const source = getCurrentRequest();
|
|
52
52
|
const cursor = await this.impl.query(query, args, source);
|
|
53
53
|
while (true) {
|
|
@@ -76,7 +76,7 @@ export class SQLDatabase {
|
|
|
76
76
|
* @returns An async generator that yields rows from the query result.
|
|
77
77
|
*/
|
|
78
78
|
async *rawQuery(query, ...params) {
|
|
79
|
-
const args =
|
|
79
|
+
const args = buildQueryArgs(params);
|
|
80
80
|
const source = getCurrentRequest();
|
|
81
81
|
const result = await this.impl.query(query, args, source);
|
|
82
82
|
while (true) {
|
|
@@ -103,7 +103,7 @@ export class SQLDatabase {
|
|
|
103
103
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
104
104
|
async queryAll(strings, ...params) {
|
|
105
105
|
const query = buildQuery(strings, params);
|
|
106
|
-
const args =
|
|
106
|
+
const args = buildQueryArgs(params);
|
|
107
107
|
const source = getCurrentRequest();
|
|
108
108
|
const cursor = await this.impl.query(query, args, source);
|
|
109
109
|
const result = [];
|
|
@@ -129,7 +129,7 @@ export class SQLDatabase {
|
|
|
129
129
|
*/
|
|
130
130
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
131
131
|
async rawQueryAll(query, ...params) {
|
|
132
|
-
const args =
|
|
132
|
+
const args = buildQueryArgs(params);
|
|
133
133
|
const source = getCurrentRequest();
|
|
134
134
|
const cursor = await this.impl.query(query, args, source);
|
|
135
135
|
const result = [];
|
|
@@ -154,7 +154,7 @@ export class SQLDatabase {
|
|
|
154
154
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
155
155
|
async queryRow(strings, ...params) {
|
|
156
156
|
const query = buildQuery(strings, params);
|
|
157
|
-
const args =
|
|
157
|
+
const args = buildQueryArgs(params);
|
|
158
158
|
const source = getCurrentRequest();
|
|
159
159
|
const result = await this.impl.query(query, args, source);
|
|
160
160
|
while (true) {
|
|
@@ -178,7 +178,7 @@ export class SQLDatabase {
|
|
|
178
178
|
* @returns A promise that resolves to a single row or null.
|
|
179
179
|
*/
|
|
180
180
|
async rawQueryRow(query, ...params) {
|
|
181
|
-
const args =
|
|
181
|
+
const args = buildQueryArgs(params);
|
|
182
182
|
const source = getCurrentRequest();
|
|
183
183
|
const result = await this.impl.query(query, args, source);
|
|
184
184
|
while (true) {
|
|
@@ -195,7 +195,7 @@ export class SQLDatabase {
|
|
|
195
195
|
*/
|
|
196
196
|
async exec(strings, ...params) {
|
|
197
197
|
const query = buildQuery(strings, params);
|
|
198
|
-
const args =
|
|
198
|
+
const args = buildQueryArgs(params);
|
|
199
199
|
const source = getCurrentRequest();
|
|
200
200
|
// Need to await the cursor to process any errors from things like
|
|
201
201
|
// unique constraint violations.
|
|
@@ -215,7 +215,7 @@ export class SQLDatabase {
|
|
|
215
215
|
* @returns A promise that resolves when the query has been executed.
|
|
216
216
|
*/
|
|
217
217
|
async rawExec(query, ...params) {
|
|
218
|
-
const args =
|
|
218
|
+
const args = buildQueryArgs(params);
|
|
219
219
|
const source = getCurrentRequest();
|
|
220
220
|
// Need to await the cursor to process any errors from things like
|
|
221
221
|
// unique constraint violations.
|
|
@@ -264,7 +264,7 @@ export class Connection {
|
|
|
264
264
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
265
265
|
async *query(strings, ...params) {
|
|
266
266
|
const query = buildQuery(strings, params);
|
|
267
|
-
const args =
|
|
267
|
+
const args = buildQueryArgs(params);
|
|
268
268
|
const source = getCurrentRequest();
|
|
269
269
|
const cursor = await this.impl.query(query, args, source);
|
|
270
270
|
while (true) {
|
|
@@ -275,6 +275,90 @@ export class Connection {
|
|
|
275
275
|
yield row.values();
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* rawQuery queries the database using a raw parametrised SQL query and parameters.
|
|
280
|
+
*
|
|
281
|
+
* It returns an async generator, that allows iterating over the results
|
|
282
|
+
* in a streaming fashion using `for await`.
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* const query = "SELECT id FROM users WHERE email=$1";
|
|
286
|
+
* const email = "foo@example.com";
|
|
287
|
+
* for await (const row of database.rawQuery(query, email)) {
|
|
288
|
+
* console.log(row);
|
|
289
|
+
* }
|
|
290
|
+
*
|
|
291
|
+
* @param query - The raw SQL query string.
|
|
292
|
+
* @param params - The parameters to be used in the query.
|
|
293
|
+
* @returns An async generator that yields rows from the query result.
|
|
294
|
+
*/
|
|
295
|
+
async *rawQuery(query, ...params) {
|
|
296
|
+
const args = buildQueryArgs(params);
|
|
297
|
+
const source = getCurrentRequest();
|
|
298
|
+
const result = await this.impl.query(query, args, source);
|
|
299
|
+
while (true) {
|
|
300
|
+
const row = await result.next();
|
|
301
|
+
if (row === null) {
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
yield row.values();
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* queryAll queries the database using a template string, replacing your placeholders in the template
|
|
309
|
+
* with parametrised values without risking SQL injections.
|
|
310
|
+
*
|
|
311
|
+
* It returns an array of all results.
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
*
|
|
315
|
+
* const email = "foo@example.com";
|
|
316
|
+
* const result = database.queryAll`SELECT id FROM users WHERE email=${email}`
|
|
317
|
+
*
|
|
318
|
+
* This produces the query: "SELECT id FROM users WHERE email=$1".
|
|
319
|
+
*/
|
|
320
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
321
|
+
async queryAll(strings, ...params) {
|
|
322
|
+
const query = buildQuery(strings, params);
|
|
323
|
+
const args = buildQueryArgs(params);
|
|
324
|
+
const source = getCurrentRequest();
|
|
325
|
+
const cursor = await this.impl.query(query, args, source);
|
|
326
|
+
const result = [];
|
|
327
|
+
while (true) {
|
|
328
|
+
const row = await cursor.next();
|
|
329
|
+
if (row === null) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
result.push(row.values());
|
|
333
|
+
}
|
|
334
|
+
return result;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* rawQueryAll queries the database using a raw parametrised SQL query and parameters.
|
|
338
|
+
*
|
|
339
|
+
* It returns an array of all results.
|
|
340
|
+
*
|
|
341
|
+
* @example
|
|
342
|
+
*
|
|
343
|
+
* const query = "SELECT id FROM users WHERE email=$1";
|
|
344
|
+
* const email = "foo@example.com";
|
|
345
|
+
* const rows = await database.rawQueryAll(query, email);
|
|
346
|
+
*/
|
|
347
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
348
|
+
async rawQueryAll(query, ...params) {
|
|
349
|
+
const args = buildQueryArgs(params);
|
|
350
|
+
const source = getCurrentRequest();
|
|
351
|
+
const cursor = await this.impl.query(query, args, source);
|
|
352
|
+
const result = [];
|
|
353
|
+
while (true) {
|
|
354
|
+
const row = await cursor.next();
|
|
355
|
+
if (row === null) {
|
|
356
|
+
break;
|
|
357
|
+
}
|
|
358
|
+
result.push(row.values());
|
|
359
|
+
}
|
|
360
|
+
return result;
|
|
361
|
+
}
|
|
278
362
|
/**
|
|
279
363
|
* queryRow is like query but returns only a single row.
|
|
280
364
|
* If the query selects no rows it returns null.
|
|
@@ -287,7 +371,31 @@ export class Connection {
|
|
|
287
371
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
288
372
|
async queryRow(strings, ...params) {
|
|
289
373
|
const query = buildQuery(strings, params);
|
|
290
|
-
const args =
|
|
374
|
+
const args = buildQueryArgs(params);
|
|
375
|
+
const source = getCurrentRequest();
|
|
376
|
+
const result = await this.impl.query(query, args, source);
|
|
377
|
+
while (true) {
|
|
378
|
+
const row = await result.next();
|
|
379
|
+
return row ? row.values() : null;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* rawQueryRow is like rawQuery but returns only a single row.
|
|
384
|
+
* If the query selects no rows, it returns null.
|
|
385
|
+
* Otherwise, it returns the first row and discards the rest.
|
|
386
|
+
*
|
|
387
|
+
* @example
|
|
388
|
+
* const query = "SELECT id FROM users WHERE email=$1";
|
|
389
|
+
* const email = "foo@example.com";
|
|
390
|
+
* const result = await database.rawQueryRow(query, email);
|
|
391
|
+
* console.log(result);
|
|
392
|
+
*
|
|
393
|
+
* @param query - The raw SQL query string.
|
|
394
|
+
* @param params - The parameters to be used in the query.
|
|
395
|
+
* @returns A promise that resolves to a single row or null.
|
|
396
|
+
*/
|
|
397
|
+
async rawQueryRow(query, ...params) {
|
|
398
|
+
const args = buildQueryArgs(params);
|
|
291
399
|
const source = getCurrentRequest();
|
|
292
400
|
const result = await this.impl.query(query, args, source);
|
|
293
401
|
while (true) {
|
|
@@ -304,7 +412,27 @@ export class Connection {
|
|
|
304
412
|
*/
|
|
305
413
|
async exec(strings, ...params) {
|
|
306
414
|
const query = buildQuery(strings, params);
|
|
307
|
-
const args =
|
|
415
|
+
const args = buildQueryArgs(params);
|
|
416
|
+
const source = getCurrentRequest();
|
|
417
|
+
// Need to await the cursor to process any errors from things like
|
|
418
|
+
// unique constraint violations.
|
|
419
|
+
let cur = await this.impl.query(query, args, source);
|
|
420
|
+
await cur.next();
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* rawExec executes a query without returning any rows.
|
|
424
|
+
*
|
|
425
|
+
* @example
|
|
426
|
+
* const query = "DELETE FROM users WHERE email=$1";
|
|
427
|
+
* const email = "foo@example.com";
|
|
428
|
+
* await database.rawExec(query, email);
|
|
429
|
+
*
|
|
430
|
+
* @param query - The raw SQL query string.
|
|
431
|
+
* @param params - The parameters to be used in the query.
|
|
432
|
+
* @returns A promise that resolves when the query has been executed.
|
|
433
|
+
*/
|
|
434
|
+
async rawExec(query, ...params) {
|
|
435
|
+
const args = buildQueryArgs(params);
|
|
308
436
|
const source = getCurrentRequest();
|
|
309
437
|
// Need to await the cursor to process any errors from things like
|
|
310
438
|
// unique constraint violations.
|
|
@@ -323,4 +451,8 @@ function buildQuery(strings, expr) {
|
|
|
323
451
|
// return queryWithComment(query, driverName);
|
|
324
452
|
return query;
|
|
325
453
|
}
|
|
454
|
+
function buildQueryArgs(params) {
|
|
455
|
+
// Convert undefined to null.
|
|
456
|
+
return new runtime.QueryArgs(params.map((p) => p ?? null));
|
|
457
|
+
}
|
|
326
458
|
//# sourceMappingURL=database.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.js","sourceRoot":"","sources":["../../../storage/sqldb/database.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AAWtD,MAAM,UAAU,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"database.js","sourceRoot":"","sources":["../../../storage/sqldb/database.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AAWtD,MAAM,UAAU,GAAG,SAAS,CAAC;AAmB7B;;;;;;GAMG;AACH,MAAM,OAAO,WAAW;IACL,IAAI,CAAsB;IAE3C;;OAEG;IACH,6DAA6D;IAC7D,YAAY,IAAY,EAAE,GAAuB;QAC/C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,KAAK,CAAsB,IAAyB;QACzD,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;IAChC,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,8DAA8D;IAC9D,KAAK,CAAC,CAAC,KAAK,CACV,OAA6B,EAC7B,GAAG,MAAmB;QAEtB,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,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AkE;QAClE,gCAAgC;QAChC,IAAI,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QACrD,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IACnB,CAAC;CACF;AAED,SAAS,UAAU,CAAC,OAA6B,EAAE,IAAiB;IAClE,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACxC,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;QAEpB,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YACpB,KAAK,IAAI,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;IAED,8CAA8C;IAC9C,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,cAAc,CAAC,MAAmB;IACzC,6BAA6B;IAC7B,OAAO,IAAI,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../internal/runtime/napi/napi.d.cts","../internal/runtime/mod.ts","../app_meta.ts","../internal/reqtrack/mod.ts","../req_meta.ts","../mod.ts","../api/error.ts","../auth/mod.ts","../api/gateway.ts","../api/stream.ts","../internal/api/node_http.ts","../internal/appinit/mod.ts","../api/mod.ts","../internal/utils/constraints.ts","../config/secrets.ts","../config/mod.ts","../internal/types/mod.ts","../cron/mod.ts","../internal/api/mod.ts","../internal/auth/mod.ts","../internal/codegen/api.ts","../internal/codegen/appinit.ts","../internal/codegen/auth.ts","../log/mod.ts","../pubsub/topic.ts","../pubsub/subscription.ts","../pubsub/mod.ts","../service/mod.ts","../storage/objects/error.ts","../storage/objects/refs.ts","../storage/objects/bucket.ts","../storage/objects/mod.ts","../storage/sqldb/database.ts","../storage/sqldb/mod.ts","../validate/mod.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"5044ead888ede76adbafbd49c7ae26269d0faeb2a8d9b6f0acbd3a43d721b8f3",{"version":"b29cdf4ae72c30b2ff554160827c71e1679fe83e90a29042748b0d8103039a08","signature":"cbdc3c62359f81de1fbfb1baf2f699990f36fe76dc3cf5e1defca9436cc09324"},{"version":"22c41cd969a3f3e8792047767157fd978e5bebf3d5edfe28263a60f094ea8960","signature":"f7a13afa5e66557c8b6fec4b7740e45c9ee0d0a3bdfc2419eeb21c9a214ab9b9"},{"version":"3d98f0260a5a40a6f959d2a39f19ebd884bebc9c4da1dc04b6c209ff85f24e50","signature":"0755afeffaa749b0a9d242ad328b06c1aa243dd7b10a5d38e13419150792c362"},{"version":"f9d25892460fa64a8f2cc8157302c92d9baca038eed3f7eeab97e13f57edf319","signature":"f26e98b31f15a8711b5979043b3aad76c426760f75a6b01eaa4804bd8b440f90"},{"version":"76a8bc704b721e967c752b55bebb16f3a2922cdb86e652c0c82759f5cb3771da","signature":"6167410fcb897c61d6300d81d28f4fee3a1fc8e6ebbcd5c7fe9512fc5f061807"},{"version":"617f1365fe604e85dbee1041c4934d88784dcbfd8777dbcd0e347d7839a58270","signature":"733cbad424aa2dc04c2834d17a1e224182f9abcf355bf06f84972aa71e7cf88c"},{"version":"a9cb80f47f8ce54e616d903da3861ed87b4cc2db54369f3229305923a8d01e9e","signature":"e8b08e8437d7f449a1020c78f523c80edca47d2a7bec765cf8adee01b1b9f4b9"},{"version":"13f690099f433bbd91d6e5af8df80005df0ac3e0c96dc632898ba11bdeef49ba","signature":"b462e4f1ebcae75c287fe499122527a25b1f04c5349f842158c005d758bde646"},{"version":"42635a6318ca25c0163c248e3ada7d04587a63fb8d041d1a4997ceca3f7c0668","signature":"721a28764abcb39316ef5df74ced9bbc981f21d1f865b55660fe3cfca1693822"},{"version":"483cbcd6c7ab7d449e6e130bbd314af689d893c28421bc6f4005d72fbea8ba1e","signature":"b44e1fa2517dcd005974748e4dc03c6be792f3566b794b9262e3da72062b0d74"},{"version":"f33c5635294c1c05544f7c4ba1a01ec0a110eb1bd5a1f92cb874330171d9d29e","signature":"4522a69d27c83624e0ed2ed27ffb8b88a07bd5f1817637ed97625fe0097007b5"},{"version":"61c0c7f6c3ce8018e46dd3dae04c0471d80f6af1df527bf556906cd0bfac64c5","signature":"caf3065fa123bbf442ddecad0a02b8e7b6c70df73d1cdb8a65e20c4213065069"},{"version":"dac2ecb2e2edf2f279c46f49b05e7dab73fb427a72f662cb24d7e06556087db7","signature":"89c544a3aa54a88d90bb7db6e318542d661fc79035b98700d2b7fe5d87bf7edb"},{"version":"c2358758c15d37b0f88a8ecf8cf38deb1fa45995871d2ecda2219ce8e365d2e2","signature":"d6557e5b8c49c27f990d378acb3a64cbd6291d1c97984d9d14510df1038f5d5b"},"68fe5d7ce4b0073cb450767c70847f6bd7ef0e6b099b26effd7651410fcc6206",{"version":"00018aadf3bf8aac3b94d086c07d837b006af7389fab4f52bba73083bdd02c51","signature":"15b3437374aea37541f405e45622294bc2e2631b749920676ae90a8a38ee0bce"},{"version":"d236effd859fb8663d2802ac5b16a8675645585380448c35a2b9297011db0186","signature":"f2582ae9e2b63ad8a9615655f2c136e1652436f177885cbf874d82a8c74f1d29"},{"version":"0144a40fd18f8ec246f120c1cc7e769ece97212a97b718e15e7f643d16c10fe8","signature":"5a51e785a9a472cad391424aef04ff8c1b68c965f5ee7574ab8cb2eed826e09f"},{"version":"65067ae33d9b54a877897cf19c04d11bbc642d23d5f9bddaacb6145b12b47252","signature":"484d6b91ba6f61784cbe40df3a8d4c894a8a6d9322147565c397c161d8b5e547"},"330fec351a0c9604ceaa9b098f5524875fae13b26e92a1f44555e67d12f87d35",{"version":"21c37ec4d5400f8d087cf808bc3fbeef1a332aa04a9ef3f6eff4de5addb9835b","signature":"017c1fe5d55daa40564b838ab60cea5e3981e494c20233bb1acc67276d1fb325"},{"version":"e8bf991b3662116671e3430bf519baaace5f6fff3da3fd8d0172ad28a31bc004","signature":"0bb4ce4d165639c83303131ec16c347188ae475335e48a4f0f0c5b09e19bebc7"},{"version":"99a7a53582f2a44381cfbd285fd0457e18116e4185fe93a8679b31a7253ae445","signature":"702197a1307efc488d7c2eed452627d3bfb63810e69e4dd7cecac4e289049e45"},{"version":"dbf57db930e4dbfd01de4fd5f4dd0e6a55ca8dd514da30338625f614bbeaeafb","signature":"44b947165ca58aaf83768a8e94b945478b41dfcdc825c6b8ef800cf6f2ece30c"},{"version":"cb3393ffd4b953e1cb0fb2864e10c9dad9fb5a6343934ab0d1d034d0a8c09b0e","signature":"0c85004226ac441a92d4362392ee26d2de029799313b538cd7fab4304deae5f0"},{"version":"d410d646a90393a2dae45c38a2f35a856729a2a0203ae36d8f5f2d81aade1cd3","signature":"c487a86e6b75c14a6ed499f45d75414dcc956efbc92e3f5897d3c92a4338db77"},{"version":"a437c68abc20686d0bc8cd7361b2c09fbe585ca0418a9caf9fae790f671e6001","signature":"320f693234a4a555bc4e9d95c6b635654d7f45509e0cba2a80399f159561ebbe"},{"version":"e2c00667d867cbe7c4768060d5ad118f26382014e77d5152a7ca19bb785a8318","signature":"4db84890c5109d833c1ba196cd64e7977563f7f78be83353a33bb83210c199aa"},{"version":"5bcec65f2fb8af374138af187b5f888aca35ab031c8feb80201adbc5e0a2aefa","signature":"b23931f1468456d6b8b1db174e4836103db947902a768e39845968258a6d3916"},{"version":"f514cd1b4c9e110432b838ef65d26f085280e8fd9b32f87fb4517b1a5be929d7","signature":"5ec028d6f993de709465fd41b61629ff10c299f9f923efd7b0a3c71600b4f43b"},"edd90ada0b85cba114401a4698ccb9bcd804c3b98f7b0e77ef572a54c03bc1c1",{"version":"02b27b187be537c81a610ac4b866c1bee29f0884248c4b01cdb36b10138d7251","signature":"eb5ed14298e66dec39e513e2aaaccb9e83e63606f24a194158553994997ce48a"},"21a0fc92666d4ffe9628ad155124bdcbafc6bef107dff77349604ec9fd8c178b",{"version":"3f91f7f42589831057c4a2371d8ee9d03330e22429def4965237abc26f204e3b","signature":"cf3e528b3814b219e2370197c67689b02099fc6f8df0740266e61a50fa03fcbc"},"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"7fd7fcbf021a5845bdd9397d4649fcf2fe17152d2098140fc723099a215d19ad","affectsGlobalScope":true},"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"a1d2988ad9d2aef7b9915a22b5e52c165c83a878f2851c35621409046bbe3c05","affectsGlobalScope":true},"bd3f5d05b6b5e4bfcea7739a45f3ffb4a7f4a3442ba7baf93e0200799285b8f1","4c775c2fccabf49483c03cd5e3673f87c1ffb6079d98e7b81089c3def79e29c6","8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"674168aa3db414ea0a19b2a31d901b2d49705c7a495e43ffdc96928543010f8c","affectsGlobalScope":true},"fe1fd6afdfe77976d4c702f3746c05fb05a7e566845c890e0e970fe9376d6a90","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","afb1701fd4be413a8a5a88df6befdd4510c30a31372c07a4138facf61594c66d","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"ea455cc68871b049bcecd9f56d4cf27b852d6dafd5e3b54468ca87cc11604e4d","affectsGlobalScope":true},"c07146dbbbd8b347241b5df250a51e48f2d7bef19b1e187b1a3f20c849988ff1","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"ae5507fc333d637dec9f37c6b3f4d423105421ea2820a64818de55db85214d66","affectsGlobalScope":true},{"version":"0666f4c99b8688c7be5956df8fecf5d1779d3b22f8f2a88258ae7072c7b6026f","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","54e854615c4eafbdd3fd7688bd02a3aafd0ccf0e87c98f79d3e9109f047ce6b8","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","7424817d5eb498771e6d1808d726ec38f75d2eaf3fa359edd5c0c540c52725c1","9a9634296cca836c3308923ba7aa094fa6ed76bb1e366d8ddcf5c65888ab1024",{"version":"bddce945d552a963c9733db106b17a25474eefcab7fc990157a2134ef55d4954","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","4b55240c2a03b2c71e98a7fc528b16136faa762211c92e781a01c37821915ea6","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"94c086dff8dbc5998749326bc69b520e8e4273fb5b7b58b50e0210e0885dfcde","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"ebe5facd12fd7745cda5f4bc3319f91fb29dc1f96e57e9c6f8b260a7cc5b67ee","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","37dc027f781c75f0f546e329cfac7cf92a6b289f42458f47a9adc25e516b6839",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447"],"root":[[58,92]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"module":7,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"fileIdsList":[[59,61,65],[63,64,66,67,68,69,70,144],[59],[72],[59,71],[74],[59,61,64],[59,144,149,159],[59,61,66,67,68,70,170,175],[61],[76],[69],[77],[59,128],[58],[59,61],[60,62],[93],[128],[129,134,162],[130,141,142,149,159,170],[130,131,141,149],[132,171],[133,134,142,150],[134,159,167],[135,137,141,149],[128,136],[137,138],[141],[139,141],[128,141],[141,142,143,159,170],[141,142,143,156,159,162],[126,129,175],[137,141,144,149,159,170],[141,142,144,145,149,159,167,170],[144,146,159,167,170],[93,94,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],[141,147],[148,170,175],[137,141,149,159],[150],[151],[128,152],[153,169,175],[154],[155],[141,156,157],[156,158,171,173],[129,141,159,160,161,162],[129,159,161],[159,160],[162],[163],[128,159],[141,165,166],[165,166],[134,149,159,167],[168],[149,169],[129,144,155,170],[134,171],[159,172],[148,173],[174],[129,134,141,143,152,159,170,173,175],[159,176],[103,107,170],[103,159,170],[98],[100,103,167,170],[149,167],[178],[98,178],[100,103,149,170],[95,96,99,102,129,141,159,170],[95,101],[99,103,129,162,170,178],[129,178],[119,129,178],[97,98,178],[103],[97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,118,120,121,122,123,124,125],[103,110,111],[101,103,111,112],[102],[95,98,103],[103,107,111,112],[107],[101,103,106,170],[95,100,101,103,107,110],[129,159],[98,103,119,129,175,178],[82,83],[59,61,74,82],[59,61,84],[70],[59,61,71,86,87],[86,87,88],[88],[59,61,71],[90],[65],[71],[59,66,70],[74,82],[84],[59,71,87]],"referencedMap":[[66,1],[70,2],[67,3],[60,3],[73,4],[72,5],[75,6],[76,7],[68,8],[69,9],[77,10],[78,11],[79,12],[80,13],[61,14],[59,15],[81,16],[63,17],[93,18],[94,18],[128,19],[129,20],[130,21],[131,22],[132,23],[133,24],[134,25],[135,26],[136,27],[137,28],[138,28],[140,29],[139,30],[141,31],[142,32],[143,33],[127,34],[144,35],[145,36],[146,37],[178,38],[147,39],[148,40],[149,41],[150,42],[151,43],[152,44],[153,45],[154,46],[155,47],[156,48],[157,48],[158,49],[159,50],[161,51],[160,52],[162,53],[163,54],[164,55],[165,56],[166,57],[167,58],[168,59],[169,60],[170,61],[171,62],[172,63],[173,64],[174,65],[175,66],[176,67],[110,68],[117,69],[109,68],[124,70],[101,71],[100,72],[123,73],[118,74],[121,75],[103,76],[102,77],[98,78],[97,79],[120,80],[99,81],[104,82],[108,82],[126,83],[125,82],[112,84],[113,85],[115,86],[111,87],[114,88],[119,73],[106,89],[107,90],[116,91],[96,92],[122,93],[84,94],[83,95],[82,96],[62,10],[85,97],[88,98],[86,3],[89,99],[87,100],[90,101],[91,102]],"exportedModulesMap":[[66,103],[70,2],[67,3],[73,4],[72,104],[75,6],[68,8],[69,105],[78,11],[79,12],[80,13],[61,3],[59,15],[81,3],[63,17],[93,18],[94,18],[128,19],[129,20],[130,21],[131,22],[132,23],[133,24],[134,25],[135,26],[136,27],[137,28],[138,28],[140,29],[139,30],[141,31],[142,32],[143,33],[127,34],[144,35],[145,36],[146,37],[178,38],[147,39],[148,40],[149,41],[150,42],[151,43],[152,44],[153,45],[154,46],[155,47],[156,48],[157,48],[158,49],[159,50],[161,51],[160,52],[162,53],[163,54],[164,55],[165,56],[166,57],[167,58],[168,59],[169,60],[170,61],[171,62],[172,63],[173,64],[174,65],[175,66],[176,67],[110,68],[117,69],[109,68],[124,70],[101,71],[100,72],[123,73],[118,74],[121,75],[103,76],[102,77],[98,78],[97,79],[120,80],[99,81],[104,82],[108,82],[126,83],[125,82],[112,84],[113,85],[115,86],[111,87],[114,88],[119,73],[106,89],[107,90],[116,91],[96,92],[122,93],[84,94],[83,106],[82,107],[85,97],[88,108],[86,3],[89,99],[87,100],[90,5],[91,102]],"semanticDiagnosticsPerFile":[64,66,70,67,60,65,73,72,75,76,68,69,77,78,79,80,61,59,58,74,71,81,63,93,94,128,129,130,131,132,133,134,135,136,137,138,140,139,141,142,143,127,177,144,145,146,178,147,148,149,150,151,152,153,154,155,156,157,158,159,161,160,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,56,57,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,8,47,44,45,46,48,9,49,50,51,54,52,53,1,55,110,117,109,124,101,100,123,118,121,103,102,98,97,120,99,104,105,108,95,126,125,112,113,115,111,114,119,106,107,116,96,122,84,83,82,62,85,88,86,89,87,90,91,92],"latestChangedDtsFile":"./validate/mod.d.ts"},"version":"5.3.3"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../internal/runtime/napi/napi.d.cts","../internal/runtime/mod.ts","../app_meta.ts","../internal/reqtrack/mod.ts","../req_meta.ts","../mod.ts","../api/error.ts","../auth/mod.ts","../api/gateway.ts","../api/stream.ts","../internal/api/node_http.ts","../internal/appinit/mod.ts","../api/mod.ts","../internal/utils/constraints.ts","../config/secrets.ts","../config/mod.ts","../internal/types/mod.ts","../cron/mod.ts","../internal/api/mod.ts","../internal/auth/mod.ts","../internal/codegen/api.ts","../internal/codegen/appinit.ts","../internal/codegen/auth.ts","../log/mod.ts","../pubsub/topic.ts","../pubsub/subscription.ts","../pubsub/mod.ts","../service/mod.ts","../storage/objects/error.ts","../storage/objects/refs.ts","../storage/objects/bucket.ts","../storage/objects/mod.ts","../storage/sqldb/database.ts","../storage/sqldb/mod.ts","../validate/mod.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"50576b36df1a9634fe01602ae0ed354d08bbb5f6487e18b7b2cf105e3ca8b23f",{"version":"b29cdf4ae72c30b2ff554160827c71e1679fe83e90a29042748b0d8103039a08","signature":"cbdc3c62359f81de1fbfb1baf2f699990f36fe76dc3cf5e1defca9436cc09324"},{"version":"f17996f5be3f76d86ddc425afaf5fb4af88e5ee0ab81464691643b209d1bb2ef","signature":"5d7927bb215f0480ded43c4064fa5b1fb429eaa1e6802963e3e15e071dac1de1"},{"version":"3d98f0260a5a40a6f959d2a39f19ebd884bebc9c4da1dc04b6c209ff85f24e50","signature":"0755afeffaa749b0a9d242ad328b06c1aa243dd7b10a5d38e13419150792c362"},{"version":"f9d25892460fa64a8f2cc8157302c92d9baca038eed3f7eeab97e13f57edf319","signature":"f26e98b31f15a8711b5979043b3aad76c426760f75a6b01eaa4804bd8b440f90"},{"version":"76a8bc704b721e967c752b55bebb16f3a2922cdb86e652c0c82759f5cb3771da","signature":"6167410fcb897c61d6300d81d28f4fee3a1fc8e6ebbcd5c7fe9512fc5f061807"},{"version":"617f1365fe604e85dbee1041c4934d88784dcbfd8777dbcd0e347d7839a58270","signature":"733cbad424aa2dc04c2834d17a1e224182f9abcf355bf06f84972aa71e7cf88c"},{"version":"a9cb80f47f8ce54e616d903da3861ed87b4cc2db54369f3229305923a8d01e9e","signature":"e8b08e8437d7f449a1020c78f523c80edca47d2a7bec765cf8adee01b1b9f4b9"},{"version":"13f690099f433bbd91d6e5af8df80005df0ac3e0c96dc632898ba11bdeef49ba","signature":"b462e4f1ebcae75c287fe499122527a25b1f04c5349f842158c005d758bde646"},{"version":"42635a6318ca25c0163c248e3ada7d04587a63fb8d041d1a4997ceca3f7c0668","signature":"721a28764abcb39316ef5df74ced9bbc981f21d1f865b55660fe3cfca1693822"},{"version":"483cbcd6c7ab7d449e6e130bbd314af689d893c28421bc6f4005d72fbea8ba1e","signature":"b44e1fa2517dcd005974748e4dc03c6be792f3566b794b9262e3da72062b0d74"},{"version":"f33c5635294c1c05544f7c4ba1a01ec0a110eb1bd5a1f92cb874330171d9d29e","signature":"4522a69d27c83624e0ed2ed27ffb8b88a07bd5f1817637ed97625fe0097007b5"},{"version":"46e99bc91dd7169864cea9510a2c0467c142192eeb26e3e95c3c70e4a82465d1","signature":"a7eace332da540809223eb8f82addb8b02dd6e740a6eb2fb26b19b0b0e150746"},{"version":"dac2ecb2e2edf2f279c46f49b05e7dab73fb427a72f662cb24d7e06556087db7","signature":"89c544a3aa54a88d90bb7db6e318542d661fc79035b98700d2b7fe5d87bf7edb"},{"version":"c2358758c15d37b0f88a8ecf8cf38deb1fa45995871d2ecda2219ce8e365d2e2","signature":"d6557e5b8c49c27f990d378acb3a64cbd6291d1c97984d9d14510df1038f5d5b"},"68fe5d7ce4b0073cb450767c70847f6bd7ef0e6b099b26effd7651410fcc6206",{"version":"00018aadf3bf8aac3b94d086c07d837b006af7389fab4f52bba73083bdd02c51","signature":"15b3437374aea37541f405e45622294bc2e2631b749920676ae90a8a38ee0bce"},{"version":"d236effd859fb8663d2802ac5b16a8675645585380448c35a2b9297011db0186","signature":"f2582ae9e2b63ad8a9615655f2c136e1652436f177885cbf874d82a8c74f1d29"},{"version":"0144a40fd18f8ec246f120c1cc7e769ece97212a97b718e15e7f643d16c10fe8","signature":"5a51e785a9a472cad391424aef04ff8c1b68c965f5ee7574ab8cb2eed826e09f"},{"version":"65067ae33d9b54a877897cf19c04d11bbc642d23d5f9bddaacb6145b12b47252","signature":"484d6b91ba6f61784cbe40df3a8d4c894a8a6d9322147565c397c161d8b5e547"},"330fec351a0c9604ceaa9b098f5524875fae13b26e92a1f44555e67d12f87d35",{"version":"21c37ec4d5400f8d087cf808bc3fbeef1a332aa04a9ef3f6eff4de5addb9835b","signature":"017c1fe5d55daa40564b838ab60cea5e3981e494c20233bb1acc67276d1fb325"},{"version":"e8bf991b3662116671e3430bf519baaace5f6fff3da3fd8d0172ad28a31bc004","signature":"0bb4ce4d165639c83303131ec16c347188ae475335e48a4f0f0c5b09e19bebc7"},{"version":"99a7a53582f2a44381cfbd285fd0457e18116e4185fe93a8679b31a7253ae445","signature":"702197a1307efc488d7c2eed452627d3bfb63810e69e4dd7cecac4e289049e45"},{"version":"dbf57db930e4dbfd01de4fd5f4dd0e6a55ca8dd514da30338625f614bbeaeafb","signature":"44b947165ca58aaf83768a8e94b945478b41dfcdc825c6b8ef800cf6f2ece30c"},{"version":"cb3393ffd4b953e1cb0fb2864e10c9dad9fb5a6343934ab0d1d034d0a8c09b0e","signature":"0c85004226ac441a92d4362392ee26d2de029799313b538cd7fab4304deae5f0"},{"version":"d410d646a90393a2dae45c38a2f35a856729a2a0203ae36d8f5f2d81aade1cd3","signature":"c487a86e6b75c14a6ed499f45d75414dcc956efbc92e3f5897d3c92a4338db77"},{"version":"a437c68abc20686d0bc8cd7361b2c09fbe585ca0418a9caf9fae790f671e6001","signature":"320f693234a4a555bc4e9d95c6b635654d7f45509e0cba2a80399f159561ebbe"},{"version":"e2c00667d867cbe7c4768060d5ad118f26382014e77d5152a7ca19bb785a8318","signature":"4db84890c5109d833c1ba196cd64e7977563f7f78be83353a33bb83210c199aa"},{"version":"5bcec65f2fb8af374138af187b5f888aca35ab031c8feb80201adbc5e0a2aefa","signature":"b23931f1468456d6b8b1db174e4836103db947902a768e39845968258a6d3916"},{"version":"f514cd1b4c9e110432b838ef65d26f085280e8fd9b32f87fb4517b1a5be929d7","signature":"5ec028d6f993de709465fd41b61629ff10c299f9f923efd7b0a3c71600b4f43b"},"edd90ada0b85cba114401a4698ccb9bcd804c3b98f7b0e77ef572a54c03bc1c1",{"version":"2383268a10b96c63866dcd2ea10d1607289d8111c94d7c54ed613dd80fe4bf44","signature":"f4d89b032939c4ad6bafd75a19ae31f02f061e8509bc2c5451070101dea3bec2"},"21a0fc92666d4ffe9628ad155124bdcbafc6bef107dff77349604ec9fd8c178b",{"version":"3f91f7f42589831057c4a2371d8ee9d03330e22429def4965237abc26f204e3b","signature":"cf3e528b3814b219e2370197c67689b02099fc6f8df0740266e61a50fa03fcbc"},"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"7fd7fcbf021a5845bdd9397d4649fcf2fe17152d2098140fc723099a215d19ad","affectsGlobalScope":true},"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"a1d2988ad9d2aef7b9915a22b5e52c165c83a878f2851c35621409046bbe3c05","affectsGlobalScope":true},"bd3f5d05b6b5e4bfcea7739a45f3ffb4a7f4a3442ba7baf93e0200799285b8f1","4c775c2fccabf49483c03cd5e3673f87c1ffb6079d98e7b81089c3def79e29c6","8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"674168aa3db414ea0a19b2a31d901b2d49705c7a495e43ffdc96928543010f8c","affectsGlobalScope":true},"fe1fd6afdfe77976d4c702f3746c05fb05a7e566845c890e0e970fe9376d6a90","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","afb1701fd4be413a8a5a88df6befdd4510c30a31372c07a4138facf61594c66d","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"ea455cc68871b049bcecd9f56d4cf27b852d6dafd5e3b54468ca87cc11604e4d","affectsGlobalScope":true},"c07146dbbbd8b347241b5df250a51e48f2d7bef19b1e187b1a3f20c849988ff1","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"ae5507fc333d637dec9f37c6b3f4d423105421ea2820a64818de55db85214d66","affectsGlobalScope":true},{"version":"0666f4c99b8688c7be5956df8fecf5d1779d3b22f8f2a88258ae7072c7b6026f","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","54e854615c4eafbdd3fd7688bd02a3aafd0ccf0e87c98f79d3e9109f047ce6b8","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","7424817d5eb498771e6d1808d726ec38f75d2eaf3fa359edd5c0c540c52725c1","9a9634296cca836c3308923ba7aa094fa6ed76bb1e366d8ddcf5c65888ab1024",{"version":"bddce945d552a963c9733db106b17a25474eefcab7fc990157a2134ef55d4954","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","4b55240c2a03b2c71e98a7fc528b16136faa762211c92e781a01c37821915ea6","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"94c086dff8dbc5998749326bc69b520e8e4273fb5b7b58b50e0210e0885dfcde","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"ebe5facd12fd7745cda5f4bc3319f91fb29dc1f96e57e9c6f8b260a7cc5b67ee","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","37dc027f781c75f0f546e329cfac7cf92a6b289f42458f47a9adc25e516b6839",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447"],"root":[[58,92]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"module":7,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9},"fileIdsList":[[59,61,65],[63,64,66,67,68,69,70,144],[59],[72],[59,71],[74],[59,61,64],[59,144,149,159],[59,61,66,67,68,70,170,175],[61],[76],[69],[77],[59,128],[58],[59,61],[60,62],[93],[128],[129,134,162],[130,141,142,149,159,170],[130,131,141,149],[132,171],[133,134,142,150],[134,159,167],[135,137,141,149],[128,136],[137,138],[141],[139,141],[128,141],[141,142,143,159,170],[141,142,143,156,159,162],[126,129,175],[137,141,144,149,159,170],[141,142,144,145,149,159,167,170],[144,146,159,167,170],[93,94,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],[141,147],[148,170,175],[137,141,149,159],[150],[151],[128,152],[153,169,175],[154],[155],[141,156,157],[156,158,171,173],[129,141,159,160,161,162],[129,159,161],[159,160],[162],[163],[128,159],[141,165,166],[165,166],[134,149,159,167],[168],[149,169],[129,144,155,170],[134,171],[159,172],[148,173],[174],[129,134,141,143,152,159,170,173,175],[159,176],[103,107,170],[103,159,170],[98],[100,103,167,170],[149,167],[178],[98,178],[100,103,149,170],[95,96,99,102,129,141,159,170],[95,101],[99,103,129,162,170,178],[129,178],[119,129,178],[97,98,178],[103],[97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,118,120,121,122,123,124,125],[103,110,111],[101,103,111,112],[102],[95,98,103],[103,107,111,112],[107],[101,103,106,170],[95,100,101,103,107,110],[129,159],[98,103,119,129,175,178],[82,83],[59,61,74,82],[59,61,84],[70],[59,61,71,86,87],[86,87,88],[88],[59,61,71],[90],[65],[71],[59,66,70],[74,82],[84],[59,71,87]],"referencedMap":[[66,1],[70,2],[67,3],[60,3],[73,4],[72,5],[75,6],[76,7],[68,8],[69,9],[77,10],[78,11],[79,12],[80,13],[61,14],[59,15],[81,16],[63,17],[93,18],[94,18],[128,19],[129,20],[130,21],[131,22],[132,23],[133,24],[134,25],[135,26],[136,27],[137,28],[138,28],[140,29],[139,30],[141,31],[142,32],[143,33],[127,34],[144,35],[145,36],[146,37],[178,38],[147,39],[148,40],[149,41],[150,42],[151,43],[152,44],[153,45],[154,46],[155,47],[156,48],[157,48],[158,49],[159,50],[161,51],[160,52],[162,53],[163,54],[164,55],[165,56],[166,57],[167,58],[168,59],[169,60],[170,61],[171,62],[172,63],[173,64],[174,65],[175,66],[176,67],[110,68],[117,69],[109,68],[124,70],[101,71],[100,72],[123,73],[118,74],[121,75],[103,76],[102,77],[98,78],[97,79],[120,80],[99,81],[104,82],[108,82],[126,83],[125,82],[112,84],[113,85],[115,86],[111,87],[114,88],[119,73],[106,89],[107,90],[116,91],[96,92],[122,93],[84,94],[83,95],[82,96],[62,10],[85,97],[88,98],[86,3],[89,99],[87,100],[90,101],[91,102]],"exportedModulesMap":[[66,103],[70,2],[67,3],[73,4],[72,104],[75,6],[68,8],[69,105],[78,11],[79,12],[80,13],[61,3],[59,15],[81,3],[63,17],[93,18],[94,18],[128,19],[129,20],[130,21],[131,22],[132,23],[133,24],[134,25],[135,26],[136,27],[137,28],[138,28],[140,29],[139,30],[141,31],[142,32],[143,33],[127,34],[144,35],[145,36],[146,37],[178,38],[147,39],[148,40],[149,41],[150,42],[151,43],[152,44],[153,45],[154,46],[155,47],[156,48],[157,48],[158,49],[159,50],[161,51],[160,52],[162,53],[163,54],[164,55],[165,56],[166,57],[167,58],[168,59],[169,60],[170,61],[171,62],[172,63],[173,64],[174,65],[175,66],[176,67],[110,68],[117,69],[109,68],[124,70],[101,71],[100,72],[123,73],[118,74],[121,75],[103,76],[102,77],[98,78],[97,79],[120,80],[99,81],[104,82],[108,82],[126,83],[125,82],[112,84],[113,85],[115,86],[111,87],[114,88],[119,73],[106,89],[107,90],[116,91],[96,92],[122,93],[84,94],[83,106],[82,107],[85,97],[88,108],[86,3],[89,99],[87,100],[90,5],[91,102]],"semanticDiagnosticsPerFile":[64,66,70,67,60,65,73,72,75,76,68,69,77,78,79,80,61,59,58,74,71,81,63,93,94,128,129,130,131,132,133,134,135,136,137,138,140,139,141,142,143,127,177,144,145,146,178,147,148,149,150,151,152,153,154,155,156,157,158,159,161,160,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,56,57,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,8,47,44,45,46,48,9,49,50,51,54,52,53,1,55,110,117,109,124,101,100,123,118,121,103,102,98,97,120,99,104,105,108,95,126,125,112,113,115,111,114,119,106,107,116,96,122,84,83,82,62,85,88,86,89,87,90,91,92],"latestChangedDtsFile":"./validate/mod.d.ts"},"version":"5.3.3"}
|
|
@@ -93,6 +93,7 @@ export interface DeleteOptions {
|
|
|
93
93
|
export interface DeployMeta {
|
|
94
94
|
id: string
|
|
95
95
|
deployTime: string
|
|
96
|
+
hostedServices: Record<string, HostedService>
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
export interface DownloadOptions {
|
|
@@ -126,6 +127,10 @@ export interface GatewayConfig {
|
|
|
126
127
|
auth?: (...args: any[]) => any
|
|
127
128
|
}
|
|
128
129
|
|
|
130
|
+
export interface HostedService {
|
|
131
|
+
name: string
|
|
132
|
+
}
|
|
133
|
+
|
|
129
134
|
export class ListEntry {
|
|
130
135
|
name: string
|
|
131
136
|
size: number
|
package/package.json
CHANGED
|
@@ -19,7 +19,15 @@ const driverName = "node-pg";
|
|
|
19
19
|
export type Row = Record<string, any>;
|
|
20
20
|
|
|
21
21
|
/** Represents a type that can be used in query template literals */
|
|
22
|
-
export type Primitive =
|
|
22
|
+
export type Primitive =
|
|
23
|
+
| string
|
|
24
|
+
| number
|
|
25
|
+
| number[]
|
|
26
|
+
| boolean
|
|
27
|
+
| Buffer
|
|
28
|
+
| Date
|
|
29
|
+
| null
|
|
30
|
+
| undefined;
|
|
23
31
|
|
|
24
32
|
/**
|
|
25
33
|
* Constructing a new database object will result in Encore provisioning a database with
|
|
@@ -74,7 +82,7 @@ export class SQLDatabase {
|
|
|
74
82
|
...params: Primitive[]
|
|
75
83
|
): AsyncGenerator<T> {
|
|
76
84
|
const query = buildQuery(strings, params);
|
|
77
|
-
const args =
|
|
85
|
+
const args = buildQueryArgs(params);
|
|
78
86
|
const source = getCurrentRequest();
|
|
79
87
|
const cursor = await this.impl.query(query, args, source);
|
|
80
88
|
while (true) {
|
|
@@ -107,7 +115,7 @@ export class SQLDatabase {
|
|
|
107
115
|
query: string,
|
|
108
116
|
...params: Primitive[]
|
|
109
117
|
): AsyncGenerator<T> {
|
|
110
|
-
const args =
|
|
118
|
+
const args = buildQueryArgs(params);
|
|
111
119
|
const source = getCurrentRequest();
|
|
112
120
|
const result = await this.impl.query(query, args, source);
|
|
113
121
|
while (true) {
|
|
@@ -139,7 +147,7 @@ export class SQLDatabase {
|
|
|
139
147
|
...params: Primitive[]
|
|
140
148
|
): Promise<T[]> {
|
|
141
149
|
const query = buildQuery(strings, params);
|
|
142
|
-
const args =
|
|
150
|
+
const args = buildQueryArgs(params);
|
|
143
151
|
const source = getCurrentRequest();
|
|
144
152
|
const cursor = await this.impl.query(query, args, source);
|
|
145
153
|
const result: T[] = [];
|
|
@@ -170,7 +178,7 @@ export class SQLDatabase {
|
|
|
170
178
|
query: string,
|
|
171
179
|
...params: Primitive[]
|
|
172
180
|
): Promise<T[]> {
|
|
173
|
-
const args =
|
|
181
|
+
const args = buildQueryArgs(params);
|
|
174
182
|
const source = getCurrentRequest();
|
|
175
183
|
const cursor = await this.impl.query(query, args, source);
|
|
176
184
|
const result: T[] = [];
|
|
@@ -200,7 +208,7 @@ export class SQLDatabase {
|
|
|
200
208
|
...params: Primitive[]
|
|
201
209
|
): Promise<T | null> {
|
|
202
210
|
const query = buildQuery(strings, params);
|
|
203
|
-
const args =
|
|
211
|
+
const args = buildQueryArgs(params);
|
|
204
212
|
const source = getCurrentRequest();
|
|
205
213
|
const result = await this.impl.query(query, args, source);
|
|
206
214
|
while (true) {
|
|
@@ -228,7 +236,7 @@ export class SQLDatabase {
|
|
|
228
236
|
query: string,
|
|
229
237
|
...params: Primitive[]
|
|
230
238
|
): Promise<T | null> {
|
|
231
|
-
const args =
|
|
239
|
+
const args = buildQueryArgs(params);
|
|
232
240
|
const source = getCurrentRequest();
|
|
233
241
|
const result = await this.impl.query(query, args, source);
|
|
234
242
|
while (true) {
|
|
@@ -249,7 +257,7 @@ export class SQLDatabase {
|
|
|
249
257
|
...params: Primitive[]
|
|
250
258
|
): Promise<void> {
|
|
251
259
|
const query = buildQuery(strings, params);
|
|
252
|
-
const args =
|
|
260
|
+
const args = buildQueryArgs(params);
|
|
253
261
|
const source = getCurrentRequest();
|
|
254
262
|
|
|
255
263
|
// Need to await the cursor to process any errors from things like
|
|
@@ -271,7 +279,7 @@ export class SQLDatabase {
|
|
|
271
279
|
* @returns A promise that resolves when the query has been executed.
|
|
272
280
|
*/
|
|
273
281
|
async rawExec(query: string, ...params: Primitive[]): Promise<void> {
|
|
274
|
-
const args =
|
|
282
|
+
const args = buildQueryArgs(params);
|
|
275
283
|
const source = getCurrentRequest();
|
|
276
284
|
|
|
277
285
|
// Need to await the cursor to process any errors from things like
|
|
@@ -329,7 +337,7 @@ export class Connection {
|
|
|
329
337
|
...params: Primitive[]
|
|
330
338
|
): AsyncGenerator<T> {
|
|
331
339
|
const query = buildQuery(strings, params);
|
|
332
|
-
const args =
|
|
340
|
+
const args = buildQueryArgs(params);
|
|
333
341
|
const source = getCurrentRequest();
|
|
334
342
|
const cursor = await this.impl.query(query, args, source);
|
|
335
343
|
while (true) {
|
|
@@ -341,6 +349,105 @@ export class Connection {
|
|
|
341
349
|
}
|
|
342
350
|
}
|
|
343
351
|
|
|
352
|
+
/**
|
|
353
|
+
* rawQuery queries the database using a raw parametrised SQL query and parameters.
|
|
354
|
+
*
|
|
355
|
+
* It returns an async generator, that allows iterating over the results
|
|
356
|
+
* in a streaming fashion using `for await`.
|
|
357
|
+
*
|
|
358
|
+
* @example
|
|
359
|
+
* const query = "SELECT id FROM users WHERE email=$1";
|
|
360
|
+
* const email = "foo@example.com";
|
|
361
|
+
* for await (const row of database.rawQuery(query, email)) {
|
|
362
|
+
* console.log(row);
|
|
363
|
+
* }
|
|
364
|
+
*
|
|
365
|
+
* @param query - The raw SQL query string.
|
|
366
|
+
* @param params - The parameters to be used in the query.
|
|
367
|
+
* @returns An async generator that yields rows from the query result.
|
|
368
|
+
*/
|
|
369
|
+
async *rawQuery<T extends Row = Record<string, any>>(
|
|
370
|
+
query: string,
|
|
371
|
+
...params: Primitive[]
|
|
372
|
+
): AsyncGenerator<T> {
|
|
373
|
+
const args = buildQueryArgs(params);
|
|
374
|
+
const source = getCurrentRequest();
|
|
375
|
+
const result = await this.impl.query(query, args, source);
|
|
376
|
+
while (true) {
|
|
377
|
+
const row = await result.next();
|
|
378
|
+
if (row === null) {
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
yield row.values() as T;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* queryAll queries the database using a template string, replacing your placeholders in the template
|
|
388
|
+
* with parametrised values without risking SQL injections.
|
|
389
|
+
*
|
|
390
|
+
* It returns an array of all results.
|
|
391
|
+
*
|
|
392
|
+
* @example
|
|
393
|
+
*
|
|
394
|
+
* const email = "foo@example.com";
|
|
395
|
+
* const result = database.queryAll`SELECT id FROM users WHERE email=${email}`
|
|
396
|
+
*
|
|
397
|
+
* This produces the query: "SELECT id FROM users WHERE email=$1".
|
|
398
|
+
*/
|
|
399
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
400
|
+
async queryAll<T extends Row = Record<string, any>>(
|
|
401
|
+
strings: TemplateStringsArray,
|
|
402
|
+
...params: Primitive[]
|
|
403
|
+
): Promise<T[]> {
|
|
404
|
+
const query = buildQuery(strings, params);
|
|
405
|
+
const args = buildQueryArgs(params);
|
|
406
|
+
const source = getCurrentRequest();
|
|
407
|
+
const cursor = await this.impl.query(query, args, source);
|
|
408
|
+
const result: T[] = [];
|
|
409
|
+
while (true) {
|
|
410
|
+
const row = await cursor.next();
|
|
411
|
+
if (row === null) {
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
result.push(row.values() as T);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
return result;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* rawQueryAll queries the database using a raw parametrised SQL query and parameters.
|
|
422
|
+
*
|
|
423
|
+
* It returns an array of all results.
|
|
424
|
+
*
|
|
425
|
+
* @example
|
|
426
|
+
*
|
|
427
|
+
* const query = "SELECT id FROM users WHERE email=$1";
|
|
428
|
+
* const email = "foo@example.com";
|
|
429
|
+
* const rows = await database.rawQueryAll(query, email);
|
|
430
|
+
*/
|
|
431
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
432
|
+
async rawQueryAll<T extends Row = Record<string, any>>(
|
|
433
|
+
query: string,
|
|
434
|
+
...params: Primitive[]
|
|
435
|
+
): Promise<T[]> {
|
|
436
|
+
const args = buildQueryArgs(params);
|
|
437
|
+
const source = getCurrentRequest();
|
|
438
|
+
const cursor = await this.impl.query(query, args, source);
|
|
439
|
+
const result: T[] = [];
|
|
440
|
+
while (true) {
|
|
441
|
+
const row = await cursor.next();
|
|
442
|
+
if (row === null) {
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
result.push(row.values() as T);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
return result;
|
|
449
|
+
}
|
|
450
|
+
|
|
344
451
|
/**
|
|
345
452
|
* queryRow is like query but returns only a single row.
|
|
346
453
|
* If the query selects no rows it returns null.
|
|
@@ -356,7 +463,35 @@ export class Connection {
|
|
|
356
463
|
...params: Primitive[]
|
|
357
464
|
): Promise<T | null> {
|
|
358
465
|
const query = buildQuery(strings, params);
|
|
359
|
-
const args =
|
|
466
|
+
const args = buildQueryArgs(params);
|
|
467
|
+
const source = getCurrentRequest();
|
|
468
|
+
const result = await this.impl.query(query, args, source);
|
|
469
|
+
while (true) {
|
|
470
|
+
const row = await result.next();
|
|
471
|
+
return row ? (row.values() as T) : null;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* rawQueryRow is like rawQuery but returns only a single row.
|
|
477
|
+
* If the query selects no rows, it returns null.
|
|
478
|
+
* Otherwise, it returns the first row and discards the rest.
|
|
479
|
+
*
|
|
480
|
+
* @example
|
|
481
|
+
* const query = "SELECT id FROM users WHERE email=$1";
|
|
482
|
+
* const email = "foo@example.com";
|
|
483
|
+
* const result = await database.rawQueryRow(query, email);
|
|
484
|
+
* console.log(result);
|
|
485
|
+
*
|
|
486
|
+
* @param query - The raw SQL query string.
|
|
487
|
+
* @param params - The parameters to be used in the query.
|
|
488
|
+
* @returns A promise that resolves to a single row or null.
|
|
489
|
+
*/
|
|
490
|
+
async rawQueryRow<T extends Row = Record<string, any>>(
|
|
491
|
+
query: string,
|
|
492
|
+
...params: Primitive[]
|
|
493
|
+
): Promise<T | null> {
|
|
494
|
+
const args = buildQueryArgs(params);
|
|
360
495
|
const source = getCurrentRequest();
|
|
361
496
|
const result = await this.impl.query(query, args, source);
|
|
362
497
|
while (true) {
|
|
@@ -377,7 +512,29 @@ export class Connection {
|
|
|
377
512
|
...params: Primitive[]
|
|
378
513
|
): Promise<void> {
|
|
379
514
|
const query = buildQuery(strings, params);
|
|
380
|
-
const args =
|
|
515
|
+
const args = buildQueryArgs(params);
|
|
516
|
+
const source = getCurrentRequest();
|
|
517
|
+
|
|
518
|
+
// Need to await the cursor to process any errors from things like
|
|
519
|
+
// unique constraint violations.
|
|
520
|
+
let cur = await this.impl.query(query, args, source);
|
|
521
|
+
await cur.next();
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* rawExec executes a query without returning any rows.
|
|
526
|
+
*
|
|
527
|
+
* @example
|
|
528
|
+
* const query = "DELETE FROM users WHERE email=$1";
|
|
529
|
+
* const email = "foo@example.com";
|
|
530
|
+
* await database.rawExec(query, email);
|
|
531
|
+
*
|
|
532
|
+
* @param query - The raw SQL query string.
|
|
533
|
+
* @param params - The parameters to be used in the query.
|
|
534
|
+
* @returns A promise that resolves when the query has been executed.
|
|
535
|
+
*/
|
|
536
|
+
async rawExec(query: string, ...params: Primitive[]): Promise<void> {
|
|
537
|
+
const args = buildQueryArgs(params);
|
|
381
538
|
const source = getCurrentRequest();
|
|
382
539
|
|
|
383
540
|
// Need to await the cursor to process any errors from things like
|
|
@@ -400,3 +557,8 @@ function buildQuery(strings: TemplateStringsArray, expr: Primitive[]): string {
|
|
|
400
557
|
// return queryWithComment(query, driverName);
|
|
401
558
|
return query;
|
|
402
559
|
}
|
|
560
|
+
|
|
561
|
+
function buildQueryArgs(params: Primitive[]): runtime.QueryArgs {
|
|
562
|
+
// Convert undefined to null.
|
|
563
|
+
return new runtime.QueryArgs(params.map((p) => p ?? null));
|
|
564
|
+
}
|