@palbase/db 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present Palbase
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs ADDED
@@ -0,0 +1,647 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ DatabaseClient: () => DatabaseClient,
24
+ QueryBuilder: () => QueryBuilder,
25
+ TransactionClient: () => TransactionClient
26
+ });
27
+ module.exports = __toCommonJS(index_exports);
28
+
29
+ // ../../../modules/db/dist/chunk-AQ6ZQNXC.js
30
+ var IDENTIFIER_RE = /^[a-zA-Z_][a-zA-Z0-9_.]*$/;
31
+ function validateIdentifier(value, label) {
32
+ if (!IDENTIFIER_RE.test(value)) {
33
+ throw new Error(
34
+ `Invalid ${label}: "${value}". Identifiers must match ${IDENTIFIER_RE.source}`
35
+ );
36
+ }
37
+ }
38
+ var ColumnsClient = class {
39
+ httpClient;
40
+ constructor(httpClient) {
41
+ this.httpClient = httpClient;
42
+ }
43
+ /**
44
+ * Create a new column on the given table. Sends `POST /v1/meta/columns`.
45
+ *
46
+ * The column name is validated against the standard SQL identifier regex.
47
+ * The `type` field is forwarded as-is to postgres-meta — callers SHOULD
48
+ * restrict types to a known allowlist before calling this.
49
+ */
50
+ async create(def) {
51
+ validateIdentifier(def.name, "column name");
52
+ const response = await this.httpClient.request("POST", "/v1/meta/columns", {
53
+ body: def
54
+ });
55
+ if (response.error) {
56
+ throw response.error;
57
+ }
58
+ return response.data;
59
+ }
60
+ /**
61
+ * Drop a column. Sends `DELETE /v1/meta/columns/:tableId.:ordinalPosition`.
62
+ *
63
+ * postgres-meta identifies columns by `{tableId}.{ordinalPosition}` (the
64
+ * column's 1-based attnum within its table). Use `TablesClient.get(id)` to
65
+ * find a column id from a column name if needed.
66
+ */
67
+ async drop(columnId, options) {
68
+ if (!/^\d+\.\d+$/.test(columnId)) {
69
+ throw new Error(
70
+ `Invalid column id: "${columnId}". Expected format "{tableId}.{ordinalPosition}"`
71
+ );
72
+ }
73
+ const params = new URLSearchParams();
74
+ if (options?.cascade) {
75
+ params.set("cascade", "true");
76
+ }
77
+ const queryString = params.toString();
78
+ const path = queryString ? `/v1/meta/columns/${columnId}?${queryString}` : `/v1/meta/columns/${columnId}`;
79
+ const response = await this.httpClient.request("DELETE", path);
80
+ if (response.error) {
81
+ throw response.error;
82
+ }
83
+ return response.data;
84
+ }
85
+ };
86
+ var SchemasClient = class {
87
+ httpClient;
88
+ constructor(httpClient) {
89
+ this.httpClient = httpClient;
90
+ }
91
+ async list() {
92
+ const response = await this.httpClient.request("GET", "/v1/meta/schemas");
93
+ if (response.error) {
94
+ throw response.error;
95
+ }
96
+ return response.data ?? [];
97
+ }
98
+ async create(name) {
99
+ validateIdentifier(name, "schema name");
100
+ const response = await this.httpClient.request("POST", "/v1/meta/schemas", {
101
+ body: { name }
102
+ });
103
+ if (response.error) {
104
+ throw response.error;
105
+ }
106
+ return response.data;
107
+ }
108
+ async drop(name, options) {
109
+ validateIdentifier(name, "schema name");
110
+ const schemas = await this.list();
111
+ const schema = schemas.find((s) => s.name === name);
112
+ if (!schema) {
113
+ throw new Error(`Schema "${name}" not found`);
114
+ }
115
+ const params = new URLSearchParams();
116
+ if (options?.cascade) {
117
+ params.set("cascade", "true");
118
+ }
119
+ const queryString = params.toString();
120
+ const path = queryString ? `/v1/meta/schemas/${schema.id}?${queryString}` : `/v1/meta/schemas/${schema.id}`;
121
+ const response = await this.httpClient.request("DELETE", path);
122
+ if (response.error) {
123
+ throw response.error;
124
+ }
125
+ }
126
+ };
127
+ var TablesClient = class {
128
+ httpClient;
129
+ constructor(httpClient) {
130
+ this.httpClient = httpClient;
131
+ }
132
+ async list(options) {
133
+ const params = new URLSearchParams();
134
+ if (options?.schema) {
135
+ validateIdentifier(options.schema, "schema name");
136
+ params.set("included_schemas", options.schema);
137
+ }
138
+ const queryString = params.toString();
139
+ const path = queryString ? `/v1/meta/tables?${queryString}` : "/v1/meta/tables";
140
+ const response = await this.httpClient.request("GET", path);
141
+ if (response.error) {
142
+ throw response.error;
143
+ }
144
+ return response.data ?? [];
145
+ }
146
+ async get(id) {
147
+ const response = await this.httpClient.request("GET", `/v1/meta/tables/${id}`);
148
+ if (response.error) {
149
+ throw response.error;
150
+ }
151
+ return response.data;
152
+ }
153
+ async create(def) {
154
+ validateIdentifier(def.name, "table name");
155
+ if (def.schema) {
156
+ validateIdentifier(def.schema, "schema name");
157
+ }
158
+ const response = await this.httpClient.request("POST", "/v1/meta/tables", {
159
+ body: def
160
+ });
161
+ if (response.error) {
162
+ throw response.error;
163
+ }
164
+ return response.data;
165
+ }
166
+ /**
167
+ * Apply table-level updates (rename, schema move, RLS toggle, comment, etc).
168
+ * Sends `PATCH /v1/meta/tables/:id`.
169
+ *
170
+ * Note: this does NOT add or drop columns. For column changes, use
171
+ * `ColumnsClient.create()` / `ColumnsClient.drop()`.
172
+ */
173
+ async update(id, patch) {
174
+ if (patch.name !== void 0) {
175
+ validateIdentifier(patch.name, "table name");
176
+ }
177
+ if (patch.schema !== void 0) {
178
+ validateIdentifier(patch.schema, "schema name");
179
+ }
180
+ if (patch.primary_keys) {
181
+ for (const pk of patch.primary_keys) {
182
+ validateIdentifier(pk.name, "primary key column name");
183
+ }
184
+ }
185
+ const response = await this.httpClient.request("PATCH", `/v1/meta/tables/${id}`, {
186
+ body: patch
187
+ });
188
+ if (response.error) {
189
+ throw response.error;
190
+ }
191
+ return response.data;
192
+ }
193
+ async drop(id, options) {
194
+ const params = new URLSearchParams();
195
+ if (options?.cascade) {
196
+ params.set("cascade", "true");
197
+ }
198
+ const queryString = params.toString();
199
+ const path = queryString ? `/v1/meta/tables/${id}?${queryString}` : `/v1/meta/tables/${id}`;
200
+ const response = await this.httpClient.request("DELETE", path);
201
+ if (response.error) {
202
+ throw response.error;
203
+ }
204
+ }
205
+ };
206
+ var AdminClient = class {
207
+ schemas;
208
+ tables;
209
+ columns;
210
+ httpClient;
211
+ constructor(httpClient) {
212
+ this.httpClient = httpClient;
213
+ this.schemas = new SchemasClient(httpClient);
214
+ this.tables = new TablesClient(httpClient);
215
+ this.columns = new ColumnsClient(httpClient);
216
+ }
217
+ /**
218
+ * Execute a raw SQL query with full privileges (service role).
219
+ *
220
+ * Always use parameterized queries to prevent SQL injection.
221
+ * Never interpolate user input directly into the SQL string.
222
+ *
223
+ * @example
224
+ * ```ts
225
+ * // GOOD — parameterized
226
+ * await admin.query('SELECT * FROM users WHERE id = $1', [userId]);
227
+ *
228
+ * // BAD — string interpolation (SQL injection risk)
229
+ * await admin.query(`SELECT * FROM users WHERE id = '${userId}'`);
230
+ * ```
231
+ */
232
+ async query(sql, params) {
233
+ const response = await this.httpClient.request("POST", "/v1/meta/query", {
234
+ body: { query: sql, params }
235
+ });
236
+ if (response.error) {
237
+ throw response.error;
238
+ }
239
+ return response.data ?? [];
240
+ }
241
+ };
242
+
243
+ // ../../../modules/db/dist/index.js
244
+ var import_core = require("@palbase/core");
245
+ var TABLE_NAME_RE = /^[a-zA-Z_][a-zA-Z0-9_.]*$/;
246
+ var COLUMN_NAME_RE = /^[a-zA-Z_][a-zA-Z0-9_.:\->#]*$/;
247
+ function validateTableName(table) {
248
+ if (!TABLE_NAME_RE.test(table)) {
249
+ throw new Error(`Invalid table name: "${table}". Table names must match ${TABLE_NAME_RE.source}`);
250
+ }
251
+ }
252
+ function validateColumnName(column) {
253
+ if (!COLUMN_NAME_RE.test(column)) {
254
+ throw new Error(`Invalid column name: "${column}". Column names must match ${COLUMN_NAME_RE.source}`);
255
+ }
256
+ }
257
+ function encodeFilterValue(value) {
258
+ return String(value).replace(/[&#]/g, (c) => encodeURIComponent(c));
259
+ }
260
+ var SingleQueryBuilder = class {
261
+ constructor(builder) {
262
+ this.builder = builder;
263
+ }
264
+ builder;
265
+ then(onfulfilled, onrejected) {
266
+ return this.builder["execute"]().then(
267
+ (res) => onfulfilled ? onfulfilled(res) : res,
268
+ onrejected ?? void 0
269
+ );
270
+ }
271
+ };
272
+ var MaybeSingleQueryBuilder = class {
273
+ constructor(builder) {
274
+ this.builder = builder;
275
+ }
276
+ builder;
277
+ then(onfulfilled, onrejected) {
278
+ return this.builder["execute"]().then(
279
+ (res) => onfulfilled ? onfulfilled(res) : res,
280
+ onrejected ?? void 0
281
+ );
282
+ }
283
+ };
284
+ var QueryBuilder = class {
285
+ httpClient;
286
+ basePath;
287
+ signal;
288
+ state;
289
+ constructor(httpClient, table, options) {
290
+ validateTableName(table);
291
+ this.httpClient = httpClient;
292
+ this.basePath = options?.basePath ?? `/v1/db/${table}`;
293
+ this.signal = options?.signal;
294
+ this.state = {
295
+ method: "GET",
296
+ headers: {},
297
+ filters: [],
298
+ params: {},
299
+ isSingle: false,
300
+ isMaybeSingle: false
301
+ };
302
+ }
303
+ // --- Operation methods ---
304
+ select(columns) {
305
+ this.state = {
306
+ ...this.state,
307
+ // Only set GET if no mutation method (POST/PATCH/DELETE) is already set
308
+ // insert().select() should stay POST with Prefer: return=representation
309
+ method: this.state.body !== void 0 ? this.state.method : "GET",
310
+ params: { ...this.state.params, select: columns ?? "*" }
311
+ };
312
+ return this;
313
+ }
314
+ insert(data) {
315
+ this.state = {
316
+ ...this.state,
317
+ method: "POST",
318
+ body: data,
319
+ headers: {
320
+ ...this.state.headers,
321
+ Prefer: "return=representation"
322
+ }
323
+ };
324
+ return this;
325
+ }
326
+ update(data) {
327
+ this.state = {
328
+ ...this.state,
329
+ method: "PATCH",
330
+ body: data,
331
+ headers: {
332
+ ...this.state.headers,
333
+ Prefer: "return=representation"
334
+ }
335
+ };
336
+ return this;
337
+ }
338
+ delete() {
339
+ this.state = {
340
+ ...this.state,
341
+ method: "DELETE"
342
+ };
343
+ return this;
344
+ }
345
+ upsert(data) {
346
+ this.state = {
347
+ ...this.state,
348
+ method: "POST",
349
+ body: data,
350
+ headers: {
351
+ ...this.state.headers,
352
+ Prefer: "resolution=merge-duplicates,return=representation"
353
+ }
354
+ };
355
+ return this;
356
+ }
357
+ // --- Filter methods ---
358
+ eq(column, value) {
359
+ validateColumnName(column);
360
+ this.state = {
361
+ ...this.state,
362
+ filters: [...this.state.filters, `${column}=eq.${encodeFilterValue(value)}`]
363
+ };
364
+ return this;
365
+ }
366
+ neq(column, value) {
367
+ validateColumnName(column);
368
+ this.state = {
369
+ ...this.state,
370
+ filters: [...this.state.filters, `${column}=neq.${encodeFilterValue(value)}`]
371
+ };
372
+ return this;
373
+ }
374
+ gt(column, value) {
375
+ validateColumnName(column);
376
+ this.state = {
377
+ ...this.state,
378
+ filters: [...this.state.filters, `${column}=gt.${encodeFilterValue(value)}`]
379
+ };
380
+ return this;
381
+ }
382
+ gte(column, value) {
383
+ validateColumnName(column);
384
+ this.state = {
385
+ ...this.state,
386
+ filters: [...this.state.filters, `${column}=gte.${encodeFilterValue(value)}`]
387
+ };
388
+ return this;
389
+ }
390
+ lt(column, value) {
391
+ validateColumnName(column);
392
+ this.state = {
393
+ ...this.state,
394
+ filters: [...this.state.filters, `${column}=lt.${encodeFilterValue(value)}`]
395
+ };
396
+ return this;
397
+ }
398
+ lte(column, value) {
399
+ validateColumnName(column);
400
+ this.state = {
401
+ ...this.state,
402
+ filters: [...this.state.filters, `${column}=lte.${encodeFilterValue(value)}`]
403
+ };
404
+ return this;
405
+ }
406
+ like(column, pattern) {
407
+ validateColumnName(column);
408
+ this.state = {
409
+ ...this.state,
410
+ filters: [...this.state.filters, `${column}=like.${encodeFilterValue(pattern)}`]
411
+ };
412
+ return this;
413
+ }
414
+ ilike(column, pattern) {
415
+ validateColumnName(column);
416
+ this.state = {
417
+ ...this.state,
418
+ filters: [...this.state.filters, `${column}=ilike.${encodeFilterValue(pattern)}`]
419
+ };
420
+ return this;
421
+ }
422
+ in(column, values) {
423
+ validateColumnName(column);
424
+ const encoded = values.map((v) => encodeFilterValue(v).replace(/[),]/g, (c) => encodeURIComponent(c)));
425
+ this.state = {
426
+ ...this.state,
427
+ filters: [...this.state.filters, `${column}=in.(${encoded.join(",")})`]
428
+ };
429
+ return this;
430
+ }
431
+ is(column, value) {
432
+ validateColumnName(column);
433
+ this.state = {
434
+ ...this.state,
435
+ filters: [...this.state.filters, `${column}=is.${encodeFilterValue(value)}`]
436
+ };
437
+ return this;
438
+ }
439
+ // --- Modifier methods ---
440
+ order(column, options) {
441
+ validateColumnName(column);
442
+ const direction = options?.ascending === false ? "desc" : "asc";
443
+ this.state = {
444
+ ...this.state,
445
+ params: { ...this.state.params, order: `${column}.${direction}` }
446
+ };
447
+ return this;
448
+ }
449
+ limit(count) {
450
+ this.state = {
451
+ ...this.state,
452
+ params: { ...this.state.params, limit: String(count) }
453
+ };
454
+ return this;
455
+ }
456
+ range(from, to) {
457
+ this.state = {
458
+ ...this.state,
459
+ headers: {
460
+ ...this.state.headers,
461
+ Range: `${from}-${to}`
462
+ }
463
+ };
464
+ return this;
465
+ }
466
+ single() {
467
+ this.state = {
468
+ ...this.state,
469
+ isSingle: true,
470
+ headers: {
471
+ ...this.state.headers,
472
+ Accept: "application/vnd.pgrst.object+json"
473
+ }
474
+ };
475
+ return new SingleQueryBuilder(this);
476
+ }
477
+ maybeSingle() {
478
+ this.state = {
479
+ ...this.state,
480
+ isMaybeSingle: true,
481
+ headers: {
482
+ ...this.state.headers,
483
+ Accept: "application/vnd.pgrst.object+json"
484
+ }
485
+ };
486
+ return new MaybeSingleQueryBuilder(this);
487
+ }
488
+ // --- Execution ---
489
+ then(onfulfilled, onrejected) {
490
+ return this.execute().then(onfulfilled, onrejected);
491
+ }
492
+ buildPath() {
493
+ const parts = [];
494
+ for (const [key, value] of Object.entries(this.state.params)) {
495
+ parts.push(`${key}=${value}`);
496
+ }
497
+ for (const filter of this.state.filters) {
498
+ parts.push(filter);
499
+ }
500
+ return parts.length > 0 ? `${this.basePath}?${parts.join("&")}` : this.basePath;
501
+ }
502
+ async execute() {
503
+ const path = this.buildPath();
504
+ const { method, body, headers } = this.state;
505
+ const response = await this.httpClient.request(method, path, {
506
+ body,
507
+ headers: Object.keys(headers).length > 0 ? headers : void 0,
508
+ signal: this.signal
509
+ });
510
+ if (this.state.isMaybeSingle && response.error && response.status === 406) {
511
+ return { data: null, error: null, status: 200 };
512
+ }
513
+ return response;
514
+ }
515
+ };
516
+ var DEFAULT_TIMEOUT_MS = 3e4;
517
+ var TX_ID_RE = /^[a-zA-Z0-9_\-]+$/;
518
+ var TransactionClient = class {
519
+ httpClient;
520
+ txId;
521
+ signal;
522
+ constructor(httpClient, txId, signal) {
523
+ this.httpClient = httpClient;
524
+ this.txId = txId;
525
+ this.signal = signal;
526
+ }
527
+ from(table) {
528
+ return new QueryBuilder(this.httpClient, table, {
529
+ basePath: `/v1/db/transaction/${this.txId}/query/${table}`,
530
+ signal: this.signal
531
+ });
532
+ }
533
+ };
534
+ async function executeTransaction(httpClient, fn, options) {
535
+ const timeoutMs = options?.timeoutMs ?? DEFAULT_TIMEOUT_MS;
536
+ const controller = new AbortController();
537
+ const timer = setTimeout(() => controller.abort(), timeoutMs);
538
+ let txId;
539
+ try {
540
+ const beginResponse = await httpClient.request(
541
+ "POST",
542
+ "/v1/db/transaction/begin",
543
+ { signal: controller.signal }
544
+ );
545
+ if (beginResponse.error || !beginResponse.data) {
546
+ clearTimeout(timer);
547
+ return {
548
+ data: null,
549
+ error: beginResponse.error ?? new import_core.PalbaseError(
550
+ "transaction_error",
551
+ "Failed to begin transaction",
552
+ beginResponse.status
553
+ ),
554
+ status: beginResponse.status
555
+ };
556
+ }
557
+ txId = beginResponse.data.txId;
558
+ if (!TX_ID_RE.test(txId)) {
559
+ clearTimeout(timer);
560
+ return {
561
+ data: null,
562
+ error: new import_core.PalbaseError(
563
+ "transaction_error",
564
+ `Invalid transaction ID format: "${txId}"`,
565
+ 0
566
+ ),
567
+ status: 0
568
+ };
569
+ }
570
+ const tx = new TransactionClient(httpClient, txId, controller.signal);
571
+ const result = await fn(tx);
572
+ const commitResponse = await httpClient.request(
573
+ "POST",
574
+ `/v1/db/transaction/${txId}/commit`,
575
+ { signal: controller.signal }
576
+ );
577
+ clearTimeout(timer);
578
+ if (commitResponse.error) {
579
+ return {
580
+ data: null,
581
+ error: commitResponse.error,
582
+ status: commitResponse.status
583
+ };
584
+ }
585
+ return { data: result, error: null, status: 200 };
586
+ } catch (error) {
587
+ clearTimeout(timer);
588
+ if (txId) {
589
+ try {
590
+ await httpClient.request(
591
+ "POST",
592
+ `/v1/db/transaction/${txId}/rollback`,
593
+ { signal: void 0 }
594
+ );
595
+ } catch {
596
+ }
597
+ }
598
+ if (error instanceof import_core.PalbaseError) {
599
+ return { data: null, error, status: error.status };
600
+ }
601
+ const isAbort = error instanceof DOMException && error.name === "AbortError";
602
+ const code = isAbort ? "transaction_timeout" : "transaction_error";
603
+ const message = isAbort ? `Transaction timed out after ${timeoutMs}ms` : error instanceof Error ? error.message : "Transaction failed";
604
+ const status = isAbort ? 408 : 0;
605
+ return {
606
+ data: null,
607
+ error: new import_core.PalbaseError(code, message, status),
608
+ status
609
+ };
610
+ }
611
+ }
612
+ var FN_NAME_RE = /^[a-zA-Z_][a-zA-Z0-9_.]*$/;
613
+ var DatabaseClient = class {
614
+ httpClient;
615
+ pathPrefix;
616
+ admin;
617
+ constructor(httpClient, options) {
618
+ this.httpClient = httpClient;
619
+ this.pathPrefix = options?.pathPrefix ?? "/v1/db";
620
+ if (options?.enableAdmin) {
621
+ this.admin = new AdminClient(httpClient);
622
+ }
623
+ }
624
+ from(table) {
625
+ return new QueryBuilder(this.httpClient, table, {
626
+ basePath: `${this.pathPrefix}/${table}`
627
+ });
628
+ }
629
+ async rpc(fnName, params) {
630
+ if (!FN_NAME_RE.test(fnName)) {
631
+ throw new Error(`Invalid function name: "${fnName}". Function names must match ${FN_NAME_RE.source}`);
632
+ }
633
+ return this.httpClient.request("POST", `${this.pathPrefix}/rpc/${fnName}`, {
634
+ body: params
635
+ });
636
+ }
637
+ async transaction(fn, options) {
638
+ return executeTransaction(this.httpClient, fn, options);
639
+ }
640
+ };
641
+ // Annotate the CommonJS export names for ESM import in node:
642
+ 0 && (module.exports = {
643
+ DatabaseClient,
644
+ QueryBuilder,
645
+ TransactionClient
646
+ });
647
+ //# sourceMappingURL=index.cjs.map