@event-driven-io/dumbo 0.13.0-beta.42 → 0.13.0-beta.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudflare.cjs +2193 -86
- package/dist/cloudflare.cjs.map +1 -1
- package/dist/cloudflare.d.cts +1106 -3
- package/dist/cloudflare.d.ts +1106 -3
- package/dist/cloudflare.js +2082 -3
- package/dist/cloudflare.js.map +1 -1
- package/dist/index.cjs +2505 -160
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1676 -2
- package/dist/index.d.ts +1676 -2
- package/dist/index.js +2321 -4
- package/dist/index.js.map +1 -1
- package/dist/pg.cjs +2051 -58
- package/dist/pg.cjs.map +1 -1
- package/dist/pg.d.cts +1040 -2
- package/dist/pg.d.ts +1040 -2
- package/dist/pg.js +1968 -3
- package/dist/pg.js.map +1 -1
- package/dist/postgresql.cjs +1845 -25
- package/dist/postgresql.cjs.map +1 -0
- package/dist/postgresql.d.cts +1034 -3
- package/dist/postgresql.d.ts +1034 -3
- package/dist/postgresql.js +1795 -3
- package/dist/postgresql.js.map +1 -0
- package/dist/sqlite.cjs +2124 -30
- package/dist/sqlite.cjs.map +1 -0
- package/dist/sqlite.d.cts +1107 -3
- package/dist/sqlite.d.ts +1107 -3
- package/dist/sqlite.js +2069 -3
- package/dist/sqlite.js.map +1 -0
- package/dist/sqlite3.cjs +2412 -61
- package/dist/sqlite3.cjs.map +1 -1
- package/dist/sqlite3.d.cts +1106 -4
- package/dist/sqlite3.d.ts +1106 -4
- package/dist/sqlite3.js +2326 -3
- package/dist/sqlite3.js.map +1 -1
- package/package.json +1 -1
- package/dist/core-BPSzA-lq.cjs +0 -3259
- package/dist/core-BPSzA-lq.cjs.map +0 -1
- package/dist/core-BuSVyamf.cjs +0 -480
- package/dist/core-BuSVyamf.cjs.map +0 -1
- package/dist/core-C3xoqqDs.js +0 -403
- package/dist/core-C3xoqqDs.js.map +0 -1
- package/dist/core-CHw8vO17.js +0 -456
- package/dist/core-CHw8vO17.js.map +0 -1
- package/dist/core-CUGYxOEQ.cjs +0 -599
- package/dist/core-CUGYxOEQ.cjs.map +0 -1
- package/dist/core-IV7or0Mj.js +0 -2278
- package/dist/core-IV7or0Mj.js.map +0 -1
- package/dist/index-BJC_v03L.d.ts +0 -192
- package/dist/index-CfH0u2y_.d.cts +0 -1682
- package/dist/index-DP9b7v4e.d.cts +0 -192
- package/dist/index-QWEAqtHF.d.ts +0 -1682
- package/dist/index-qxECrBHo.d.ts +0 -75
- package/dist/index-tS9lpLPz.d.cts +0 -75
- package/dist/postgreSQLMetadata-CCsCJ-eH.cjs +0 -118
- package/dist/postgreSQLMetadata-CCsCJ-eH.cjs.map +0 -1
- package/dist/postgreSQLMetadata-bCBDGz1f.js +0 -65
- package/dist/postgreSQLMetadata-bCBDGz1f.js.map +0 -1
- package/dist/sqliteMetadata-Cc7Z03lm.cjs +0 -46
- package/dist/sqliteMetadata-Cc7Z03lm.cjs.map +0 -1
- package/dist/sqliteMetadata-CvvEc1-v.js +0 -29
- package/dist/sqliteMetadata-CvvEc1-v.js.map +0 -1
package/dist/index-qxECrBHo.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { $t as SQLExecutor, Dt as MigratorOptions, Ft as DatabaseLock, It as DatabaseLockOptions, Li as SQLFormatter, Mn as DumboError, Nt as AcquireDatabaseLockMode, Pt as AcquireDatabaseLockOptions, Rt as ReleaseDatabaseLockOptions, Sa as SQLProcessor, Wi as SQL, _a as DefaultSQLColumnProcessors, ao as SQLArray, fo as SQLPlain, i as DatabaseConnectionString, lt as DatabaseDriverType, uo as SQLIn } from "./index-QWEAqtHF.js";
|
|
2
|
-
|
|
3
|
-
//#region src/storage/postgresql/core/connections/connectionString.d.ts
|
|
4
|
-
declare const defaultPostgreSQLConnectionString: PostgreSQLConnectionString;
|
|
5
|
-
type PostgreSQLConnectionString = DatabaseConnectionString<'PostgreSQL', `postgresql://${string}` | `postgres://${string}`>;
|
|
6
|
-
declare const PostgreSQLConnectionString: (connectionString: string) => PostgreSQLConnectionString;
|
|
7
|
-
/**
|
|
8
|
-
* Parse database name from a PostgreSQL connection string
|
|
9
|
-
*/
|
|
10
|
-
declare function parseDatabaseName(str: string): string | null;
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region src/storage/postgresql/core/errors/errorMapper.d.ts
|
|
13
|
-
/**
|
|
14
|
-
* Maps a PostgreSQL error (from the `pg` driver) to a typed DumboError
|
|
15
|
-
* based on the SQLSTATE code.
|
|
16
|
-
*
|
|
17
|
-
* SQLSTATE reference: https://www.postgresql.org/docs/current/errcodes-appendix.html
|
|
18
|
-
* Transient classification based on Npgsql's PostgresException.IsTransient.
|
|
19
|
-
*
|
|
20
|
-
* Falls back to a generic DumboError (500) if the error is not a recognized PostgreSQL error.
|
|
21
|
-
*/
|
|
22
|
-
declare const mapPostgresError: (error: unknown) => DumboError;
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/storage/postgresql/core/locks/advisoryLocks.d.ts
|
|
25
|
-
declare const tryAcquireAdvisoryLock: (execute: SQLExecutor, options: AcquireDatabaseLockOptions) => Promise<boolean>;
|
|
26
|
-
declare const releaseAdvisoryLock: (execute: SQLExecutor, options: ReleaseDatabaseLockOptions) => Promise<boolean>;
|
|
27
|
-
declare const acquireAdvisoryLock: (execute: SQLExecutor, options: AcquireDatabaseLockOptions) => Promise<void>;
|
|
28
|
-
declare const AdvisoryLock: DatabaseLock;
|
|
29
|
-
declare const advisoryLock: (execute: SQLExecutor, options: DatabaseLockOptions) => {
|
|
30
|
-
acquire: (acquireOptions?: {
|
|
31
|
-
mode: AcquireDatabaseLockMode;
|
|
32
|
-
}) => Promise<void>;
|
|
33
|
-
tryAcquire: (acquireOptions?: {
|
|
34
|
-
mode: AcquireDatabaseLockMode;
|
|
35
|
-
}) => Promise<boolean>;
|
|
36
|
-
release: () => Promise<boolean>;
|
|
37
|
-
withAcquire: <Result>(handle: () => Promise<Result>, acquireOptions?: {
|
|
38
|
-
mode: AcquireDatabaseLockMode;
|
|
39
|
-
}) => Promise<Result>;
|
|
40
|
-
};
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/storage/postgresql/core/schema/migrations.d.ts
|
|
43
|
-
declare const DefaultPostgreSQLMigratorOptions: MigratorOptions;
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region src/storage/postgresql/core/schema/schema.d.ts
|
|
46
|
-
declare const defaultPostgreSqlDatabase = "postgres";
|
|
47
|
-
declare const tableExistsSQL: (tableName: string) => SQL;
|
|
48
|
-
declare const tableExists: (execute: SQLExecutor, tableName: string) => Promise<boolean>;
|
|
49
|
-
declare const functionExistsSQL: (functionName: string) => SQL;
|
|
50
|
-
declare const functionExists: (execute: SQLExecutor, functionName: string) => Promise<boolean>;
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region src/storage/postgresql/core/sql/formatter/index.d.ts
|
|
53
|
-
declare const pgFormatter: SQLFormatter;
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/storage/postgresql/core/sql/json.d.ts
|
|
56
|
-
declare const PostgreSQLJSON: {
|
|
57
|
-
readonly field: (source: SQL, path: string) => SQL;
|
|
58
|
-
readonly path: (path: string) => SQLPlain;
|
|
59
|
-
readonly textField: (source: SQL, path: string) => SQL;
|
|
60
|
-
};
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region src/storage/postgresql/core/sql/processors/arrayProcessors.d.ts
|
|
63
|
-
declare const PostgreSQLArrayProcessor: SQLProcessor<SQLArray>;
|
|
64
|
-
declare const PostgreSQLExpandSQLInProcessor: SQLProcessor<SQLIn>;
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/storage/postgresql/core/sql/processors/columProcessors.d.ts
|
|
67
|
-
declare const postgreSQLColumnProcessors: DefaultSQLColumnProcessors;
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/storage/postgresql/core/index.d.ts
|
|
70
|
-
type PostgreSQLDatabaseName = 'PostgreSQL';
|
|
71
|
-
declare const PostgreSQLDatabaseName = "PostgreSQL";
|
|
72
|
-
type PostgreSQLDriverType<DriverName extends string = string> = DatabaseDriverType<PostgreSQLDatabaseName, DriverName>;
|
|
73
|
-
//#endregion
|
|
74
|
-
export { parseDatabaseName as S, releaseAdvisoryLock as _, PostgreSQLExpandSQLInProcessor as a, PostgreSQLConnectionString as b, defaultPostgreSqlDatabase as c, tableExists as d, tableExistsSQL as f, advisoryLock as g, acquireAdvisoryLock as h, PostgreSQLArrayProcessor as i, functionExists as l, AdvisoryLock as m, PostgreSQLDriverType as n, PostgreSQLJSON as o, DefaultPostgreSQLMigratorOptions as p, postgreSQLColumnProcessors as r, pgFormatter as s, PostgreSQLDatabaseName as t, functionExistsSQL as u, tryAcquireAdvisoryLock as v, defaultPostgreSQLConnectionString as x, mapPostgresError as y };
|
|
75
|
-
//# sourceMappingURL=index-qxECrBHo.d.ts.map
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { $t as SQLExecutor, Dt as MigratorOptions, Ft as DatabaseLock, It as DatabaseLockOptions, Li as SQLFormatter, Mn as DumboError, Nt as AcquireDatabaseLockMode, Pt as AcquireDatabaseLockOptions, Rt as ReleaseDatabaseLockOptions, Sa as SQLProcessor, Wi as SQL, _a as DefaultSQLColumnProcessors, ao as SQLArray, fo as SQLPlain, i as DatabaseConnectionString, lt as DatabaseDriverType, uo as SQLIn } from "./index-CfH0u2y_.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/storage/postgresql/core/connections/connectionString.d.ts
|
|
4
|
-
declare const defaultPostgreSQLConnectionString: PostgreSQLConnectionString;
|
|
5
|
-
type PostgreSQLConnectionString = DatabaseConnectionString<'PostgreSQL', `postgresql://${string}` | `postgres://${string}`>;
|
|
6
|
-
declare const PostgreSQLConnectionString: (connectionString: string) => PostgreSQLConnectionString;
|
|
7
|
-
/**
|
|
8
|
-
* Parse database name from a PostgreSQL connection string
|
|
9
|
-
*/
|
|
10
|
-
declare function parseDatabaseName(str: string): string | null;
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region src/storage/postgresql/core/errors/errorMapper.d.ts
|
|
13
|
-
/**
|
|
14
|
-
* Maps a PostgreSQL error (from the `pg` driver) to a typed DumboError
|
|
15
|
-
* based on the SQLSTATE code.
|
|
16
|
-
*
|
|
17
|
-
* SQLSTATE reference: https://www.postgresql.org/docs/current/errcodes-appendix.html
|
|
18
|
-
* Transient classification based on Npgsql's PostgresException.IsTransient.
|
|
19
|
-
*
|
|
20
|
-
* Falls back to a generic DumboError (500) if the error is not a recognized PostgreSQL error.
|
|
21
|
-
*/
|
|
22
|
-
declare const mapPostgresError: (error: unknown) => DumboError;
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/storage/postgresql/core/locks/advisoryLocks.d.ts
|
|
25
|
-
declare const tryAcquireAdvisoryLock: (execute: SQLExecutor, options: AcquireDatabaseLockOptions) => Promise<boolean>;
|
|
26
|
-
declare const releaseAdvisoryLock: (execute: SQLExecutor, options: ReleaseDatabaseLockOptions) => Promise<boolean>;
|
|
27
|
-
declare const acquireAdvisoryLock: (execute: SQLExecutor, options: AcquireDatabaseLockOptions) => Promise<void>;
|
|
28
|
-
declare const AdvisoryLock: DatabaseLock;
|
|
29
|
-
declare const advisoryLock: (execute: SQLExecutor, options: DatabaseLockOptions) => {
|
|
30
|
-
acquire: (acquireOptions?: {
|
|
31
|
-
mode: AcquireDatabaseLockMode;
|
|
32
|
-
}) => Promise<void>;
|
|
33
|
-
tryAcquire: (acquireOptions?: {
|
|
34
|
-
mode: AcquireDatabaseLockMode;
|
|
35
|
-
}) => Promise<boolean>;
|
|
36
|
-
release: () => Promise<boolean>;
|
|
37
|
-
withAcquire: <Result>(handle: () => Promise<Result>, acquireOptions?: {
|
|
38
|
-
mode: AcquireDatabaseLockMode;
|
|
39
|
-
}) => Promise<Result>;
|
|
40
|
-
};
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/storage/postgresql/core/schema/migrations.d.ts
|
|
43
|
-
declare const DefaultPostgreSQLMigratorOptions: MigratorOptions;
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region src/storage/postgresql/core/schema/schema.d.ts
|
|
46
|
-
declare const defaultPostgreSqlDatabase = "postgres";
|
|
47
|
-
declare const tableExistsSQL: (tableName: string) => SQL;
|
|
48
|
-
declare const tableExists: (execute: SQLExecutor, tableName: string) => Promise<boolean>;
|
|
49
|
-
declare const functionExistsSQL: (functionName: string) => SQL;
|
|
50
|
-
declare const functionExists: (execute: SQLExecutor, functionName: string) => Promise<boolean>;
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region src/storage/postgresql/core/sql/formatter/index.d.ts
|
|
53
|
-
declare const pgFormatter: SQLFormatter;
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/storage/postgresql/core/sql/json.d.ts
|
|
56
|
-
declare const PostgreSQLJSON: {
|
|
57
|
-
readonly field: (source: SQL, path: string) => SQL;
|
|
58
|
-
readonly path: (path: string) => SQLPlain;
|
|
59
|
-
readonly textField: (source: SQL, path: string) => SQL;
|
|
60
|
-
};
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region src/storage/postgresql/core/sql/processors/arrayProcessors.d.ts
|
|
63
|
-
declare const PostgreSQLArrayProcessor: SQLProcessor<SQLArray>;
|
|
64
|
-
declare const PostgreSQLExpandSQLInProcessor: SQLProcessor<SQLIn>;
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/storage/postgresql/core/sql/processors/columProcessors.d.ts
|
|
67
|
-
declare const postgreSQLColumnProcessors: DefaultSQLColumnProcessors;
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/storage/postgresql/core/index.d.ts
|
|
70
|
-
type PostgreSQLDatabaseName = 'PostgreSQL';
|
|
71
|
-
declare const PostgreSQLDatabaseName = "PostgreSQL";
|
|
72
|
-
type PostgreSQLDriverType<DriverName extends string = string> = DatabaseDriverType<PostgreSQLDatabaseName, DriverName>;
|
|
73
|
-
//#endregion
|
|
74
|
-
export { parseDatabaseName as S, releaseAdvisoryLock as _, PostgreSQLExpandSQLInProcessor as a, PostgreSQLConnectionString as b, defaultPostgreSqlDatabase as c, tableExists as d, tableExistsSQL as f, advisoryLock as g, acquireAdvisoryLock as h, PostgreSQLArrayProcessor as i, functionExists as l, AdvisoryLock as m, PostgreSQLDriverType as n, PostgreSQLJSON as o, DefaultPostgreSQLMigratorOptions as p, postgreSQLColumnProcessors as r, pgFormatter as s, PostgreSQLDatabaseName as t, functionExistsSQL as u, tryAcquireAdvisoryLock as v, defaultPostgreSQLConnectionString as x, mapPostgresError as y };
|
|
75
|
-
//# sourceMappingURL=index-tS9lpLPz.d.cts.map
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
const require_core = require('./core-BPSzA-lq.cjs');
|
|
2
|
-
|
|
3
|
-
//#region src/storage/postgresql/core/connections/connectionString.ts
|
|
4
|
-
const defaultPostgreSQLConnectionString = "postgresql://postgres@localhost:5432/postgres";
|
|
5
|
-
const PostgreSQLConnectionString = (connectionString) => {
|
|
6
|
-
if (!connectionString.startsWith("postgresql://") && !connectionString.startsWith("postgres://")) throw new Error(`Invalid PostgreSQL connection string: ${connectionString}. It should start with "postgresql://".`);
|
|
7
|
-
return connectionString;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Parse database name from a PostgreSQL connection string
|
|
11
|
-
*/
|
|
12
|
-
function parseDatabaseName(str) {
|
|
13
|
-
if (str.charAt(0) === "/") return str.split(" ")[1] || null;
|
|
14
|
-
if (/ |%[^a-f0-9]|%[a-f0-9][^a-f0-9]/i.test(str)) str = encodeURI(str).replace(/%25(\d\d)/g, "%$1");
|
|
15
|
-
let result;
|
|
16
|
-
try {
|
|
17
|
-
result = new URL(str, "postgres://base");
|
|
18
|
-
} catch {
|
|
19
|
-
try {
|
|
20
|
-
result = new URL(str.replace("@/", "@___DUMMY___/"), "postgres://base");
|
|
21
|
-
} catch {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (result.protocol === "socket:") return result.searchParams.get("db");
|
|
26
|
-
const pathname = result.pathname.slice(1) || null;
|
|
27
|
-
return pathname ? decodeURI(pathname) : null;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/storage/postgresql/core/schema/schema.ts
|
|
32
|
-
const defaultPostgreSqlDatabase = "postgres";
|
|
33
|
-
const tableExistsSQL = (tableName) => require_core.SQL`
|
|
34
|
-
SELECT EXISTS (
|
|
35
|
-
SELECT FROM pg_tables
|
|
36
|
-
WHERE tablename = ${tableName}
|
|
37
|
-
) AS exists;`;
|
|
38
|
-
const tableExists = async (execute, tableName) => require_core.exists(execute.query(tableExistsSQL(tableName)));
|
|
39
|
-
const functionExistsSQL = (functionName) => require_core.SQL`
|
|
40
|
-
SELECT EXISTS (
|
|
41
|
-
SELECT FROM pg_proc
|
|
42
|
-
WHERE
|
|
43
|
-
proname = ${functionName}
|
|
44
|
-
) AS exists;`;
|
|
45
|
-
const functionExists = async (execute, functionName) => require_core.exists(execute.query(functionExistsSQL(functionName)));
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/storage/postgresql/core/schema/postgreSQLMetadata.ts
|
|
49
|
-
const postgreSQLMetadata = {
|
|
50
|
-
databaseType: "PostgreSQL",
|
|
51
|
-
defaultDatabaseName: defaultPostgreSqlDatabase,
|
|
52
|
-
capabilities: {
|
|
53
|
-
supportsSchemas: true,
|
|
54
|
-
supportsFunctions: true,
|
|
55
|
-
supportsMultipleDatabases: true
|
|
56
|
-
},
|
|
57
|
-
tableExists,
|
|
58
|
-
functionExists,
|
|
59
|
-
parseDatabaseName: (connectionString) => (connectionString ? parseDatabaseName(connectionString) : null) ?? "postgres"
|
|
60
|
-
};
|
|
61
|
-
dumboDatabaseMetadataRegistry.register("PostgreSQL", postgreSQLMetadata);
|
|
62
|
-
|
|
63
|
-
//#endregion
|
|
64
|
-
Object.defineProperty(exports, 'PostgreSQLConnectionString', {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () {
|
|
67
|
-
return PostgreSQLConnectionString;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
Object.defineProperty(exports, 'defaultPostgreSQLConnectionString', {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function () {
|
|
73
|
-
return defaultPostgreSQLConnectionString;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, 'defaultPostgreSqlDatabase', {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return defaultPostgreSqlDatabase;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(exports, 'functionExists', {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: function () {
|
|
85
|
-
return functionExists;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(exports, 'functionExistsSQL', {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: function () {
|
|
91
|
-
return functionExistsSQL;
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
Object.defineProperty(exports, 'parseDatabaseName', {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function () {
|
|
97
|
-
return parseDatabaseName;
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(exports, 'postgreSQLMetadata', {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function () {
|
|
103
|
-
return postgreSQLMetadata;
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
Object.defineProperty(exports, 'tableExists', {
|
|
107
|
-
enumerable: true,
|
|
108
|
-
get: function () {
|
|
109
|
-
return tableExists;
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
Object.defineProperty(exports, 'tableExistsSQL', {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
get: function () {
|
|
115
|
-
return tableExistsSQL;
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
//# sourceMappingURL=postgreSQLMetadata-CCsCJ-eH.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postgreSQLMetadata-CCsCJ-eH.cjs","names":["exists"],"sources":["../src/storage/postgresql/core/connections/connectionString.ts","../src/storage/postgresql/core/schema/schema.ts","../src/storage/postgresql/core/schema/postgreSQLMetadata.ts"],"sourcesContent":["import type { DatabaseConnectionString } from '../../../all';\n\nexport const defaultPostgreSQLConnectionString: PostgreSQLConnectionString =\n 'postgresql://postgres@localhost:5432/postgres' as PostgreSQLConnectionString;\n\nexport type PostgreSQLConnectionString = DatabaseConnectionString<\n 'PostgreSQL',\n `postgresql://${string}` | `postgres://${string}`\n>;\n\nexport const PostgreSQLConnectionString = (\n connectionString: string,\n): PostgreSQLConnectionString => {\n if (\n !connectionString.startsWith('postgresql://') &&\n !connectionString.startsWith('postgres://')\n ) {\n throw new Error(\n `Invalid PostgreSQL connection string: ${connectionString}. It should start with \"postgresql://\".`,\n );\n }\n return connectionString as PostgreSQLConnectionString;\n};\n\n// Stripped from https://github.com/brianc/node-postgres\n// Copyright (c) 2010-2014 Brian Carlson (brian.m.carlson@gmail.com)\n// MIT License\n/**\n * Parse database name from a PostgreSQL connection string\n */\nexport function parseDatabaseName(str: string): string | null {\n // Unix socket format: /path/to/socket database_name\n if (str.charAt(0) === '/') {\n const parts = str.split(' ');\n return parts[1] || null;\n }\n\n // Encode spaces if present\n if (/ |%[^a-f0-9]|%[a-f0-9][^a-f0-9]/i.test(str)) {\n str = encodeURI(str).replace(/%25(\\d\\d)/g, '%$1');\n }\n\n let result: URL;\n try {\n result = new URL(str, 'postgres://base');\n } catch {\n // Try with dummy host for malformed URLs\n try {\n result = new URL(str.replace('@/', '@___DUMMY___/'), 'postgres://base');\n } catch {\n return null;\n }\n }\n\n // Socket protocol: socket://path?db=dbname\n if (result.protocol === 'socket:') {\n return result.searchParams.get('db');\n }\n\n // Standard URL: postgres://user:pass@host:port/database\n const pathname = result.pathname.slice(1) || null;\n return pathname ? decodeURI(pathname) : null;\n}\n","import { exists, SQL, type SQLExecutor } from '../../../../core';\nexport * from './schema';\n\nexport const defaultPostgreSqlDatabase = 'postgres';\n\nexport const tableExistsSQL = (tableName: string): SQL =>\n SQL`\n SELECT EXISTS (\n SELECT FROM pg_tables\n WHERE tablename = ${tableName}\n ) AS exists;`;\n\nexport const tableExists = async (\n execute: SQLExecutor,\n tableName: string,\n): Promise<boolean> => exists(execute.query(tableExistsSQL(tableName)));\n\nexport const functionExistsSQL = (functionName: string): SQL =>\n SQL`\n SELECT EXISTS (\n SELECT FROM pg_proc\n WHERE\n proname = ${functionName}\n ) AS exists;`;\n\nexport const functionExists = async (\n execute: SQLExecutor,\n functionName: string,\n): Promise<boolean> => exists(execute.query(functionExistsSQL(functionName)));\n","import type { DatabaseMetadata } from '../../../../core';\nimport { parseDatabaseName } from '../connections';\nimport {\n defaultPostgreSqlDatabase,\n functionExists,\n tableExists,\n} from './schema';\n\nexport const postgreSQLMetadata: DatabaseMetadata<true, true, true> = {\n databaseType: 'PostgreSQL',\n defaultDatabaseName: defaultPostgreSqlDatabase,\n capabilities: {\n supportsSchemas: true,\n supportsFunctions: true,\n supportsMultipleDatabases: true,\n },\n tableExists,\n functionExists,\n parseDatabaseName: (connectionString?: string) =>\n (connectionString ? parseDatabaseName(connectionString) : null) ??\n defaultPostgreSqlDatabase,\n};\n\ndumboDatabaseMetadataRegistry.register('PostgreSQL', postgreSQLMetadata);\n"],"mappings":";;;AAEA,MAAa,oCACX;AAOF,MAAa,8BACX,qBAC+B;AAC/B,KACE,CAAC,iBAAiB,WAAW,gBAAgB,IAC7C,CAAC,iBAAiB,WAAW,cAAc,CAE3C,OAAM,IAAI,MACR,yCAAyC,iBAAiB,yCAC3D;AAEH,QAAO;;;;;AAST,SAAgB,kBAAkB,KAA4B;AAE5D,KAAI,IAAI,OAAO,EAAE,KAAK,IAEpB,QADc,IAAI,MAAM,IACZ,CAAC,MAAM;AAIrB,KAAI,mCAAmC,KAAK,IAAI,CAC9C,OAAM,UAAU,IAAI,CAAC,QAAQ,cAAc,MAAM;CAGnD,IAAI;AACJ,KAAI;AACF,WAAS,IAAI,IAAI,KAAK,kBAAkB;SAClC;AAEN,MAAI;AACF,YAAS,IAAI,IAAI,IAAI,QAAQ,MAAM,gBAAgB,EAAE,kBAAkB;UACjE;AACN,UAAO;;;AAKX,KAAI,OAAO,aAAa,UACtB,QAAO,OAAO,aAAa,IAAI,KAAK;CAItC,MAAM,WAAW,OAAO,SAAS,MAAM,EAAE,IAAI;AAC7C,QAAO,WAAW,UAAU,SAAS,GAAG;;;;;AC1D1C,MAAa,4BAA4B;AAEzC,MAAa,kBAAkB,cAC7B,gBAAG;;;wBAGmB,UAAU;;AAGlC,MAAa,cAAc,OACzB,SACA,cACqBA,oBAAO,QAAQ,MAAM,eAAe,UAAU,CAAC,CAAC;AAEvE,MAAa,qBAAqB,iBAChC,gBAAG;;;;oBAIe,aAAa;;AAGjC,MAAa,iBAAiB,OAC5B,SACA,iBACqBA,oBAAO,QAAQ,MAAM,kBAAkB,aAAa,CAAC,CAAC;;;;ACpB7E,MAAa,qBAAyD;CACpE,cAAc;CACd,qBAAqB;CACrB,cAAc;EACZ,iBAAiB;EACjB,mBAAmB;EACnB,2BAA2B;EAC5B;CACD;CACA;CACA,oBAAoB,sBACjB,mBAAmB,kBAAkB,iBAAiB,GAAG;CAE7D;AAED,8BAA8B,SAAS,cAAc,mBAAmB"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { O as SQL, Wt as exists } from "./core-IV7or0Mj.js";
|
|
2
|
-
|
|
3
|
-
//#region src/storage/postgresql/core/connections/connectionString.ts
|
|
4
|
-
const defaultPostgreSQLConnectionString = "postgresql://postgres@localhost:5432/postgres";
|
|
5
|
-
const PostgreSQLConnectionString = (connectionString) => {
|
|
6
|
-
if (!connectionString.startsWith("postgresql://") && !connectionString.startsWith("postgres://")) throw new Error(`Invalid PostgreSQL connection string: ${connectionString}. It should start with "postgresql://".`);
|
|
7
|
-
return connectionString;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Parse database name from a PostgreSQL connection string
|
|
11
|
-
*/
|
|
12
|
-
function parseDatabaseName(str) {
|
|
13
|
-
if (str.charAt(0) === "/") return str.split(" ")[1] || null;
|
|
14
|
-
if (/ |%[^a-f0-9]|%[a-f0-9][^a-f0-9]/i.test(str)) str = encodeURI(str).replace(/%25(\d\d)/g, "%$1");
|
|
15
|
-
let result;
|
|
16
|
-
try {
|
|
17
|
-
result = new URL(str, "postgres://base");
|
|
18
|
-
} catch {
|
|
19
|
-
try {
|
|
20
|
-
result = new URL(str.replace("@/", "@___DUMMY___/"), "postgres://base");
|
|
21
|
-
} catch {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (result.protocol === "socket:") return result.searchParams.get("db");
|
|
26
|
-
const pathname = result.pathname.slice(1) || null;
|
|
27
|
-
return pathname ? decodeURI(pathname) : null;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/storage/postgresql/core/schema/schema.ts
|
|
32
|
-
const defaultPostgreSqlDatabase = "postgres";
|
|
33
|
-
const tableExistsSQL = (tableName) => SQL`
|
|
34
|
-
SELECT EXISTS (
|
|
35
|
-
SELECT FROM pg_tables
|
|
36
|
-
WHERE tablename = ${tableName}
|
|
37
|
-
) AS exists;`;
|
|
38
|
-
const tableExists = async (execute, tableName) => exists(execute.query(tableExistsSQL(tableName)));
|
|
39
|
-
const functionExistsSQL = (functionName) => SQL`
|
|
40
|
-
SELECT EXISTS (
|
|
41
|
-
SELECT FROM pg_proc
|
|
42
|
-
WHERE
|
|
43
|
-
proname = ${functionName}
|
|
44
|
-
) AS exists;`;
|
|
45
|
-
const functionExists = async (execute, functionName) => exists(execute.query(functionExistsSQL(functionName)));
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/storage/postgresql/core/schema/postgreSQLMetadata.ts
|
|
49
|
-
const postgreSQLMetadata = {
|
|
50
|
-
databaseType: "PostgreSQL",
|
|
51
|
-
defaultDatabaseName: defaultPostgreSqlDatabase,
|
|
52
|
-
capabilities: {
|
|
53
|
-
supportsSchemas: true,
|
|
54
|
-
supportsFunctions: true,
|
|
55
|
-
supportsMultipleDatabases: true
|
|
56
|
-
},
|
|
57
|
-
tableExists,
|
|
58
|
-
functionExists,
|
|
59
|
-
parseDatabaseName: (connectionString) => (connectionString ? parseDatabaseName(connectionString) : null) ?? "postgres"
|
|
60
|
-
};
|
|
61
|
-
dumboDatabaseMetadataRegistry.register("PostgreSQL", postgreSQLMetadata);
|
|
62
|
-
|
|
63
|
-
//#endregion
|
|
64
|
-
export { tableExists as a, defaultPostgreSQLConnectionString as c, functionExistsSQL as i, parseDatabaseName as l, defaultPostgreSqlDatabase as n, tableExistsSQL as o, functionExists as r, PostgreSQLConnectionString as s, postgreSQLMetadata as t };
|
|
65
|
-
//# sourceMappingURL=postgreSQLMetadata-bCBDGz1f.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postgreSQLMetadata-bCBDGz1f.js","names":[],"sources":["../src/storage/postgresql/core/connections/connectionString.ts","../src/storage/postgresql/core/schema/schema.ts","../src/storage/postgresql/core/schema/postgreSQLMetadata.ts"],"sourcesContent":["import type { DatabaseConnectionString } from '../../../all';\n\nexport const defaultPostgreSQLConnectionString: PostgreSQLConnectionString =\n 'postgresql://postgres@localhost:5432/postgres' as PostgreSQLConnectionString;\n\nexport type PostgreSQLConnectionString = DatabaseConnectionString<\n 'PostgreSQL',\n `postgresql://${string}` | `postgres://${string}`\n>;\n\nexport const PostgreSQLConnectionString = (\n connectionString: string,\n): PostgreSQLConnectionString => {\n if (\n !connectionString.startsWith('postgresql://') &&\n !connectionString.startsWith('postgres://')\n ) {\n throw new Error(\n `Invalid PostgreSQL connection string: ${connectionString}. It should start with \"postgresql://\".`,\n );\n }\n return connectionString as PostgreSQLConnectionString;\n};\n\n// Stripped from https://github.com/brianc/node-postgres\n// Copyright (c) 2010-2014 Brian Carlson (brian.m.carlson@gmail.com)\n// MIT License\n/**\n * Parse database name from a PostgreSQL connection string\n */\nexport function parseDatabaseName(str: string): string | null {\n // Unix socket format: /path/to/socket database_name\n if (str.charAt(0) === '/') {\n const parts = str.split(' ');\n return parts[1] || null;\n }\n\n // Encode spaces if present\n if (/ |%[^a-f0-9]|%[a-f0-9][^a-f0-9]/i.test(str)) {\n str = encodeURI(str).replace(/%25(\\d\\d)/g, '%$1');\n }\n\n let result: URL;\n try {\n result = new URL(str, 'postgres://base');\n } catch {\n // Try with dummy host for malformed URLs\n try {\n result = new URL(str.replace('@/', '@___DUMMY___/'), 'postgres://base');\n } catch {\n return null;\n }\n }\n\n // Socket protocol: socket://path?db=dbname\n if (result.protocol === 'socket:') {\n return result.searchParams.get('db');\n }\n\n // Standard URL: postgres://user:pass@host:port/database\n const pathname = result.pathname.slice(1) || null;\n return pathname ? decodeURI(pathname) : null;\n}\n","import { exists, SQL, type SQLExecutor } from '../../../../core';\nexport * from './schema';\n\nexport const defaultPostgreSqlDatabase = 'postgres';\n\nexport const tableExistsSQL = (tableName: string): SQL =>\n SQL`\n SELECT EXISTS (\n SELECT FROM pg_tables\n WHERE tablename = ${tableName}\n ) AS exists;`;\n\nexport const tableExists = async (\n execute: SQLExecutor,\n tableName: string,\n): Promise<boolean> => exists(execute.query(tableExistsSQL(tableName)));\n\nexport const functionExistsSQL = (functionName: string): SQL =>\n SQL`\n SELECT EXISTS (\n SELECT FROM pg_proc\n WHERE\n proname = ${functionName}\n ) AS exists;`;\n\nexport const functionExists = async (\n execute: SQLExecutor,\n functionName: string,\n): Promise<boolean> => exists(execute.query(functionExistsSQL(functionName)));\n","import type { DatabaseMetadata } from '../../../../core';\nimport { parseDatabaseName } from '../connections';\nimport {\n defaultPostgreSqlDatabase,\n functionExists,\n tableExists,\n} from './schema';\n\nexport const postgreSQLMetadata: DatabaseMetadata<true, true, true> = {\n databaseType: 'PostgreSQL',\n defaultDatabaseName: defaultPostgreSqlDatabase,\n capabilities: {\n supportsSchemas: true,\n supportsFunctions: true,\n supportsMultipleDatabases: true,\n },\n tableExists,\n functionExists,\n parseDatabaseName: (connectionString?: string) =>\n (connectionString ? parseDatabaseName(connectionString) : null) ??\n defaultPostgreSqlDatabase,\n};\n\ndumboDatabaseMetadataRegistry.register('PostgreSQL', postgreSQLMetadata);\n"],"mappings":";;;AAEA,MAAa,oCACX;AAOF,MAAa,8BACX,qBAC+B;AAC/B,KACE,CAAC,iBAAiB,WAAW,gBAAgB,IAC7C,CAAC,iBAAiB,WAAW,cAAc,CAE3C,OAAM,IAAI,MACR,yCAAyC,iBAAiB,yCAC3D;AAEH,QAAO;;;;;AAST,SAAgB,kBAAkB,KAA4B;AAE5D,KAAI,IAAI,OAAO,EAAE,KAAK,IAEpB,QADc,IAAI,MAAM,IACZ,CAAC,MAAM;AAIrB,KAAI,mCAAmC,KAAK,IAAI,CAC9C,OAAM,UAAU,IAAI,CAAC,QAAQ,cAAc,MAAM;CAGnD,IAAI;AACJ,KAAI;AACF,WAAS,IAAI,IAAI,KAAK,kBAAkB;SAClC;AAEN,MAAI;AACF,YAAS,IAAI,IAAI,IAAI,QAAQ,MAAM,gBAAgB,EAAE,kBAAkB;UACjE;AACN,UAAO;;;AAKX,KAAI,OAAO,aAAa,UACtB,QAAO,OAAO,aAAa,IAAI,KAAK;CAItC,MAAM,WAAW,OAAO,SAAS,MAAM,EAAE,IAAI;AAC7C,QAAO,WAAW,UAAU,SAAS,GAAG;;;;;AC1D1C,MAAa,4BAA4B;AAEzC,MAAa,kBAAkB,cAC7B,GAAG;;;wBAGmB,UAAU;;AAGlC,MAAa,cAAc,OACzB,SACA,cACqB,OAAO,QAAQ,MAAM,eAAe,UAAU,CAAC,CAAC;AAEvE,MAAa,qBAAqB,iBAChC,GAAG;;;;oBAIe,aAAa;;AAGjC,MAAa,iBAAiB,OAC5B,SACA,iBACqB,OAAO,QAAQ,MAAM,kBAAkB,aAAa,CAAC,CAAC;;;;ACpB7E,MAAa,qBAAyD;CACpE,cAAc;CACd,qBAAqB;CACrB,cAAc;EACZ,iBAAiB;EACjB,mBAAmB;EACnB,2BAA2B;EAC5B;CACD;CACA;CACA,oBAAoB,sBACjB,mBAAmB,kBAAkB,iBAAiB,GAAG;CAE7D;AAED,8BAA8B,SAAS,cAAc,mBAAmB"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const require_core = require('./core-BPSzA-lq.cjs');
|
|
2
|
-
|
|
3
|
-
//#region src/storage/sqlite/core/schema/schema.ts
|
|
4
|
-
const defaultSQLiteDatabase = ":memory:";
|
|
5
|
-
const tableExistsSQL = (tableName) => require_core.SQL`
|
|
6
|
-
SELECT EXISTS (
|
|
7
|
-
SELECT 1
|
|
8
|
-
FROM sqlite_master
|
|
9
|
-
WHERE type = 'table' AND name = ${tableName}
|
|
10
|
-
) AS "exists"
|
|
11
|
-
`;
|
|
12
|
-
const tableExists = async (execute, tableName) => require_core.exists(execute.query(tableExistsSQL(tableName)));
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/storage/sqlite/core/schema/sqliteMetadata.ts
|
|
16
|
-
const sqliteMetadata = {
|
|
17
|
-
databaseType: "SQLite",
|
|
18
|
-
capabilities: {
|
|
19
|
-
supportsSchemas: false,
|
|
20
|
-
supportsFunctions: false,
|
|
21
|
-
supportsMultipleDatabases: false
|
|
22
|
-
},
|
|
23
|
-
tableExists
|
|
24
|
-
};
|
|
25
|
-
dumboDatabaseMetadataRegistry.register("SQLite", sqliteMetadata);
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
Object.defineProperty(exports, 'defaultSQLiteDatabase', {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () {
|
|
31
|
-
return defaultSQLiteDatabase;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(exports, 'sqliteMetadata', {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () {
|
|
37
|
-
return sqliteMetadata;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, 'tableExists', {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () {
|
|
43
|
-
return tableExists;
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=sqliteMetadata-Cc7Z03lm.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqliteMetadata-Cc7Z03lm.cjs","names":["exists"],"sources":["../src/storage/sqlite/core/schema/schema.ts","../src/storage/sqlite/core/schema/sqliteMetadata.ts"],"sourcesContent":["import { exists, SQL, type SQLExecutor } from '../../../../core';\nexport * from './schema';\n\nexport const defaultSQLiteDatabase = ':memory:';\n\nconst tableExistsSQL = (tableName: string): SQL =>\n SQL`\n SELECT EXISTS (\n SELECT 1\n FROM sqlite_master\n WHERE type = 'table' AND name = ${tableName}\n ) AS \"exists\"\n `;\n\nexport const tableExists = async (\n execute: SQLExecutor,\n tableName: string,\n): Promise<boolean> => exists(execute.query(tableExistsSQL(tableName)));\n","import type { DatabaseMetadata } from '../../../../core';\nimport { tableExists } from './schema';\n\nexport const sqliteMetadata: DatabaseMetadata<false, false, false> = {\n databaseType: 'SQLite',\n capabilities: {\n supportsSchemas: false,\n supportsFunctions: false,\n supportsMultipleDatabases: false,\n },\n tableExists,\n};\n\ndumboDatabaseMetadataRegistry.register('SQLite', sqliteMetadata);\n"],"mappings":";;;AAGA,MAAa,wBAAwB;AAErC,MAAM,kBAAkB,cACtB,gBAAG;;;;sCAIiC,UAAU;;;AAIhD,MAAa,cAAc,OACzB,SACA,cACqBA,oBAAO,QAAQ,MAAM,eAAe,UAAU,CAAC,CAAC;;;;ACdvE,MAAa,iBAAwD;CACnE,cAAc;CACd,cAAc;EACZ,iBAAiB;EACjB,mBAAmB;EACnB,2BAA2B;EAC5B;CACD;CACD;AAED,8BAA8B,SAAS,UAAU,eAAe"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { O as SQL, Wt as exists } from "./core-IV7or0Mj.js";
|
|
2
|
-
|
|
3
|
-
//#region src/storage/sqlite/core/schema/schema.ts
|
|
4
|
-
const defaultSQLiteDatabase = ":memory:";
|
|
5
|
-
const tableExistsSQL = (tableName) => SQL`
|
|
6
|
-
SELECT EXISTS (
|
|
7
|
-
SELECT 1
|
|
8
|
-
FROM sqlite_master
|
|
9
|
-
WHERE type = 'table' AND name = ${tableName}
|
|
10
|
-
) AS "exists"
|
|
11
|
-
`;
|
|
12
|
-
const tableExists = async (execute, tableName) => exists(execute.query(tableExistsSQL(tableName)));
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/storage/sqlite/core/schema/sqliteMetadata.ts
|
|
16
|
-
const sqliteMetadata = {
|
|
17
|
-
databaseType: "SQLite",
|
|
18
|
-
capabilities: {
|
|
19
|
-
supportsSchemas: false,
|
|
20
|
-
supportsFunctions: false,
|
|
21
|
-
supportsMultipleDatabases: false
|
|
22
|
-
},
|
|
23
|
-
tableExists
|
|
24
|
-
};
|
|
25
|
-
dumboDatabaseMetadataRegistry.register("SQLite", sqliteMetadata);
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export { defaultSQLiteDatabase as n, tableExists as r, sqliteMetadata as t };
|
|
29
|
-
//# sourceMappingURL=sqliteMetadata-CvvEc1-v.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqliteMetadata-CvvEc1-v.js","names":[],"sources":["../src/storage/sqlite/core/schema/schema.ts","../src/storage/sqlite/core/schema/sqliteMetadata.ts"],"sourcesContent":["import { exists, SQL, type SQLExecutor } from '../../../../core';\nexport * from './schema';\n\nexport const defaultSQLiteDatabase = ':memory:';\n\nconst tableExistsSQL = (tableName: string): SQL =>\n SQL`\n SELECT EXISTS (\n SELECT 1\n FROM sqlite_master\n WHERE type = 'table' AND name = ${tableName}\n ) AS \"exists\"\n `;\n\nexport const tableExists = async (\n execute: SQLExecutor,\n tableName: string,\n): Promise<boolean> => exists(execute.query(tableExistsSQL(tableName)));\n","import type { DatabaseMetadata } from '../../../../core';\nimport { tableExists } from './schema';\n\nexport const sqliteMetadata: DatabaseMetadata<false, false, false> = {\n databaseType: 'SQLite',\n capabilities: {\n supportsSchemas: false,\n supportsFunctions: false,\n supportsMultipleDatabases: false,\n },\n tableExists,\n};\n\ndumboDatabaseMetadataRegistry.register('SQLite', sqliteMetadata);\n"],"mappings":";;;AAGA,MAAa,wBAAwB;AAErC,MAAM,kBAAkB,cACtB,GAAG;;;;sCAIiC,UAAU;;;AAIhD,MAAa,cAAc,OACzB,SACA,cACqB,OAAO,QAAQ,MAAM,eAAe,UAAU,CAAC,CAAC;;;;ACdvE,MAAa,iBAAwD;CACnE,cAAc;CACd,cAAc;EACZ,iBAAiB;EACjB,mBAAmB;EACnB,2BAA2B;EAC5B;CACD;CACD;AAED,8BAA8B,SAAS,UAAU,eAAe"}
|