@event-driven-io/dumbo 0.13.0-beta.35 → 0.13.0-beta.37

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.
Files changed (87) hide show
  1. package/dist/cloudflare.cjs +375 -434
  2. package/dist/cloudflare.cjs.map +1 -1
  3. package/dist/cloudflare.d.cts +36 -29
  4. package/dist/cloudflare.d.ts +36 -29
  5. package/dist/cloudflare.js +339 -434
  6. package/dist/cloudflare.js.map +1 -1
  7. package/dist/core-BG__WVn6.js +2262 -0
  8. package/dist/core-BG__WVn6.js.map +1 -0
  9. package/dist/core-BchvTX3G.js +379 -0
  10. package/dist/core-BchvTX3G.js.map +1 -0
  11. package/dist/core-CWZb0zOY.cjs +588 -0
  12. package/dist/core-CWZb0zOY.cjs.map +1 -0
  13. package/dist/core-D-smW7cm.cjs +3243 -0
  14. package/dist/core-D-smW7cm.cjs.map +1 -0
  15. package/dist/core-DXCRR5A9.cjs +450 -0
  16. package/dist/core-DXCRR5A9.cjs.map +1 -0
  17. package/dist/core-DlV8ua1P.js +451 -0
  18. package/dist/core-DlV8ua1P.js.map +1 -0
  19. package/dist/{connectionString-Dch_MIRU.d.cts → index-BDSQvDH2.d.cts} +1010 -922
  20. package/dist/index-BdWFmDhJ.d.cts +68 -0
  21. package/dist/index-BgFHGsuP.d.ts +186 -0
  22. package/dist/index-DaP2fTEX.d.ts +67 -0
  23. package/dist/index-N2ly5shv.d.cts +186 -0
  24. package/dist/index-S_wp0Eaf.d.cts +67 -0
  25. package/dist/index-cxtbLiju.d.ts +68 -0
  26. package/dist/{connectionString-Dch_MIRU.d.ts → index-zkszkJqP.d.ts} +1010 -922
  27. package/dist/index.cjs +212 -359
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +3 -132
  30. package/dist/index.d.ts +3 -132
  31. package/dist/index.js +52 -361
  32. package/dist/index.js.map +1 -1
  33. package/dist/pg.cjs +366 -431
  34. package/dist/pg.cjs.map +1 -1
  35. package/dist/pg.d.cts +83 -72
  36. package/dist/pg.d.ts +83 -72
  37. package/dist/pg.js +320 -431
  38. package/dist/pg.js.map +1 -1
  39. package/dist/postgreSQLMetadata-BTz6vdwE.js +65 -0
  40. package/dist/postgreSQLMetadata-BTz6vdwE.js.map +1 -0
  41. package/dist/postgreSQLMetadata-WGXySO7a.cjs +118 -0
  42. package/dist/postgreSQLMetadata-WGXySO7a.cjs.map +1 -0
  43. package/dist/postgresql.cjs +25 -50
  44. package/dist/postgresql.d.cts +3 -61
  45. package/dist/postgresql.d.ts +3 -61
  46. package/dist/postgresql.js +4 -50
  47. package/dist/sqlite.cjs +30 -60
  48. package/dist/sqlite.d.cts +3 -190
  49. package/dist/sqlite.d.ts +3 -190
  50. package/dist/sqlite.js +4 -60
  51. package/dist/sqlite3.cjs +432 -380
  52. package/dist/sqlite3.cjs.map +1 -1
  53. package/dist/sqlite3.d.cts +79 -77
  54. package/dist/sqlite3.d.ts +79 -77
  55. package/dist/sqlite3.js +396 -378
  56. package/dist/sqlite3.js.map +1 -1
  57. package/dist/sqliteMetadata-7qBjsMBN.js +29 -0
  58. package/dist/sqliteMetadata-7qBjsMBN.js.map +1 -0
  59. package/dist/sqliteMetadata-PJTRPIZ1.cjs +46 -0
  60. package/dist/sqliteMetadata-PJTRPIZ1.cjs.map +1 -0
  61. package/package.json +12 -12
  62. package/dist/chunk-33P5766L.js +0 -83
  63. package/dist/chunk-33P5766L.js.map +0 -1
  64. package/dist/chunk-4MMMEDQ7.cjs +0 -2944
  65. package/dist/chunk-4MMMEDQ7.cjs.map +0 -1
  66. package/dist/chunk-6HAHSSPW.js +0 -701
  67. package/dist/chunk-6HAHSSPW.js.map +0 -1
  68. package/dist/chunk-GNH5XC6D.cjs +0 -481
  69. package/dist/chunk-GNH5XC6D.cjs.map +0 -1
  70. package/dist/chunk-H2JBS7HM.js +0 -2944
  71. package/dist/chunk-H2JBS7HM.js.map +0 -1
  72. package/dist/chunk-JIZGCEPE.cjs +0 -701
  73. package/dist/chunk-JIZGCEPE.cjs.map +0 -1
  74. package/dist/chunk-NJI6PJFZ.cjs +0 -83
  75. package/dist/chunk-NJI6PJFZ.cjs.map +0 -1
  76. package/dist/chunk-RQ3KKMTP.cjs +0 -34
  77. package/dist/chunk-RQ3KKMTP.cjs.map +0 -1
  78. package/dist/chunk-UK7MXVS2.js +0 -34
  79. package/dist/chunk-UK7MXVS2.js.map +0 -1
  80. package/dist/chunk-Y5TD53QE.js +0 -481
  81. package/dist/chunk-Y5TD53QE.js.map +0 -1
  82. package/dist/columnProcessors-Be2uMYjS.d.cts +0 -8
  83. package/dist/columnProcessors-D0ivj_SU.d.ts +0 -8
  84. package/dist/postgresql.cjs.map +0 -1
  85. package/dist/postgresql.js.map +0 -1
  86. package/dist/sqlite.cjs.map +0 -1
  87. package/dist/sqlite.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/Pongo/Pongo/src/packages/dumbo/dist/sqlite3.cjs","../src/storage/sqlite/sqlite3/connections/connection.ts","../src/storage/sqlite/core/connections/pragmas.ts","../src/storage/sqlite/sqlite3/index.ts"],"names":["options"],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;ACtCA,oFAAoB;ADwCpB;AACA;AEnCO,IAAM,mBAAA,EAAqB,CAChC,gBAAA,EACA,WAAA,EAAA,GACwB;AACxB,EAAA,MAAM,wBAAA,EACJ,gEAAA,gBAAiD,CAAA;AAEnD,EAAA,OAAO;AAAA,IACL,GAAG,+CAAA;AAAA,IACH,GAAG,uBAAA;AAAA,IACH,GAAG;AAAA,EACL,CAAA;AACF,CAAA;AAEO,IAAM,gCAAA,EAAkC,CAC7C,OAAA,EAAA,G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uBAAA,EAAyB,CAAC,IAAA,EAAA,GACxB,iBAAA,CAAkB;AAAA,QAChB,GAAG,IAAA;AAAA,QACH,UAAA,mBAAY,OAAA,CAAQ,UAAA,UAAc;AAAA,MACpC,CAAC;AAAA,IACL;AAAA,EACN,CAAC;AACH,CAAA;AAEF,IAAM,yBAAA,EAA2B,CAAC,gBAAA,EAAA,GAA6B;AAC7D,EAAA,IAAI;AACF,IAAA,OAAO,sDAAA,gBAAuC,CAAA;AAAA,EAChD,EAAA,UAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF,CAAA;AAEO,IAAM,mBAAA,EAAqB;AAAA,EAChC,UAAA,EAAY,iBAAA;AAAA,EACZ,UAAA,EAAY,CAAC,OAAA,EAAA,GAAY,WAAA,CAAY,OAA8B,CAAA;AAAA,EACnE,YAAA,EAAc,iCAAA;AAAA,EACd,sBAAA,EAAwB,8CAAA;AAAA,EACxB,SAAA,EAAW,mEAAA;AAAA,IACT,iBAAA;AAAA,IACA;AAAA,EACF,CAAA;AAAA,EACA,gBAAA,EAAkB;AACpB,CAAA;AAMO,IAAM,sBAAA,EAAwB,CAAA,EAAA,GAAM;AACzC,EAAA,6CAAA,CAA4B,QAAA,CAAS,iBAAA,EAAmB,kBAAkB,CAAA;AAC5E,CAAA;AAMA,qBAAA,CAAsB,CAAA;AHiRtB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gpEAAC","file":"/home/runner/work/Pongo/Pongo/src/packages/dumbo/dist/sqlite3.cjs","sourcesContent":[null,"import sqlite3 from 'sqlite3';\nimport type { JSONSerializer } from '../../../../core';\nimport {\n BatchCommandNoChangesError,\n SQL,\n type Connection,\n type QueryResult,\n type QueryResultRow,\n type SQLQueryOptions,\n} from '../../../../core';\nimport { mapSqliteError } from '../../core/errors/errorMapper';\nimport type {\n SQLiteClient,\n SQLiteClientOrPoolClient,\n SQLiteConnectionOptions,\n SQLiteDriverType,\n SQLiteFileNameOrConnectionString,\n SQLiteTransaction,\n SQLiteTransactionOptions,\n} from '../../core';\nimport {\n DEFAULT_SQLITE_PRAGMA_OPTIONS,\n InMemorySQLiteDatabase,\n sqliteConnection,\n type BatchSQLiteCommandOptions,\n type SQLiteClientOptions,\n type SQLiteCommandOptions,\n type SQLiteParameters,\n} from '../../core/connections';\nimport {\n buildConnectionPragmaStatements,\n buildDatabasePragmaStatements,\n mergePragmaOptions,\n} from '../../core/connections/pragmas';\nimport { sqliteFormatter } from '../../core/sql/formatter';\n\nexport type SQLite3DriverType = SQLiteDriverType<'sqlite3'>;\nexport const SQLite3DriverType: SQLite3DriverType = 'SQLite:sqlite3';\n\nexport type ConnectionCheckResult =\n | { successful: true }\n | {\n successful: false;\n code: string | undefined;\n errorType: 'ConnectionRefused' | 'Authentication' | 'Unknown';\n error: unknown;\n };\n\nconst hasReturningClause = (sql: string): boolean => /\\bRETURNING\\b/i.test(sql);\n\nexport type SQLite3ClientOptions = SQLiteClientOptions &\n SQLiteFileNameOrConnectionString;\n\nexport type SQLite3Client = SQLiteClientOrPoolClient;\n\nexport type SQLite3ConnectionOptions = SQLiteConnectionOptions &\n ((SQLite3ClientOptions & { client?: never }) | { client: SQLite3Client });\n\nexport type SQLite3Connection<\n ClientType extends SQLiteClientOrPoolClient = SQLiteClientOrPoolClient,\n> = Connection<\n SQLite3Connection,\n SQLite3DriverType,\n ClientType,\n SQLiteTransaction<SQLite3Connection, SQLiteTransactionOptions>\n>;\n\nconst applyPragma = (\n database: sqlite3.Database,\n pragma: string,\n value: string | number,\n) => {\n return new Promise<void>((resolve, reject) => {\n database.run(`PRAGMA ${pragma} = ${value};`, (err) => {\n if (err) reject(err);\n else resolve();\n });\n });\n};\n\nconst queryPragma = (\n database: sqlite3.Database,\n pragma: string,\n): Promise<string> =>\n new Promise((resolve, reject) => {\n database.get(\n `PRAGMA ${pragma};`,\n (err: Error | null, row: { [key: string]: string } | null) => {\n if (err) reject(err);\n else resolve(row?.[pragma] ?? '');\n },\n );\n });\n\nconst applyPragmas = (\n database: sqlite3.Database,\n pragmas: Array<{ pragma: string; value: string | number }>,\n) =>\n pragmas.reduce(\n (promise, { pragma, value }) =>\n promise.then(() => applyPragma(database, pragma, value)),\n Promise.resolve(),\n );\n\nexport const sqlite3Client = (\n options: SQLite3ClientOptions & {\n serializer: JSONSerializer;\n },\n): SQLiteClient => {\n let db: sqlite3.Database;\n\n let isClosed = false;\n\n const { serializer } = options;\n\n const connectionString =\n options.fileName ?? options.connectionString ?? InMemorySQLiteDatabase;\n\n const finalPragmas = mergePragmaOptions(\n String(connectionString),\n options.pragmaOptions,\n );\n\n const connectionPragmas = buildConnectionPragmaStatements(finalPragmas);\n\n const connect: () => Promise<void> = () =>\n db\n ? Promise.resolve()\n : new Promise((resolve, reject) => {\n try {\n db = new sqlite3.Database(\n connectionString,\n sqlite3.OPEN_URI | sqlite3.OPEN_READWRITE | sqlite3.OPEN_CREATE,\n (err) => {\n if (err) {\n reject(err);\n return;\n }\n\n const busyTimeout =\n finalPragmas.busy_timeout ??\n DEFAULT_SQLITE_PRAGMA_OPTIONS.busy_timeout!;\n\n db.configure('busyTimeout', busyTimeout);\n\n applyPragmas(\n db,\n connectionPragmas.filter((p) => p.pragma !== 'busy_timeout'),\n )\n .then(async () => {\n if (options.skipDatabasePragmas) return;\n\n const databasePragmas =\n buildDatabasePragmaStatements(finalPragmas);\n for (const { pragma, value } of databasePragmas) {\n const current = await queryPragma(db, pragma);\n if (\n current.toUpperCase() !== String(value).toUpperCase()\n ) {\n await applyPragma(db, pragma, value);\n }\n }\n })\n .then(() => resolve())\n .catch(reject);\n },\n );\n\n // Apply connection-level pragmas first (busy_timeout is first)\n } catch (error) {\n reject(error as Error);\n }\n });\n\n const executeQuery = <T>(\n sql: string,\n params?: SQLiteParameters[],\n ): Promise<T[]> =>\n new Promise((resolve, reject) => {\n try {\n db.all(sql, params ?? [], (err: Error | null, result: T[]) => {\n if (err) {\n reject(err);\n return;\n }\n\n resolve(result);\n });\n } catch (error) {\n reject(error as Error);\n }\n });\n\n const executeCommand = <Result extends QueryResultRow = QueryResultRow>(\n sql: string,\n params?: SQLiteParameters[],\n options?: SQLiteCommandOptions,\n ): Promise<QueryResult<Result>> =>\n new Promise((resolve, reject) => {\n try {\n if (options?.ignoreChangesCount === true) {\n db.run(\n sql,\n params ?? [],\n function (err: Error | null, rows: Result[]) {\n if (err) {\n reject(err);\n return;\n }\n resolve({\n rowCount: 0,\n rows: rows ?? [],\n });\n },\n );\n return;\n }\n\n if (hasReturningClause(sql)) {\n db.all(sql, params ?? [], (err, rows: Result[]) => {\n if (err) return reject(err);\n resolve({ rowCount: rows.length, rows });\n });\n return;\n }\n\n // OD: 2026-01-21\n // This is needed as SQLite does not return changes count properly\n // We need to query it separately with SELECT changes()\n // This may be fixed eventually in sqlite3 library as Node.js team did here:\n // https://github.com/nodejs/node/issues/57344\n // But for now, we do it manually, as a workaround\n // We also serialize it to avoid race conditions\n db.serialize(() => {\n let hasFailed = false;\n let resultRows: Result[] = [];\n\n db.all(sql, params ?? [], (err, rows: Result[]) => {\n if (err) {\n hasFailed = true;\n return reject(err);\n }\n resultRows = rows;\n });\n\n db.get(\n 'SELECT changes() as changes',\n (err, row: { changes: number } | null) => {\n // If the first query failed, we exit immediately.\n // The promise is already rejected; we don't want to touch it.\n if (hasFailed) return;\n\n if (err) return reject(err);\n\n resolve({\n rowCount: row?.changes ?? 0,\n rows: resultRows,\n });\n },\n );\n });\n } catch (error) {\n reject(error as Error);\n }\n });\n\n return {\n connect,\n close: async (): Promise<void> => {\n if (isClosed) {\n return;\n }\n isClosed = true;\n if (db) {\n try {\n await new Promise<void>((resolve, reject) => {\n db.close((err: Error | null) => {\n if (err) {\n reject(err);\n return;\n }\n resolve();\n });\n });\n } catch (error) {\n throw mapSqliteError(error);\n }\n }\n },\n query: async <Result extends QueryResultRow = QueryResultRow>(\n sql: SQL,\n _options?: SQLQueryOptions,\n ): Promise<QueryResult<Result>> => {\n try {\n const { query, params } = sqliteFormatter.format(sql, {\n serializer,\n });\n const result = await executeQuery<Result>(\n query,\n params as SQLiteParameters[],\n );\n return { rowCount: result.length, rows: result };\n } catch (error) {\n throw mapSqliteError(error);\n }\n },\n batchQuery: async <Result extends QueryResultRow = QueryResultRow>(\n sqls: SQL[],\n _options?: SQLQueryOptions,\n ): Promise<QueryResult<Result>[]> => {\n try {\n const results: QueryResult<Result>[] = [];\n for (const sql of sqls) {\n const { query, params } = sqliteFormatter.format(sql, {\n serializer,\n });\n const result = await executeQuery<Result>(\n query,\n params as SQLiteParameters[],\n );\n results.push({ rowCount: result.length, rows: result });\n }\n return results;\n } catch (error) {\n throw mapSqliteError(error);\n }\n },\n command: async <Result extends QueryResultRow = QueryResultRow>(\n sql: SQL,\n options?: SQLiteCommandOptions,\n ): Promise<QueryResult<Result>> => {\n try {\n const { query, params } = sqliteFormatter.format(sql, {\n serializer,\n });\n\n return await executeCommand<Result>(\n query,\n params as SQLiteParameters[],\n options,\n );\n } catch (error) {\n throw mapSqliteError(error);\n }\n },\n batchCommand: async <Result extends QueryResultRow = QueryResultRow>(\n sqls: SQL[],\n options?: BatchSQLiteCommandOptions,\n ): Promise<QueryResult<Result>[]> => {\n try {\n const results: QueryResult<Result>[] = [];\n\n for (let i = 0; i < sqls.length; i++) {\n const { query, params } = sqliteFormatter.format(sqls[i]!, {\n serializer,\n });\n const result = await executeCommand<Result>(\n query,\n params as SQLiteParameters[],\n options,\n );\n results.push(result);\n\n if (options?.assertChanges && (result.rowCount ?? 0) === 0) {\n throw new BatchCommandNoChangesError(i);\n }\n }\n return results;\n } catch (error) {\n throw mapSqliteError(error);\n }\n },\n };\n};\n\nexport const checkConnection = async (\n fileName: string,\n serializer: JSONSerializer,\n): Promise<ConnectionCheckResult> => {\n const client = sqlite3Client({\n fileName,\n serializer,\n });\n\n try {\n await client.query(SQL`SELECT 1`);\n return { successful: true };\n } catch (error) {\n const code =\n error instanceof Error &&\n 'code' in error &&\n typeof error.code === 'string'\n ? error.code\n : undefined;\n\n return {\n successful: false,\n errorType:\n code === 'SQLITE_CANTOPEN'\n ? 'ConnectionRefused'\n : code === 'SQLITE_AUTH'\n ? 'Authentication'\n : 'Unknown',\n code,\n error,\n };\n } finally {\n await client.close();\n }\n};\n\nexport const sqlite3Connection = (\n options: SQLite3ConnectionOptions & { serializer: JSONSerializer },\n) =>\n sqliteConnection<SQLite3Connection, SQLite3ConnectionOptions>({\n type: 'Client',\n driverType: SQLite3DriverType,\n sqliteClientFactory: (connectionOptions) => {\n if ('client' in connectionOptions && connectionOptions.client) {\n return connectionOptions.client;\n }\n return sqlite3Client({\n ...connectionOptions,\n serializer: options.serializer,\n });\n },\n connectionOptions: options,\n serializer: options.serializer,\n });\n","import { parsePragmasFromConnectionString } from './connectionString';\nimport {\n DEFAULT_SQLITE_PRAGMA_OPTIONS,\n type SQLitePragmaOptions,\n} from './index';\n\nexport const mergePragmaOptions = (\n connectionString: string,\n userOptions?: Partial<SQLitePragmaOptions>,\n): SQLitePragmaOptions => {\n const connectionStringPragmas =\n parsePragmasFromConnectionString(connectionString);\n\n return {\n ...DEFAULT_SQLITE_PRAGMA_OPTIONS,\n ...connectionStringPragmas,\n ...userOptions,\n };\n};\n\nexport const buildConnectionPragmaStatements = (\n pragmas: SQLitePragmaOptions,\n): Array<{ pragma: string; value: string | number }> => [\n // busy_timeout FIRST - enables waiting on locks for subsequent operations\n { pragma: 'busy_timeout', value: pragmas.busy_timeout! },\n { pragma: 'synchronous', value: pragmas.synchronous! },\n { pragma: 'cache_size', value: pragmas.cache_size! },\n { pragma: 'foreign_keys', value: pragmas.foreign_keys ? 'ON' : 'OFF' },\n { pragma: 'temp_store', value: pragmas.temp_store! },\n ...(pragmas.mmap_size !== undefined\n ? [{ pragma: 'mmap_size', value: pragmas.mmap_size }]\n : []),\n];\n\nexport const buildDatabasePragmaStatements = (\n pragmas: SQLitePragmaOptions,\n): Array<{ pragma: string; value: string | number }> => [\n { pragma: 'journal_mode', value: pragmas.journal_mode! },\n];\n","export * from './connections';\nimport {\n canHandleDriverWithConnectionString,\n dumboDatabaseDriverRegistry,\n JSONSerializer,\n type DumboConnectionOptions,\n type DumboDatabaseDriver,\n} from '../../../core';\nimport {\n DefaultSQLiteMigratorOptions,\n SQLiteConnectionString,\n sqliteFormatter,\n sqliteMetadata,\n sqlitePool,\n toSqlitePoolOptions,\n type SQLitePool,\n type SQLitePoolOptions,\n} from '../core';\nimport {\n sqlite3Connection,\n SQLite3DriverType,\n type SQLite3Connection,\n type SQLite3ConnectionOptions,\n} from './connections';\n\nexport type SQLite3DumboOptions = Omit<\n SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>,\n 'driverType'\n> &\n SQLite3ConnectionOptions & { serializer?: JSONSerializer };\n\nexport type SQLite3PoolOptions = SQLite3DumboOptions;\n\nexport type Sqlite3Pool = SQLitePool<SQLite3Connection>;\n\nexport const sqlite3Pool = (options: SQLite3DumboOptions) =>\n sqlitePool(\n toSqlitePoolOptions({\n ...options,\n driverType: SQLite3DriverType,\n ...('connection' in options\n ? {}\n : {\n connectionOptions: options as SQLite3ConnectionOptions,\n sqliteConnectionFactory: (opts: SQLite3ConnectionOptions) =>\n sqlite3Connection({\n ...opts,\n serializer: options.serializer ?? JSONSerializer,\n }),\n }),\n }),\n );\n\nconst tryParseConnectionString = (connectionString: string) => {\n try {\n return SQLiteConnectionString(connectionString);\n } catch {\n return null;\n }\n};\n\nexport const sqlite3DumboDriver = {\n driverType: SQLite3DriverType,\n createPool: (options) => sqlite3Pool(options as SQLite3DumboOptions),\n sqlFormatter: sqliteFormatter,\n defaultMigratorOptions: DefaultSQLiteMigratorOptions,\n canHandle: canHandleDriverWithConnectionString(\n SQLite3DriverType,\n tryParseConnectionString,\n ),\n databaseMetadata: sqliteMetadata,\n} satisfies DumboDatabaseDriver<\n SQLite3Connection,\n SQLite3DumboOptions,\n Sqlite3Pool\n>;\n\nexport const useSqlite3DumboDriver = () => {\n dumboDatabaseDriverRegistry.register(SQLite3DriverType, sqlite3DumboDriver);\n};\n\nexport type SQLite3DumboConnectionOptions = DumboConnectionOptions<\n typeof sqlite3DumboDriver\n> & { connectionString: string | SQLiteConnectionString };\n\nuseSqlite3DumboDriver();\n\nexport * from './connections';\nexport * from './formatter';\nexport * from './transactions';\n"]}
1
+ {"version":3,"file":"sqlite3.cjs","names":["parsePragmasFromConnectionString","DEFAULT_SQLITE_PRAGMA_OPTIONS","InMemorySQLiteDatabase","DEFAULT_SQLITE_PRAGMA_OPTIONS","mapSqliteError","sqliteFormatter","BatchCommandNoChangesError","sqliteConnection","createSingletonConnectionPool","TaskProcessor","AsyncLocalStorage","guardInitializedOnce","mapSqliteError","createBoundedConnectionPool","sqlitePool","toSqlitePoolOptions","JSONSerializer","isInMemoryDatabase","SQLiteConnectionString","sqliteFormatter","DefaultSQLiteMigratorOptions","canHandleDriverWithConnectionString","sqliteMetadata"],"sources":["../src/storage/sqlite/core/connections/pragmas.ts","../src/storage/sqlite/sqlite3/connections/connection.ts","../src/storage/sqlite/sqlite3/pool/singletonPool.ts","../src/storage/sqlite/sqlite3/pool/dualPool.ts","../src/storage/sqlite/sqlite3/index.ts"],"sourcesContent":["import { parsePragmasFromConnectionString } from './connectionString';\nimport {\n DEFAULT_SQLITE_PRAGMA_OPTIONS,\n type SQLitePragmaOptions,\n} from './index';\n\nexport const mergePragmaOptions = (\n connectionString: string,\n userOptions?: Partial<SQLitePragmaOptions>,\n): SQLitePragmaOptions => {\n const connectionStringPragmas =\n parsePragmasFromConnectionString(connectionString);\n\n return {\n ...DEFAULT_SQLITE_PRAGMA_OPTIONS,\n ...connectionStringPragmas,\n ...userOptions,\n };\n};\n\nexport const buildConnectionPragmaStatements = (\n pragmas: SQLitePragmaOptions,\n): Array<{ pragma: string; value: string | number }> => [\n // busy_timeout FIRST - enables waiting on locks for subsequent operations\n { pragma: 'busy_timeout', value: pragmas.busy_timeout! },\n { pragma: 'synchronous', value: pragmas.synchronous! },\n { pragma: 'cache_size', value: pragmas.cache_size! },\n { pragma: 'foreign_keys', value: pragmas.foreign_keys ? 'ON' : 'OFF' },\n { pragma: 'temp_store', value: pragmas.temp_store! },\n ...(pragmas.mmap_size !== undefined\n ? [{ pragma: 'mmap_size', value: pragmas.mmap_size }]\n : []),\n];\n\nexport const buildDatabasePragmaStatements = (\n pragmas: SQLitePragmaOptions,\n): Array<{ pragma: string; value: string | number }> => [\n { pragma: 'journal_mode', value: pragmas.journal_mode! },\n];\n","import sqlite3 from 'sqlite3';\nimport type { JSONSerializer } from '../../../../core';\nimport {\n BatchCommandNoChangesError,\n SQL,\n type Connection,\n type QueryResult,\n type QueryResultRow,\n type SQLQueryOptions,\n} from '../../../../core';\nimport type {\n SQLiteClient,\n SQLiteClientOrPoolClient,\n SQLiteConnectionOptions,\n SQLiteDriverType,\n SQLiteFileNameOrConnectionString,\n SQLiteTransaction,\n SQLiteTransactionOptions,\n} from '../../core';\nimport {\n DEFAULT_SQLITE_PRAGMA_OPTIONS,\n InMemorySQLiteDatabase,\n sqliteConnection,\n type BatchSQLiteCommandOptions,\n type SQLiteClientOptions,\n type SQLiteCommandOptions,\n type SQLiteParameters,\n} from '../../core/connections';\nimport {\n buildConnectionPragmaStatements,\n buildDatabasePragmaStatements,\n mergePragmaOptions,\n} from '../../core/connections/pragmas';\nimport { mapSqliteError } from '../../core/errors/errorMapper';\nimport { sqliteFormatter } from '../../core/sql/formatter';\n\nexport type SQLite3DriverType = SQLiteDriverType<'sqlite3'>;\nexport const SQLite3DriverType: SQLite3DriverType = 'SQLite:sqlite3';\n\nexport type ConnectionCheckResult =\n | { successful: true }\n | {\n successful: false;\n code: string | undefined;\n errorType: 'ConnectionRefused' | 'Authentication' | 'Unknown';\n error: unknown;\n };\n\nconst hasReturningClause = (sql: string): boolean => /\\bRETURNING\\b/i.test(sql);\n\nexport type SQLite3ClientOptions = SQLiteClientOptions &\n SQLiteFileNameOrConnectionString;\n\nexport type SQLite3Client = SQLiteClientOrPoolClient;\n\nexport type SQLite3ConnectionOptions = SQLiteConnectionOptions &\n ((SQLite3ClientOptions & { client?: never }) | { client: SQLite3Client });\n\nexport type SQLite3Connection<\n ClientType extends SQLiteClientOrPoolClient = SQLiteClientOrPoolClient,\n> = Connection<\n SQLite3Connection,\n SQLite3DriverType,\n ClientType,\n SQLiteTransaction<SQLite3Connection, SQLiteTransactionOptions>\n>;\n\nconst applyPragma = (\n database: sqlite3.Database,\n pragma: string,\n value: string | number,\n) => {\n return new Promise<void>((resolve, reject) => {\n database.run(`PRAGMA ${pragma} = ${value};`, (err) => {\n if (err) reject(err);\n else resolve();\n });\n });\n};\n\nconst queryPragma = (\n database: sqlite3.Database,\n pragma: string,\n): Promise<string> =>\n new Promise((resolve, reject) => {\n database.get(\n `PRAGMA ${pragma};`,\n (err: Error | null, row: { [key: string]: string } | null) => {\n if (err) reject(err);\n else resolve(row?.[pragma] ?? '');\n },\n );\n });\n\nconst applyPragmas = (\n database: sqlite3.Database,\n pragmas: Array<{ pragma: string; value: string | number }>,\n) =>\n pragmas.reduce(\n (promise, { pragma, value }) =>\n promise.then(() => applyPragma(database, pragma, value)),\n Promise.resolve(),\n );\n\nexport const sqlite3Client = (\n options: SQLite3ClientOptions & {\n serializer: JSONSerializer;\n },\n): SQLiteClient => {\n let db: sqlite3.Database;\n\n let isClosed = false;\n\n const { serializer } = options;\n\n const connectionString =\n options.fileName ?? options.connectionString ?? InMemorySQLiteDatabase;\n\n const finalPragmas = mergePragmaOptions(\n String(connectionString),\n options.pragmaOptions,\n );\n\n const connectionPragmas = buildConnectionPragmaStatements(finalPragmas);\n\n const connect: () => Promise<void> = () =>\n db\n ? Promise.resolve()\n : new Promise((resolve, reject) => {\n try {\n db = new sqlite3.Database(\n connectionString,\n sqlite3.OPEN_URI | sqlite3.OPEN_READWRITE | sqlite3.OPEN_CREATE,\n (err) => {\n if (err) {\n reject(err);\n return;\n }\n\n const busyTimeout =\n finalPragmas.busy_timeout ??\n DEFAULT_SQLITE_PRAGMA_OPTIONS.busy_timeout!;\n\n db.configure('busyTimeout', busyTimeout);\n\n applyPragmas(\n db,\n connectionPragmas.filter((p) => p.pragma !== 'busy_timeout'),\n )\n .then(async () => {\n if (options.skipDatabasePragmas) return;\n\n const databasePragmas =\n buildDatabasePragmaStatements(finalPragmas);\n for (const { pragma, value } of databasePragmas) {\n const current = await queryPragma(db, pragma);\n if (\n current.toUpperCase() !== String(value).toUpperCase()\n ) {\n await applyPragma(db, pragma, value);\n }\n }\n })\n .then(() => resolve())\n .catch(reject);\n },\n );\n\n // Apply connection-level pragmas first (busy_timeout is first)\n } catch (error) {\n reject(error instanceof Error ? error : new Error(String(error)));\n }\n });\n\n const executeQuery = <T>(\n sql: string,\n params?: SQLiteParameters[],\n ): Promise<T[]> =>\n new Promise((resolve, reject) => {\n try {\n db.all(sql, params ?? [], (err: Error | null, result: T[]) => {\n if (err) {\n reject(err);\n return;\n }\n\n resolve(result);\n });\n } catch (error) {\n reject(error instanceof Error ? error : new Error(String(error)));\n }\n });\n\n const executeCommand = <Result extends QueryResultRow = QueryResultRow>(\n sql: string,\n params?: SQLiteParameters[],\n options?: SQLiteCommandOptions,\n ): Promise<QueryResult<Result>> =>\n new Promise((resolve, reject) => {\n try {\n if (options?.ignoreChangesCount === true) {\n db.run(\n sql,\n params ?? [],\n function (err: Error | null, rows: Result[]) {\n if (err) {\n reject(err);\n return;\n }\n resolve({\n rowCount: 0,\n rows: rows ?? [],\n });\n },\n );\n return;\n }\n\n if (hasReturningClause(sql)) {\n db.all(sql, params ?? [], (err, rows: Result[]) => {\n if (err) return reject(err);\n resolve({ rowCount: rows.length, rows });\n });\n return;\n }\n\n // OD: 2026-01-21\n // This is needed as SQLite does not return changes count properly\n // We need to query it separately with SELECT changes()\n // This may be fixed eventually in sqlite3 library as Node.js team did here:\n // https://github.com/nodejs/node/issues/57344\n // But for now, we do it manually, as a workaround\n // We also serialize it to avoid race conditions\n db.serialize(() => {\n let hasFailed = false;\n let resultRows: Result[] = [];\n\n db.all(sql, params ?? [], (err, rows: Result[]) => {\n if (err) {\n hasFailed = true;\n return reject(err);\n }\n resultRows = rows;\n });\n\n db.get(\n 'SELECT changes() as changes',\n (err, row: { changes: number } | null) => {\n // If the first query failed, we exit immediately.\n // The promise is already rejected; we don't want to touch it.\n if (hasFailed) return;\n\n if (err) return reject(err);\n\n resolve({\n rowCount: row?.changes ?? 0,\n rows: resultRows,\n });\n },\n );\n });\n } catch (error) {\n reject(error instanceof Error ? error : new Error(String(error)));\n }\n });\n\n return {\n connect,\n close: async (): Promise<void> => {\n if (isClosed) {\n return;\n }\n isClosed = true;\n if (db) {\n try {\n await new Promise<void>((resolve, reject) => {\n db.close((err: Error | null) => {\n if (err) {\n reject(err);\n return;\n }\n resolve();\n });\n });\n } catch (error) {\n throw mapSqliteError(error);\n }\n }\n },\n query: async <Result extends QueryResultRow = QueryResultRow>(\n sql: SQL,\n _options?: SQLQueryOptions,\n ): Promise<QueryResult<Result>> => {\n try {\n const { query, params } = sqliteFormatter.format(sql, {\n serializer,\n });\n const result = await executeQuery<Result>(\n query,\n params as SQLiteParameters[],\n );\n return { rowCount: result.length, rows: result };\n } catch (error) {\n throw mapSqliteError(error);\n }\n },\n batchQuery: async <Result extends QueryResultRow = QueryResultRow>(\n sqls: SQL[],\n _options?: SQLQueryOptions,\n ): Promise<QueryResult<Result>[]> => {\n try {\n const results: QueryResult<Result>[] = [];\n for (const sql of sqls) {\n const { query, params } = sqliteFormatter.format(sql, {\n serializer,\n });\n const result = await executeQuery<Result>(\n query,\n params as SQLiteParameters[],\n );\n results.push({ rowCount: result.length, rows: result });\n }\n return results;\n } catch (error) {\n throw mapSqliteError(error);\n }\n },\n command: async <Result extends QueryResultRow = QueryResultRow>(\n sql: SQL,\n options?: SQLiteCommandOptions,\n ): Promise<QueryResult<Result>> => {\n try {\n const { query, params } = sqliteFormatter.format(sql, {\n serializer,\n });\n\n return await executeCommand<Result>(\n query,\n params as SQLiteParameters[],\n options,\n );\n } catch (error) {\n throw mapSqliteError(error);\n }\n },\n batchCommand: async <Result extends QueryResultRow = QueryResultRow>(\n sqls: SQL[],\n options?: BatchSQLiteCommandOptions,\n ): Promise<QueryResult<Result>[]> => {\n try {\n const results: QueryResult<Result>[] = [];\n\n for (let i = 0; i < sqls.length; i++) {\n const { query, params } = sqliteFormatter.format(sqls[i]!, {\n serializer,\n });\n const result = await executeCommand<Result>(\n query,\n params as SQLiteParameters[],\n options,\n );\n results.push(result);\n\n if (options?.assertChanges && (result.rowCount ?? 0) === 0) {\n throw new BatchCommandNoChangesError(i);\n }\n }\n return results;\n } catch (error) {\n throw mapSqliteError(error);\n }\n },\n };\n};\n\nexport const checkConnection = async (\n fileName: string,\n serializer: JSONSerializer,\n): Promise<ConnectionCheckResult> => {\n const client = sqlite3Client({\n fileName,\n serializer,\n });\n\n try {\n await client.query(SQL`SELECT 1`);\n return { successful: true };\n } catch (error) {\n const code =\n error instanceof Error &&\n 'code' in error &&\n typeof error.code === 'string'\n ? error.code\n : undefined;\n\n return {\n successful: false,\n errorType:\n code === 'SQLITE_CANTOPEN'\n ? 'ConnectionRefused'\n : code === 'SQLITE_AUTH'\n ? 'Authentication'\n : 'Unknown',\n code,\n error,\n };\n } finally {\n await client.close();\n }\n};\n\nexport const sqlite3Connection = (\n options: SQLite3ConnectionOptions & { serializer: JSONSerializer },\n) =>\n sqliteConnection<SQLite3Connection, SQLite3ConnectionOptions>({\n type: 'Client',\n driverType: SQLite3DriverType,\n sqliteClientFactory: (connectionOptions) => {\n if ('client' in connectionOptions && connectionOptions.client) {\n return connectionOptions.client;\n }\n return sqlite3Client({\n ...connectionOptions,\n serializer: options.serializer,\n });\n },\n connectionOptions: options,\n serializer: options.serializer,\n });\n","import { AsyncLocalStorage } from 'node:async_hooks';\nimport {\n createSingletonConnectionPool,\n type ConnectionPool,\n} from '../../../../core';\nimport { TaskProcessor } from '../../../../core/taskProcessing';\nimport type { AnySQLiteConnection } from '../../core';\n\nexport type SQLite3SingletonPoolOptions<\n SQLiteConnectionType extends AnySQLiteConnection,\n> = {\n driverType: SQLiteConnectionType['driverType'];\n getConnection: () => SQLiteConnectionType | Promise<SQLiteConnectionType>;\n closeConnection?: (connection: SQLiteConnectionType) => void | Promise<void>;\n maxQueueSize?: number;\n};\n\n// Creates a singleton-connection pool whose callers serialise through a\n// single-slot TaskProcessor. An AsyncLocalStorage flag lets re-entrant calls\n// (made from inside an active task on this pool) bypass the queue instead of\n// deadlocking — that's the path emmett relies on when a workflow handler\n// internally calls back through the same pool (e.g. messageStore.appendToStream).\nexport const sqlite3SingletonPool = <\n SQLiteConnectionType extends AnySQLiteConnection,\n>(\n options: SQLite3SingletonPoolOptions<SQLiteConnectionType>,\n): ConnectionPool<SQLiteConnectionType> => {\n const inner = createSingletonConnectionPool<SQLiteConnectionType>({\n driverType: options.driverType,\n getConnection: options.getConnection,\n ...(options.closeConnection\n ? { closeConnection: options.closeConnection }\n : {}),\n });\n\n const taskProcessor = new TaskProcessor({\n maxActiveTasks: 1,\n maxQueueSize: options.maxQueueSize ?? 1000,\n });\n const insideWriterTask = new AsyncLocalStorage<true>();\n\n const enqueue = <Result>(op: () => Promise<Result>): Promise<Result> => {\n if (insideWriterTask.getStore() === true) {\n return op();\n }\n return taskProcessor.enqueue(({ ack }) =>\n insideWriterTask.run(true, async () => {\n try {\n return await op();\n } finally {\n ack();\n }\n }),\n );\n };\n\n return {\n driverType: inner.driverType,\n connection: inner.connection.bind(inner),\n transaction: inner.transaction.bind(inner),\n withConnection: (handle, connectionOptions) =>\n enqueue(() => inner.withConnection(handle, connectionOptions)),\n withTransaction: (handle, transactionOptions) =>\n enqueue(() => inner.withTransaction(handle, transactionOptions)),\n execute: {\n query: (sql, queryOptions) =>\n enqueue(() => inner.execute.query(sql, queryOptions)),\n batchQuery: (sqls, queryOptions) =>\n enqueue(() => inner.execute.batchQuery(sqls, queryOptions)),\n command: (sql, commandOptions) =>\n enqueue(() => inner.execute.command(sql, commandOptions)),\n batchCommand: (sqls, commandOptions) =>\n enqueue(() => inner.execute.batchCommand(sqls, commandOptions)),\n },\n close: async () => {\n await taskProcessor.stop();\n await inner.close();\n },\n };\n};\n","import { cpus } from 'os';\nimport { createBoundedConnectionPool } from '../../../../core';\nimport { guardInitializedOnce } from '../../../../core/taskProcessing';\nimport type {\n AnySQLiteConnection,\n SQLiteConnectionFactory,\n SQLiteConnectionOptions,\n SQLitePool,\n} from '../../core';\nimport { mapSqliteError } from '../../core/errors';\nimport { sqlite3SingletonPool } from './singletonPool';\n\nexport type SQLiteDualPoolOptions<\n SQLiteConnectionType extends AnySQLiteConnection,\n ConnectionOptions extends SQLiteConnectionOptions,\n> = {\n driverType: SQLiteConnectionType['driverType'];\n dual?: true;\n singleton?: false;\n pooled?: true;\n connection?: never;\n readerPoolSize?: number;\n sqliteConnectionFactory: SQLiteConnectionFactory<\n SQLiteConnectionType,\n ConnectionOptions\n >;\n connectionOptions?: ConnectionOptions;\n};\n\nexport const sqliteDualConnectionPool = <\n SQLiteConnectionType extends AnySQLiteConnection,\n ConnectionOptions extends SQLiteConnectionOptions,\n>(\n options: SQLiteDualPoolOptions<SQLiteConnectionType, ConnectionOptions>,\n): SQLitePool<SQLiteConnectionType> => {\n const { sqliteConnectionFactory, connectionOptions } = options;\n const readerPoolSize = options.readerPoolSize ?? Math.max(4, cpus().length);\n\n let databaseInitPromise: Promise<void> | null = null;\n\n const guardSingleConnection = guardInitializedOnce(async () => {\n if (databaseInitPromise !== null) {\n return databaseInitPromise;\n }\n\n const initConnection = sqliteConnectionFactory({\n ...connectionOptions,\n skipDatabasePragmas: false,\n readonly: false,\n } as ConnectionOptions);\n\n const initPromise = initConnection.open();\n databaseInitPromise = initPromise;\n\n try {\n await initPromise;\n await initConnection.close();\n } catch (error) {\n databaseInitPromise = null;\n await initConnection.close();\n throw mapSqliteError(error);\n }\n });\n\n const ensureDatabaseInitialized = async (): Promise<void> => {\n if (databaseInitPromise !== null) {\n return databaseInitPromise;\n }\n\n return guardSingleConnection.ensureInitialized();\n };\n\n const wrappedConnectionFactory = async (\n readonly: boolean,\n connectionOptions: ConnectionOptions | undefined,\n ): Promise<SQLiteConnectionType> => {\n await ensureDatabaseInitialized();\n\n const connection = sqliteConnectionFactory({\n ...connectionOptions,\n skipDatabasePragmas: true,\n readonly,\n } as ConnectionOptions);\n\n await connection.open();\n\n return connection;\n };\n\n const writerPool = sqlite3SingletonPool<SQLiteConnectionType>({\n driverType: options.driverType,\n getConnection: () => wrappedConnectionFactory(false, connectionOptions),\n });\n\n const readerPool = createBoundedConnectionPool({\n driverType: options.driverType,\n getConnection: () => wrappedConnectionFactory(true, connectionOptions),\n maxConnections: readerPoolSize,\n });\n\n return {\n driverType: options.driverType,\n connection: (connectionOptions) =>\n connectionOptions?.readonly\n ? readerPool.connection(connectionOptions)\n : writerPool.connection(connectionOptions),\n execute: {\n query: (...args) => readerPool.execute.query(...args),\n batchQuery: (...args) => readerPool.execute.batchQuery(...args),\n command: (...args) => writerPool.execute.command(...args),\n batchCommand: (...args) => writerPool.execute.batchCommand(...args),\n },\n withConnection: (handle, connectionOptions) =>\n connectionOptions?.readonly\n ? readerPool.withConnection(handle, connectionOptions)\n : writerPool.withConnection(handle, connectionOptions),\n transaction: writerPool.transaction,\n withTransaction: writerPool.withTransaction,\n close: async () => {\n await guardSingleConnection.stop();\n await Promise.all([writerPool.close(), readerPool.close()]);\n },\n };\n};\n","export * from './connections';\nimport {\n canHandleDriverWithConnectionString,\n dumboDatabaseDriverRegistry,\n JSONSerializer,\n type DumboConnectionOptions,\n type DumboDatabaseDriver,\n} from '../../../core';\nimport {\n DefaultSQLiteMigratorOptions,\n isInMemoryDatabase,\n SQLiteConnectionString,\n sqliteFormatter,\n sqliteMetadata,\n sqlitePool,\n toSqlitePoolOptions,\n type SQLitePool,\n type SQLitePoolOptions,\n} from '../core';\nimport {\n sqlite3Connection,\n SQLite3DriverType,\n type SQLite3Connection,\n type SQLite3ConnectionOptions,\n} from './connections';\nimport { sqliteDualConnectionPool } from './pool/dualPool';\nimport { sqlite3SingletonPool } from './pool/singletonPool';\n\nexport type SQLite3DumboOptions = Omit<\n SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>,\n 'driverType'\n> &\n SQLite3ConnectionOptions & { serializer?: JSONSerializer };\n\nexport type SQLite3PoolOptions = SQLite3DumboOptions;\n\nexport type Sqlite3Pool = SQLitePool<SQLite3Connection>;\n\nexport const sqlite3Pool = (\n options: SQLite3DumboOptions,\n): SQLitePool<SQLite3Connection> => {\n // Ambient: caller-managed connection. No acquisition, no serialisation.\n if ('connection' in options && options.connection) {\n return sqlitePool(\n toSqlitePoolOptions({\n ...options,\n driverType: SQLite3DriverType,\n }),\n );\n }\n\n const sqliteConnectionFactory = (opts: SQLite3ConnectionOptions) =>\n sqlite3Connection({\n ...opts,\n serializer: options.serializer ?? JSONSerializer,\n });\n\n // Singleton-shaped: in-memory DBs, an explicit client, or `singleton: true`.\n // One connection shared across callers — wrap it so concurrent callers\n // serialise through a single-slot TaskProcessor with ALS-based reentrancy.\n const isSingleton =\n isInMemoryDatabase(options) ||\n ('client' in options && Boolean(options.client)) ||\n options.singleton === true;\n\n if (isSingleton) {\n return sqlite3SingletonPool<SQLite3Connection>({\n driverType: SQLite3DriverType,\n getConnection: () => sqliteConnectionFactory(options),\n });\n }\n\n // Default: file-backed dual pool. Its writer side is serialised inside\n // sqliteDualConnectionPool via the same primitive.\n const readerPoolSize = (options as { readerPoolSize?: number })\n .readerPoolSize;\n return sqliteDualConnectionPool({\n driverType: SQLite3DriverType,\n sqliteConnectionFactory,\n connectionOptions: options,\n ...(readerPoolSize !== undefined ? { readerPoolSize } : {}),\n });\n};\n\nconst tryParseConnectionString = (connectionString: string) => {\n try {\n return SQLiteConnectionString(connectionString);\n } catch {\n return null;\n }\n};\n\nexport const sqlite3DumboDriver = {\n driverType: SQLite3DriverType,\n createPool: (options) => sqlite3Pool(options as SQLite3DumboOptions),\n sqlFormatter: sqliteFormatter,\n defaultMigratorOptions: DefaultSQLiteMigratorOptions,\n canHandle: canHandleDriverWithConnectionString(\n SQLite3DriverType,\n tryParseConnectionString,\n ),\n databaseMetadata: sqliteMetadata,\n} satisfies DumboDatabaseDriver<\n SQLite3Connection,\n SQLite3DumboOptions,\n Sqlite3Pool\n>;\n\nexport const useSqlite3DumboDriver = () => {\n dumboDatabaseDriverRegistry.register(SQLite3DriverType, sqlite3DumboDriver);\n};\n\nexport type SQLite3DumboConnectionOptions = DumboConnectionOptions<\n typeof sqlite3DumboDriver\n> & { connectionString: string | SQLiteConnectionString };\n\nuseSqlite3DumboDriver();\n\nexport * from './connections';\nexport * from './formatter';\nexport * from './transactions';\n"],"mappings":";;;;;;;;;;AAMA,MAAa,sBACX,kBACA,gBACwB;CACxB,MAAM,0BACJA,gDAAiC,iBAAiB;AAEpD,QAAO;EACL,GAAGC;EACH,GAAG;EACH,GAAG;EACJ;;AAGH,MAAa,mCACX,YACsD;CAEtD;EAAE,QAAQ;EAAgB,OAAO,QAAQ;EAAe;CACxD;EAAE,QAAQ;EAAe,OAAO,QAAQ;EAAc;CACtD;EAAE,QAAQ;EAAc,OAAO,QAAQ;EAAa;CACpD;EAAE,QAAQ;EAAgB,OAAO,QAAQ,eAAe,OAAO;EAAO;CACtE;EAAE,QAAQ;EAAc,OAAO,QAAQ;EAAa;CACpD,GAAI,QAAQ,cAAc,SACtB,CAAC;EAAE,QAAQ;EAAa,OAAO,QAAQ;EAAW,CAAC,GACnD,EAAE;CACP;AAED,MAAa,iCACX,YACsD,CACtD;CAAE,QAAQ;CAAgB,OAAO,QAAQ;CAAe,CACzD;;;;ACDD,MAAa,oBAAuC;AAWpD,MAAM,sBAAsB,QAAyB,iBAAiB,KAAK,IAAI;AAmB/E,MAAM,eACJ,UACA,QACA,UACG;AACH,QAAO,IAAI,SAAe,SAAS,WAAW;AAC5C,WAAS,IAAI,UAAU,OAAO,KAAK,MAAM,KAAK,QAAQ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G;EACH,YAAY,QAAQ,cAAcC;EACnC,CAAC;AAUJ,KAJEC,kCAAmB,QAAQ,IAC1B,YAAY,WAAW,QAAQ,QAAQ,OAAO,IAC/C,QAAQ,cAAc,KAGtB,QAAO,qBAAwC;EAC7C,YAAY;EACZ,qBAAqB,wBAAwB,QAAQ;EACtD,CAAC;CAKJ,MAAM,iBAAkB,QACrB;AACH,QAAO,yBAAyB;EAC9B,YAAY;EACZ;EACA,mBAAmB;EACnB,GAAI,mBAAmB,SAAY,EAAE,gBAAgB,GAAG,EAAE;EAC3D,CAAC;;AAGJ,MAAM,4BAA4B,qBAA6B;AAC7D,KAAI;AACF,SAAOC,sCAAuB,iBAAiB;SACzC;AACN,SAAO;;;AAIX,MAAa,qBAAqB;CAChC,YAAY;CACZ,aAAa,YAAY,YAAY,QAA+B;CACpE,cAAcC;CACd,wBAAwBC;CACxB,WAAWC,iDACT,mBACA,yBACD;CACD,kBAAkBC;CACnB;AAMD,MAAa,8BAA8B;AACzC,0CAA4B,SAAS,mBAAmB,mBAAmB;;AAO7E,uBAAuB"}
@@ -1,104 +1,106 @@
1
- import { SQLiteClientOrPoolClient, SQLiteClientOptions, SQLiteFileNameOrConnectionString, SQLiteDriverType, SQLiteTransaction, SQLiteTransactionOptions, SQLiteConnectionOptions, SQLiteClient, SQLitePoolOptions, SQLitePool, AnySQLiteConnection, SQLiteConnectionString } from './sqlite.cjs';
2
- export { AnySQLiteClientConnection, AnySQLitePoolClientConnection, BatchSQLiteCommandOptions, DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, SQLiteAlwaysNewConnectionPool, SQLiteAmbientConnectionPool, SQLiteClientConnection, SQLiteClientConnectionDefinitionOptions, SQLiteClientFactory, SQLiteCommandOptions, SQLiteConnection, SQLiteConnectionDefinitionOptions, SQLiteConnectionFactory, SQLiteDatabaseName, SQLiteDatabaseType, SQLiteError, SQLiteErrorMapper, SQLiteParameters, SQLitePoolClient, SQLitePoolClientConnection, SQLitePoolConnectionDefinitionOptions, SQLitePoolFactoryOptions, SQLitePragmaOptions, SQLiteSQLExecutor, SQLiteSingletonConnectionPool, SQLiteTransactionMode, SqliteAmbientClientConnectionOptions, TransactionNestingCounter, defaultSQLiteDatabase, isInMemoryDatabase, isSQLiteError, mapSqliteError, parsePragmasFromConnectionString, sqliteAlwaysNewConnectionPool, sqliteAmbientClientConnection, sqliteAmbientConnectionPool, sqliteClientConnection, sqliteConnection, sqliteExecute, sqliteFormatter, sqliteMetadata, sqlitePool, sqlitePoolClientConnection, sqliteSQLExecutor, sqliteSingletonConnectionPool, sqliteTransaction, tableExists, toSqlitePoolOptions, transactionNestingCounter } from './sqlite.cjs';
3
- import { C as Connection, J as JSONSerializer, c as DumboConnectionOptions, d as DumboDatabaseDriver, e as ConnectionOptions, f as SQLFormatter, M as MigratorOptions, g as DatabaseMetadata } from './connectionString-Dch_MIRU.cjs';
1
+ import { D as Connection, It as DatabaseMetadata, Ri as SQLFormatter, co as JSONSerializer, ft as DumboDatabaseDriver, k as ConnectionOptions, n as sqliteMetadata, s as DumboConnectionOptions, xt as MigratorOptions } from "./index-BDSQvDH2.cjs";
2
+ import { $ as SQLitePragmaOptions, A as SQLiteClientConnectionDefinitionOptions, B as SQLiteParameters, C as AnySQLiteConnection, D as InMemorySQLiteDatabase, E as DEFAULT_SQLITE_PRAGMA_OPTIONS, F as SQLiteConnection, G as TransactionNestingCounter, H as SQLitePoolClientConnection, I as SQLiteConnectionDefinitionOptions, J as sqliteClientConnection, K as isSQLiteError, L as SQLiteConnectionFactory, M as SQLiteClientOptions, N as SQLiteClientOrPoolClient, O as SQLiteClient, P as SQLiteCommandOptions, Q as SQLiteConnectionString, R as SQLiteConnectionOptions, S as AnySQLiteClientConnection, T as BatchSQLiteCommandOptions, U as SQLitePoolConnectionDefinitionOptions, V as SQLitePoolClient, W as SqliteAmbientClientConnectionOptions, X as sqlitePoolClientConnection, Y as sqliteConnection, Z as transactionNestingCounter, _ as sqliteAmbientConnectionPool, a as defaultSQLiteDatabase, at as SQLiteErrorMapper, b as toSqlitePoolOptions, c as SQLiteAlwaysNewConnectionPool, ct as sqliteSQLExecutor, d as SQLitePool, et as parsePragmasFromConnectionString, f as SQLitePoolFactoryOptions, g as sqliteAlwaysNewConnectionPool, h as isInMemoryDatabase, i as sqliteFormatter, it as sqliteTransaction, j as SQLiteClientFactory, k as SQLiteClientConnection, l as SQLiteAmbientConnectionPool, m as SQLiteSingletonConnectionPool, n as SQLiteDatabaseType, nt as SQLiteTransactionMode, o as tableExists, ot as SQLiteSQLExecutor, p as SQLitePoolOptions, q as sqliteAmbientClientConnection, r as SQLiteDriverType, rt as SQLiteTransactionOptions, s as DefaultSQLiteMigratorOptions, st as sqliteExecute, t as SQLiteDatabaseName, tt as SQLiteTransaction, u as SQLiteFileNameOrConnectionString, v as sqlitePool, w as AnySQLitePoolClientConnection, x as mapSqliteError, y as sqliteSingletonConnectionPool, z as SQLiteError } from "./index-N2ly5shv.cjs";
4
3
 
4
+ //#region src/storage/sqlite/sqlite3/connections/connection.d.ts
5
5
  type SQLite3DriverType = SQLiteDriverType<'sqlite3'>;
6
6
  declare const SQLite3DriverType: SQLite3DriverType;
7
7
  type ConnectionCheckResult = {
8
- successful: true;
8
+ successful: true;
9
9
  } | {
10
- successful: false;
11
- code: string | undefined;
12
- errorType: 'ConnectionRefused' | 'Authentication' | 'Unknown';
13
- error: unknown;
10
+ successful: false;
11
+ code: string | undefined;
12
+ errorType: 'ConnectionRefused' | 'Authentication' | 'Unknown';
13
+ error: unknown;
14
14
  };
15
15
  type SQLite3ClientOptions = SQLiteClientOptions & SQLiteFileNameOrConnectionString;
16
16
  type SQLite3Client = SQLiteClientOrPoolClient;
17
17
  type SQLite3ConnectionOptions = SQLiteConnectionOptions & ((SQLite3ClientOptions & {
18
- client?: never;
18
+ client?: never;
19
19
  }) | {
20
- client: SQLite3Client;
20
+ client: SQLite3Client;
21
21
  });
22
22
  type SQLite3Connection<ClientType extends SQLiteClientOrPoolClient = SQLiteClientOrPoolClient> = Connection<SQLite3Connection, SQLite3DriverType, ClientType, SQLiteTransaction<SQLite3Connection, SQLiteTransactionOptions>>;
23
23
  declare const sqlite3Client: (options: SQLite3ClientOptions & {
24
- serializer: JSONSerializer;
24
+ serializer: JSONSerializer;
25
25
  }) => SQLiteClient;
26
26
  declare const checkConnection: (fileName: string, serializer: JSONSerializer) => Promise<ConnectionCheckResult>;
27
27
  declare const sqlite3Connection: (options: SQLite3ConnectionOptions & {
28
- serializer: JSONSerializer;
28
+ serializer: JSONSerializer;
29
29
  }) => SQLite3Connection<SQLiteClientOrPoolClient>;
30
-
30
+ //#endregion
31
+ //#region src/storage/sqlite/sqlite3/index.d.ts
31
32
  type SQLite3DumboOptions = Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, 'driverType'> & SQLite3ConnectionOptions & {
32
- serializer?: JSONSerializer;
33
+ serializer?: JSONSerializer;
33
34
  };
34
35
  type SQLite3PoolOptions = SQLite3DumboOptions;
35
36
  type Sqlite3Pool = SQLitePool<SQLite3Connection>;
36
37
  declare const sqlite3Pool: (options: SQLite3DumboOptions) => SQLitePool<SQLite3Connection>;
37
38
  declare const sqlite3DumboDriver: {
38
- driverType: "SQLite:sqlite3";
39
- createPool: (options: ({
40
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
41
- driverType?: "SQLite:sqlite3";
42
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
43
- fileName: string | SQLiteConnectionString;
44
- connectionString?: never;
45
- } & {
46
- client?: never;
47
- } & {
48
- serializer?: JSONSerializer;
49
- }, "driverType" | "driver" | "connectionString">) | ({
50
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
51
- driverType?: "SQLite:sqlite3";
52
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
53
- connectionString: string | SQLiteConnectionString;
54
- fileName?: never;
55
- } & {
56
- client?: never;
57
- } & {
58
- serializer?: JSONSerializer;
59
- }, "driverType" | "driver" | "connectionString">) | ({
60
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
61
- driverType?: "SQLite:sqlite3";
62
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
63
- client: SQLite3Client;
64
- } & {
65
- serializer?: JSONSerializer;
66
- }, "driverType" | "driver" | "connectionString">)) => SQLitePool<SQLite3Connection>;
67
- sqlFormatter: SQLFormatter;
68
- defaultMigratorOptions: MigratorOptions;
69
- canHandle: (options: ({
70
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
71
- driverType?: "SQLite:sqlite3";
72
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
73
- fileName: string | SQLiteConnectionString;
74
- connectionString?: never;
75
- } & {
76
- client?: never;
77
- } & {
78
- serializer?: JSONSerializer;
79
- }, "driverType" | "driver" | "connectionString">) | ({
80
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
81
- driverType?: "SQLite:sqlite3";
82
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
83
- connectionString: string | SQLiteConnectionString;
84
- fileName?: never;
85
- } & {
86
- client?: never;
87
- } & {
88
- serializer?: JSONSerializer;
89
- }, "driverType" | "driver" | "connectionString">) | ({
90
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
91
- driverType?: "SQLite:sqlite3";
92
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
93
- client: SQLite3Client;
94
- } & {
95
- serializer?: JSONSerializer;
96
- }, "driverType" | "driver" | "connectionString">)) => boolean;
97
- databaseMetadata: DatabaseMetadata<false, false, false>;
39
+ driverType: "SQLite:sqlite3";
40
+ createPool: (options: ({
41
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
42
+ driverType?: "SQLite:sqlite3";
43
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
44
+ fileName: string | SQLiteConnectionString;
45
+ connectionString?: never;
46
+ } & {
47
+ client?: never;
48
+ } & {
49
+ serializer?: JSONSerializer;
50
+ }, "driverType" | "driver" | "connectionString">) | ({
51
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
52
+ driverType?: "SQLite:sqlite3";
53
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
54
+ connectionString: string | SQLiteConnectionString;
55
+ fileName?: never;
56
+ } & {
57
+ client?: never;
58
+ } & {
59
+ serializer?: JSONSerializer;
60
+ }, "driverType" | "driver" | "connectionString">) | ({
61
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
62
+ driverType?: "SQLite:sqlite3";
63
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
64
+ client: SQLite3Client;
65
+ } & {
66
+ serializer?: JSONSerializer;
67
+ }, "driverType" | "driver" | "connectionString">)) => SQLitePool<SQLite3Connection>;
68
+ sqlFormatter: SQLFormatter;
69
+ defaultMigratorOptions: MigratorOptions;
70
+ canHandle: (options: ({
71
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
72
+ driverType?: "SQLite:sqlite3";
73
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
74
+ fileName: string | SQLiteConnectionString;
75
+ connectionString?: never;
76
+ } & {
77
+ client?: never;
78
+ } & {
79
+ serializer?: JSONSerializer;
80
+ }, "driverType" | "driver" | "connectionString">) | ({
81
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
82
+ driverType?: "SQLite:sqlite3";
83
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
84
+ connectionString: string | SQLiteConnectionString;
85
+ fileName?: never;
86
+ } & {
87
+ client?: never;
88
+ } & {
89
+ serializer?: JSONSerializer;
90
+ }, "driverType" | "driver" | "connectionString">) | ({
91
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
92
+ driverType?: "SQLite:sqlite3";
93
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
94
+ client: SQLite3Client;
95
+ } & {
96
+ serializer?: JSONSerializer;
97
+ }, "driverType" | "driver" | "connectionString">)) => boolean;
98
+ databaseMetadata: DatabaseMetadata<false, false, false>;
98
99
  };
99
100
  declare const useSqlite3DumboDriver: () => void;
100
101
  type SQLite3DumboConnectionOptions = DumboConnectionOptions<typeof sqlite3DumboDriver> & {
101
- connectionString: string | SQLiteConnectionString;
102
+ connectionString: string | SQLiteConnectionString;
102
103
  };
103
-
104
- export { AnySQLiteConnection, type ConnectionCheckResult, type SQLite3Client, type SQLite3ClientOptions, type SQLite3Connection, type SQLite3ConnectionOptions, SQLite3DriverType, type SQLite3DumboConnectionOptions, type SQLite3DumboOptions, type SQLite3PoolOptions, SQLiteClient, SQLiteClientOptions, SQLiteClientOrPoolClient, SQLiteConnectionOptions, SQLiteConnectionString, SQLiteDriverType, SQLiteFileNameOrConnectionString, SQLitePool, SQLitePoolOptions, SQLiteTransaction, SQLiteTransactionOptions, type Sqlite3Pool, checkConnection, sqlite3Client, sqlite3Connection, sqlite3DumboDriver, sqlite3Pool, useSqlite3DumboDriver };
104
+ //#endregion
105
+ export { AnySQLiteClientConnection, AnySQLiteConnection, AnySQLitePoolClientConnection, BatchSQLiteCommandOptions, ConnectionCheckResult, DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, SQLite3Client, SQLite3ClientOptions, SQLite3Connection, SQLite3ConnectionOptions, SQLite3DriverType, SQLite3DumboConnectionOptions, SQLite3DumboOptions, SQLite3PoolOptions, SQLiteAlwaysNewConnectionPool, SQLiteAmbientConnectionPool, SQLiteClient, SQLiteClientConnection, SQLiteClientConnectionDefinitionOptions, SQLiteClientFactory, SQLiteClientOptions, SQLiteClientOrPoolClient, SQLiteCommandOptions, SQLiteConnection, SQLiteConnectionDefinitionOptions, SQLiteConnectionFactory, SQLiteConnectionOptions, SQLiteConnectionString, SQLiteDatabaseName, SQLiteDatabaseType, SQLiteDriverType, SQLiteError, SQLiteErrorMapper, SQLiteFileNameOrConnectionString, SQLiteParameters, SQLitePool, SQLitePoolClient, SQLitePoolClientConnection, SQLitePoolConnectionDefinitionOptions, SQLitePoolFactoryOptions, SQLitePoolOptions, SQLitePragmaOptions, SQLiteSQLExecutor, SQLiteSingletonConnectionPool, SQLiteTransaction, SQLiteTransactionMode, SQLiteTransactionOptions, Sqlite3Pool, SqliteAmbientClientConnectionOptions, TransactionNestingCounter, checkConnection, defaultSQLiteDatabase, isInMemoryDatabase, isSQLiteError, mapSqliteError, parsePragmasFromConnectionString, sqlite3Client, sqlite3Connection, sqlite3DumboDriver, sqlite3Pool, sqliteAlwaysNewConnectionPool, sqliteAmbientClientConnection, sqliteAmbientConnectionPool, sqliteClientConnection, sqliteConnection, sqliteExecute, sqliteFormatter, sqliteMetadata, sqlitePool, sqlitePoolClientConnection, sqliteSQLExecutor, sqliteSingletonConnectionPool, sqliteTransaction, tableExists, toSqlitePoolOptions, transactionNestingCounter, useSqlite3DumboDriver };
106
+ //# sourceMappingURL=sqlite3.d.cts.map
package/dist/sqlite3.d.ts CHANGED
@@ -1,104 +1,106 @@
1
- import { SQLiteClientOrPoolClient, SQLiteClientOptions, SQLiteFileNameOrConnectionString, SQLiteDriverType, SQLiteTransaction, SQLiteTransactionOptions, SQLiteConnectionOptions, SQLiteClient, SQLitePoolOptions, SQLitePool, AnySQLiteConnection, SQLiteConnectionString } from './sqlite.js';
2
- export { AnySQLiteClientConnection, AnySQLitePoolClientConnection, BatchSQLiteCommandOptions, DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, SQLiteAlwaysNewConnectionPool, SQLiteAmbientConnectionPool, SQLiteClientConnection, SQLiteClientConnectionDefinitionOptions, SQLiteClientFactory, SQLiteCommandOptions, SQLiteConnection, SQLiteConnectionDefinitionOptions, SQLiteConnectionFactory, SQLiteDatabaseName, SQLiteDatabaseType, SQLiteError, SQLiteErrorMapper, SQLiteParameters, SQLitePoolClient, SQLitePoolClientConnection, SQLitePoolConnectionDefinitionOptions, SQLitePoolFactoryOptions, SQLitePragmaOptions, SQLiteSQLExecutor, SQLiteSingletonConnectionPool, SQLiteTransactionMode, SqliteAmbientClientConnectionOptions, TransactionNestingCounter, defaultSQLiteDatabase, isInMemoryDatabase, isSQLiteError, mapSqliteError, parsePragmasFromConnectionString, sqliteAlwaysNewConnectionPool, sqliteAmbientClientConnection, sqliteAmbientConnectionPool, sqliteClientConnection, sqliteConnection, sqliteExecute, sqliteFormatter, sqliteMetadata, sqlitePool, sqlitePoolClientConnection, sqliteSQLExecutor, sqliteSingletonConnectionPool, sqliteTransaction, tableExists, toSqlitePoolOptions, transactionNestingCounter } from './sqlite.js';
3
- import { C as Connection, J as JSONSerializer, c as DumboConnectionOptions, d as DumboDatabaseDriver, e as ConnectionOptions, f as SQLFormatter, M as MigratorOptions, g as DatabaseMetadata } from './connectionString-Dch_MIRU.js';
1
+ import { D as Connection, It as DatabaseMetadata, Ri as SQLFormatter, co as JSONSerializer, ft as DumboDatabaseDriver, k as ConnectionOptions, n as sqliteMetadata, s as DumboConnectionOptions, xt as MigratorOptions } from "./index-zkszkJqP.js";
2
+ import { $ as SQLitePragmaOptions, A as SQLiteClientConnectionDefinitionOptions, B as SQLiteParameters, C as AnySQLiteConnection, D as InMemorySQLiteDatabase, E as DEFAULT_SQLITE_PRAGMA_OPTIONS, F as SQLiteConnection, G as TransactionNestingCounter, H as SQLitePoolClientConnection, I as SQLiteConnectionDefinitionOptions, J as sqliteClientConnection, K as isSQLiteError, L as SQLiteConnectionFactory, M as SQLiteClientOptions, N as SQLiteClientOrPoolClient, O as SQLiteClient, P as SQLiteCommandOptions, Q as SQLiteConnectionString, R as SQLiteConnectionOptions, S as AnySQLiteClientConnection, T as BatchSQLiteCommandOptions, U as SQLitePoolConnectionDefinitionOptions, V as SQLitePoolClient, W as SqliteAmbientClientConnectionOptions, X as sqlitePoolClientConnection, Y as sqliteConnection, Z as transactionNestingCounter, _ as sqliteAmbientConnectionPool, a as defaultSQLiteDatabase, at as SQLiteErrorMapper, b as toSqlitePoolOptions, c as SQLiteAlwaysNewConnectionPool, ct as sqliteSQLExecutor, d as SQLitePool, et as parsePragmasFromConnectionString, f as SQLitePoolFactoryOptions, g as sqliteAlwaysNewConnectionPool, h as isInMemoryDatabase, i as sqliteFormatter, it as sqliteTransaction, j as SQLiteClientFactory, k as SQLiteClientConnection, l as SQLiteAmbientConnectionPool, m as SQLiteSingletonConnectionPool, n as SQLiteDatabaseType, nt as SQLiteTransactionMode, o as tableExists, ot as SQLiteSQLExecutor, p as SQLitePoolOptions, q as sqliteAmbientClientConnection, r as SQLiteDriverType, rt as SQLiteTransactionOptions, s as DefaultSQLiteMigratorOptions, st as sqliteExecute, t as SQLiteDatabaseName, tt as SQLiteTransaction, u as SQLiteFileNameOrConnectionString, v as sqlitePool, w as AnySQLitePoolClientConnection, x as mapSqliteError, y as sqliteSingletonConnectionPool, z as SQLiteError } from "./index-BgFHGsuP.js";
4
3
 
4
+ //#region src/storage/sqlite/sqlite3/connections/connection.d.ts
5
5
  type SQLite3DriverType = SQLiteDriverType<'sqlite3'>;
6
6
  declare const SQLite3DriverType: SQLite3DriverType;
7
7
  type ConnectionCheckResult = {
8
- successful: true;
8
+ successful: true;
9
9
  } | {
10
- successful: false;
11
- code: string | undefined;
12
- errorType: 'ConnectionRefused' | 'Authentication' | 'Unknown';
13
- error: unknown;
10
+ successful: false;
11
+ code: string | undefined;
12
+ errorType: 'ConnectionRefused' | 'Authentication' | 'Unknown';
13
+ error: unknown;
14
14
  };
15
15
  type SQLite3ClientOptions = SQLiteClientOptions & SQLiteFileNameOrConnectionString;
16
16
  type SQLite3Client = SQLiteClientOrPoolClient;
17
17
  type SQLite3ConnectionOptions = SQLiteConnectionOptions & ((SQLite3ClientOptions & {
18
- client?: never;
18
+ client?: never;
19
19
  }) | {
20
- client: SQLite3Client;
20
+ client: SQLite3Client;
21
21
  });
22
22
  type SQLite3Connection<ClientType extends SQLiteClientOrPoolClient = SQLiteClientOrPoolClient> = Connection<SQLite3Connection, SQLite3DriverType, ClientType, SQLiteTransaction<SQLite3Connection, SQLiteTransactionOptions>>;
23
23
  declare const sqlite3Client: (options: SQLite3ClientOptions & {
24
- serializer: JSONSerializer;
24
+ serializer: JSONSerializer;
25
25
  }) => SQLiteClient;
26
26
  declare const checkConnection: (fileName: string, serializer: JSONSerializer) => Promise<ConnectionCheckResult>;
27
27
  declare const sqlite3Connection: (options: SQLite3ConnectionOptions & {
28
- serializer: JSONSerializer;
28
+ serializer: JSONSerializer;
29
29
  }) => SQLite3Connection<SQLiteClientOrPoolClient>;
30
-
30
+ //#endregion
31
+ //#region src/storage/sqlite/sqlite3/index.d.ts
31
32
  type SQLite3DumboOptions = Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, 'driverType'> & SQLite3ConnectionOptions & {
32
- serializer?: JSONSerializer;
33
+ serializer?: JSONSerializer;
33
34
  };
34
35
  type SQLite3PoolOptions = SQLite3DumboOptions;
35
36
  type Sqlite3Pool = SQLitePool<SQLite3Connection>;
36
37
  declare const sqlite3Pool: (options: SQLite3DumboOptions) => SQLitePool<SQLite3Connection>;
37
38
  declare const sqlite3DumboDriver: {
38
- driverType: "SQLite:sqlite3";
39
- createPool: (options: ({
40
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
41
- driverType?: "SQLite:sqlite3";
42
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
43
- fileName: string | SQLiteConnectionString;
44
- connectionString?: never;
45
- } & {
46
- client?: never;
47
- } & {
48
- serializer?: JSONSerializer;
49
- }, "driverType" | "driver" | "connectionString">) | ({
50
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
51
- driverType?: "SQLite:sqlite3";
52
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
53
- connectionString: string | SQLiteConnectionString;
54
- fileName?: never;
55
- } & {
56
- client?: never;
57
- } & {
58
- serializer?: JSONSerializer;
59
- }, "driverType" | "driver" | "connectionString">) | ({
60
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
61
- driverType?: "SQLite:sqlite3";
62
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
63
- client: SQLite3Client;
64
- } & {
65
- serializer?: JSONSerializer;
66
- }, "driverType" | "driver" | "connectionString">)) => SQLitePool<SQLite3Connection>;
67
- sqlFormatter: SQLFormatter;
68
- defaultMigratorOptions: MigratorOptions;
69
- canHandle: (options: ({
70
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
71
- driverType?: "SQLite:sqlite3";
72
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
73
- fileName: string | SQLiteConnectionString;
74
- connectionString?: never;
75
- } & {
76
- client?: never;
77
- } & {
78
- serializer?: JSONSerializer;
79
- }, "driverType" | "driver" | "connectionString">) | ({
80
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
81
- driverType?: "SQLite:sqlite3";
82
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
83
- connectionString: string | SQLiteConnectionString;
84
- fileName?: never;
85
- } & {
86
- client?: never;
87
- } & {
88
- serializer?: JSONSerializer;
89
- }, "driverType" | "driver" | "connectionString">) | ({
90
- driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
91
- driverType?: "SQLite:sqlite3";
92
- } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
93
- client: SQLite3Client;
94
- } & {
95
- serializer?: JSONSerializer;
96
- }, "driverType" | "driver" | "connectionString">)) => boolean;
97
- databaseMetadata: DatabaseMetadata<false, false, false>;
39
+ driverType: "SQLite:sqlite3";
40
+ createPool: (options: ({
41
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
42
+ driverType?: "SQLite:sqlite3";
43
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
44
+ fileName: string | SQLiteConnectionString;
45
+ connectionString?: never;
46
+ } & {
47
+ client?: never;
48
+ } & {
49
+ serializer?: JSONSerializer;
50
+ }, "driverType" | "driver" | "connectionString">) | ({
51
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
52
+ driverType?: "SQLite:sqlite3";
53
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
54
+ connectionString: string | SQLiteConnectionString;
55
+ fileName?: never;
56
+ } & {
57
+ client?: never;
58
+ } & {
59
+ serializer?: JSONSerializer;
60
+ }, "driverType" | "driver" | "connectionString">) | ({
61
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
62
+ driverType?: "SQLite:sqlite3";
63
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
64
+ client: SQLite3Client;
65
+ } & {
66
+ serializer?: JSONSerializer;
67
+ }, "driverType" | "driver" | "connectionString">)) => SQLitePool<SQLite3Connection>;
68
+ sqlFormatter: SQLFormatter;
69
+ defaultMigratorOptions: MigratorOptions;
70
+ canHandle: (options: ({
71
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
72
+ driverType?: "SQLite:sqlite3";
73
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
74
+ fileName: string | SQLiteConnectionString;
75
+ connectionString?: never;
76
+ } & {
77
+ client?: never;
78
+ } & {
79
+ serializer?: JSONSerializer;
80
+ }, "driverType" | "driver" | "connectionString">) | ({
81
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
82
+ driverType?: "SQLite:sqlite3";
83
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
84
+ connectionString: string | SQLiteConnectionString;
85
+ fileName?: never;
86
+ } & {
87
+ client?: never;
88
+ } & {
89
+ serializer?: JSONSerializer;
90
+ }, "driverType" | "driver" | "connectionString">) | ({
91
+ driver?: DumboDatabaseDriver<SQLite3Connection, SQLite3DumboOptions, Sqlite3Pool>;
92
+ driverType?: "SQLite:sqlite3";
93
+ } & Omit<Omit<SQLitePoolOptions<SQLite3Connection, SQLite3ConnectionOptions>, "driverType"> & ConnectionOptions<AnySQLiteConnection> & SQLiteClientOptions & {
94
+ client: SQLite3Client;
95
+ } & {
96
+ serializer?: JSONSerializer;
97
+ }, "driverType" | "driver" | "connectionString">)) => boolean;
98
+ databaseMetadata: DatabaseMetadata<false, false, false>;
98
99
  };
99
100
  declare const useSqlite3DumboDriver: () => void;
100
101
  type SQLite3DumboConnectionOptions = DumboConnectionOptions<typeof sqlite3DumboDriver> & {
101
- connectionString: string | SQLiteConnectionString;
102
+ connectionString: string | SQLiteConnectionString;
102
103
  };
103
-
104
- export { AnySQLiteConnection, type ConnectionCheckResult, type SQLite3Client, type SQLite3ClientOptions, type SQLite3Connection, type SQLite3ConnectionOptions, SQLite3DriverType, type SQLite3DumboConnectionOptions, type SQLite3DumboOptions, type SQLite3PoolOptions, SQLiteClient, SQLiteClientOptions, SQLiteClientOrPoolClient, SQLiteConnectionOptions, SQLiteConnectionString, SQLiteDriverType, SQLiteFileNameOrConnectionString, SQLitePool, SQLitePoolOptions, SQLiteTransaction, SQLiteTransactionOptions, type Sqlite3Pool, checkConnection, sqlite3Client, sqlite3Connection, sqlite3DumboDriver, sqlite3Pool, useSqlite3DumboDriver };
104
+ //#endregion
105
+ export { AnySQLiteClientConnection, AnySQLiteConnection, AnySQLitePoolClientConnection, BatchSQLiteCommandOptions, ConnectionCheckResult, DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, SQLite3Client, SQLite3ClientOptions, SQLite3Connection, SQLite3ConnectionOptions, SQLite3DriverType, SQLite3DumboConnectionOptions, SQLite3DumboOptions, SQLite3PoolOptions, SQLiteAlwaysNewConnectionPool, SQLiteAmbientConnectionPool, SQLiteClient, SQLiteClientConnection, SQLiteClientConnectionDefinitionOptions, SQLiteClientFactory, SQLiteClientOptions, SQLiteClientOrPoolClient, SQLiteCommandOptions, SQLiteConnection, SQLiteConnectionDefinitionOptions, SQLiteConnectionFactory, SQLiteConnectionOptions, SQLiteConnectionString, SQLiteDatabaseName, SQLiteDatabaseType, SQLiteDriverType, SQLiteError, SQLiteErrorMapper, SQLiteFileNameOrConnectionString, SQLiteParameters, SQLitePool, SQLitePoolClient, SQLitePoolClientConnection, SQLitePoolConnectionDefinitionOptions, SQLitePoolFactoryOptions, SQLitePoolOptions, SQLitePragmaOptions, SQLiteSQLExecutor, SQLiteSingletonConnectionPool, SQLiteTransaction, SQLiteTransactionMode, SQLiteTransactionOptions, Sqlite3Pool, SqliteAmbientClientConnectionOptions, TransactionNestingCounter, checkConnection, defaultSQLiteDatabase, isInMemoryDatabase, isSQLiteError, mapSqliteError, parsePragmasFromConnectionString, sqlite3Client, sqlite3Connection, sqlite3DumboDriver, sqlite3Pool, sqliteAlwaysNewConnectionPool, sqliteAmbientClientConnection, sqliteAmbientConnectionPool, sqliteClientConnection, sqliteConnection, sqliteExecute, sqliteFormatter, sqliteMetadata, sqlitePool, sqlitePoolClientConnection, sqliteSQLExecutor, sqliteSingletonConnectionPool, sqliteTransaction, tableExists, toSqlitePoolOptions, transactionNestingCounter, useSqlite3DumboDriver };
106
+ //# sourceMappingURL=sqlite3.d.ts.map