@event-driven-io/dumbo 0.13.0-beta.40 → 0.13.0-beta.42

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 (61) hide show
  1. package/dist/cloudflare.cjs +4 -3
  2. package/dist/cloudflare.d.cts +3 -3
  3. package/dist/cloudflare.d.ts +3 -3
  4. package/dist/cloudflare.js +4 -4
  5. package/dist/{core-D-smW7cm.cjs → core-BPSzA-lq.cjs} +2091 -2075
  6. package/dist/core-BPSzA-lq.cjs.map +1 -0
  7. package/dist/{core-DXCRR5A9.cjs → core-BuSVyamf.cjs} +33 -3
  8. package/dist/core-BuSVyamf.cjs.map +1 -0
  9. package/dist/{core-BchvTX3G.js → core-C3xoqqDs.js} +28 -4
  10. package/dist/core-C3xoqqDs.js.map +1 -0
  11. package/dist/{core-DlV8ua1P.js → core-CHw8vO17.js} +9 -4
  12. package/dist/core-CHw8vO17.js.map +1 -0
  13. package/dist/{core-CWZb0zOY.cjs → core-CUGYxOEQ.cjs} +14 -3
  14. package/dist/core-CUGYxOEQ.cjs.map +1 -0
  15. package/dist/{core-BG__WVn6.js → core-IV7or0Mj.js} +2086 -2070
  16. package/dist/core-IV7or0Mj.js.map +1 -0
  17. package/dist/{index-N2ly5shv.d.cts → index-BJC_v03L.d.ts} +9 -3
  18. package/dist/{index-BDSQvDH2.d.cts → index-CfH0u2y_.d.cts} +260 -163
  19. package/dist/{index-BgFHGsuP.d.ts → index-DP9b7v4e.d.cts} +9 -3
  20. package/dist/{index-zkszkJqP.d.ts → index-QWEAqtHF.d.ts} +260 -163
  21. package/dist/{index-BdWFmDhJ.d.cts → index-qxECrBHo.d.ts} +10 -3
  22. package/dist/{index-cxtbLiju.d.ts → index-tS9lpLPz.d.cts} +10 -3
  23. package/dist/index.cjs +24 -12
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +2 -3
  26. package/dist/index.d.ts +2 -3
  27. package/dist/index.js +24 -13
  28. package/dist/index.js.map +1 -1
  29. package/dist/pg.cjs +4 -3
  30. package/dist/pg.d.cts +3 -3
  31. package/dist/pg.d.ts +3 -3
  32. package/dist/pg.js +4 -4
  33. package/dist/{postgreSQLMetadata-WGXySO7a.cjs → postgreSQLMetadata-CCsCJ-eH.cjs} +2 -2
  34. package/dist/{postgreSQLMetadata-WGXySO7a.cjs.map → postgreSQLMetadata-CCsCJ-eH.cjs.map} +1 -1
  35. package/dist/{postgreSQLMetadata-BTz6vdwE.js → postgreSQLMetadata-bCBDGz1f.js} +2 -2
  36. package/dist/{postgreSQLMetadata-BTz6vdwE.js.map → postgreSQLMetadata-bCBDGz1f.js.map} +1 -1
  37. package/dist/postgresql.cjs +3 -2
  38. package/dist/postgresql.d.cts +3 -3
  39. package/dist/postgresql.d.ts +3 -3
  40. package/dist/postgresql.js +3 -3
  41. package/dist/sqlite.cjs +3 -2
  42. package/dist/sqlite.d.cts +3 -3
  43. package/dist/sqlite.d.ts +3 -3
  44. package/dist/sqlite.js +3 -3
  45. package/dist/sqlite3.cjs +4 -3
  46. package/dist/sqlite3.d.cts +3 -3
  47. package/dist/sqlite3.d.ts +3 -3
  48. package/dist/sqlite3.js +4 -4
  49. package/dist/{sqliteMetadata-PJTRPIZ1.cjs → sqliteMetadata-Cc7Z03lm.cjs} +2 -2
  50. package/dist/{sqliteMetadata-PJTRPIZ1.cjs.map → sqliteMetadata-Cc7Z03lm.cjs.map} +1 -1
  51. package/dist/{sqliteMetadata-7qBjsMBN.js → sqliteMetadata-CvvEc1-v.js} +2 -2
  52. package/dist/{sqliteMetadata-7qBjsMBN.js.map → sqliteMetadata-CvvEc1-v.js.map} +1 -1
  53. package/package.json +1 -1
  54. package/dist/core-BG__WVn6.js.map +0 -1
  55. package/dist/core-BchvTX3G.js.map +0 -1
  56. package/dist/core-CWZb0zOY.cjs.map +0 -1
  57. package/dist/core-D-smW7cm.cjs.map +0 -1
  58. package/dist/core-DXCRR5A9.cjs.map +0 -1
  59. package/dist/core-DlV8ua1P.js.map +0 -1
  60. package/dist/index-DaP2fTEX.d.ts +0 -67
  61. package/dist/index-S_wp0Eaf.d.cts +0 -67
@@ -1,4 +1,4 @@
1
- const require_core = require('./core-D-smW7cm.cjs');
1
+ const require_core = require('./core-BPSzA-lq.cjs');
2
2
 
3
3
  //#region src/storage/postgresql/core/connections/connectionString.ts
4
4
  const defaultPostgreSQLConnectionString = "postgresql://postgres@localhost:5432/postgres";
@@ -115,4 +115,4 @@ Object.defineProperty(exports, 'tableExistsSQL', {
115
115
  return tableExistsSQL;
116
116
  }
117
117
  });
118
- //# sourceMappingURL=postgreSQLMetadata-WGXySO7a.cjs.map
118
+ //# sourceMappingURL=postgreSQLMetadata-CCsCJ-eH.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"postgreSQLMetadata-WGXySO7a.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
+ {"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,4 +1,4 @@
1
- import { ln as exists, xt as SQL } from "./core-BG__WVn6.js";
1
+ import { O as SQL, Wt as exists } from "./core-IV7or0Mj.js";
2
2
 
3
3
  //#region src/storage/postgresql/core/connections/connectionString.ts
4
4
  const defaultPostgreSQLConnectionString = "postgresql://postgres@localhost:5432/postgres";
@@ -62,4 +62,4 @@ dumboDatabaseMetadataRegistry.register("PostgreSQL", postgreSQLMetadata);
62
62
 
63
63
  //#endregion
64
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-BTz6vdwE.js.map
65
+ //# sourceMappingURL=postgreSQLMetadata-bCBDGz1f.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"postgreSQLMetadata-BTz6vdwE.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
+ {"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,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_postgreSQLMetadata = require('./postgreSQLMetadata-WGXySO7a.cjs');
3
- const require_core = require('./core-DXCRR5A9.cjs');
2
+ const require_postgreSQLMetadata = require('./postgreSQLMetadata-CCsCJ-eH.cjs');
3
+ const require_core = require('./core-BuSVyamf.cjs');
4
4
 
5
5
  exports.AdvisoryLock = require_core.AdvisoryLock;
6
6
  exports.DefaultPostgreSQLMigratorOptions = require_core.DefaultPostgreSQLMigratorOptions;
@@ -8,6 +8,7 @@ exports.PostgreSQLArrayProcessor = require_core.PostgreSQLArrayProcessor;
8
8
  exports.PostgreSQLConnectionString = require_postgreSQLMetadata.PostgreSQLConnectionString;
9
9
  exports.PostgreSQLDatabaseName = require_core.PostgreSQLDatabaseName;
10
10
  exports.PostgreSQLExpandSQLInProcessor = require_core.PostgreSQLExpandSQLInProcessor;
11
+ exports.PostgreSQLJSON = require_core.PostgreSQLJSON;
11
12
  exports.acquireAdvisoryLock = require_core.acquireAdvisoryLock;
12
13
  exports.advisoryLock = require_core.advisoryLock;
13
14
  exports.defaultPostgreSQLConnectionString = require_postgreSQLMetadata.defaultPostgreSQLConnectionString;
@@ -1,3 +1,3 @@
1
- import { r as postgreSQLMetadata } from "./index-BDSQvDH2.cjs";
2
- import { _ as tryAcquireAdvisoryLock, a as PostgreSQLExpandSQLInProcessor, b as defaultPostgreSQLConnectionString, c as functionExists, d as tableExistsSQL, f as DefaultPostgreSQLMigratorOptions, g as releaseAdvisoryLock, h as advisoryLock, i as PostgreSQLArrayProcessor, l as functionExistsSQL, m as acquireAdvisoryLock, n as PostgreSQLDriverType, o as pgFormatter, p as AdvisoryLock, r as postgreSQLColumnProcessors, s as defaultPostgreSqlDatabase, t as PostgreSQLDatabaseName, u as tableExists, v as mapPostgresError, x as parseDatabaseName, y as PostgreSQLConnectionString } from "./index-BdWFmDhJ.cjs";
3
- export { AdvisoryLock, DefaultPostgreSQLMigratorOptions, PostgreSQLArrayProcessor, PostgreSQLConnectionString, PostgreSQLDatabaseName, PostgreSQLDriverType, PostgreSQLExpandSQLInProcessor, acquireAdvisoryLock, advisoryLock, defaultPostgreSQLConnectionString, defaultPostgreSqlDatabase, functionExists, functionExistsSQL, mapPostgresError, parseDatabaseName, pgFormatter, postgreSQLColumnProcessors, postgreSQLMetadata, releaseAdvisoryLock, tableExists, tableExistsSQL, tryAcquireAdvisoryLock };
1
+ import { r as postgreSQLMetadata } from "./index-CfH0u2y_.cjs";
2
+ import { S as parseDatabaseName, _ as releaseAdvisoryLock, a as PostgreSQLExpandSQLInProcessor, b as PostgreSQLConnectionString, c as defaultPostgreSqlDatabase, d as tableExists, f as tableExistsSQL, g as advisoryLock, h as acquireAdvisoryLock, i as PostgreSQLArrayProcessor, l as functionExists, m as AdvisoryLock, n as PostgreSQLDriverType, o as PostgreSQLJSON, p as DefaultPostgreSQLMigratorOptions, r as postgreSQLColumnProcessors, s as pgFormatter, t as PostgreSQLDatabaseName, u as functionExistsSQL, v as tryAcquireAdvisoryLock, x as defaultPostgreSQLConnectionString, y as mapPostgresError } from "./index-tS9lpLPz.cjs";
3
+ export { AdvisoryLock, DefaultPostgreSQLMigratorOptions, PostgreSQLArrayProcessor, PostgreSQLConnectionString, PostgreSQLDatabaseName, PostgreSQLDriverType, PostgreSQLExpandSQLInProcessor, PostgreSQLJSON, acquireAdvisoryLock, advisoryLock, defaultPostgreSQLConnectionString, defaultPostgreSqlDatabase, functionExists, functionExistsSQL, mapPostgresError, parseDatabaseName, pgFormatter, postgreSQLColumnProcessors, postgreSQLMetadata, releaseAdvisoryLock, tableExists, tableExistsSQL, tryAcquireAdvisoryLock };
@@ -1,3 +1,3 @@
1
- import { r as postgreSQLMetadata } from "./index-zkszkJqP.js";
2
- import { _ as tryAcquireAdvisoryLock, a as PostgreSQLExpandSQLInProcessor, b as defaultPostgreSQLConnectionString, c as functionExists, d as tableExistsSQL, f as DefaultPostgreSQLMigratorOptions, g as releaseAdvisoryLock, h as advisoryLock, i as PostgreSQLArrayProcessor, l as functionExistsSQL, m as acquireAdvisoryLock, n as PostgreSQLDriverType, o as pgFormatter, p as AdvisoryLock, r as postgreSQLColumnProcessors, s as defaultPostgreSqlDatabase, t as PostgreSQLDatabaseName, u as tableExists, v as mapPostgresError, x as parseDatabaseName, y as PostgreSQLConnectionString } from "./index-cxtbLiju.js";
3
- export { AdvisoryLock, DefaultPostgreSQLMigratorOptions, PostgreSQLArrayProcessor, PostgreSQLConnectionString, PostgreSQLDatabaseName, PostgreSQLDriverType, PostgreSQLExpandSQLInProcessor, acquireAdvisoryLock, advisoryLock, defaultPostgreSQLConnectionString, defaultPostgreSqlDatabase, functionExists, functionExistsSQL, mapPostgresError, parseDatabaseName, pgFormatter, postgreSQLColumnProcessors, postgreSQLMetadata, releaseAdvisoryLock, tableExists, tableExistsSQL, tryAcquireAdvisoryLock };
1
+ import { r as postgreSQLMetadata } from "./index-QWEAqtHF.js";
2
+ import { S as parseDatabaseName, _ as releaseAdvisoryLock, a as PostgreSQLExpandSQLInProcessor, b as PostgreSQLConnectionString, c as defaultPostgreSqlDatabase, d as tableExists, f as tableExistsSQL, g as advisoryLock, h as acquireAdvisoryLock, i as PostgreSQLArrayProcessor, l as functionExists, m as AdvisoryLock, n as PostgreSQLDriverType, o as PostgreSQLJSON, p as DefaultPostgreSQLMigratorOptions, r as postgreSQLColumnProcessors, s as pgFormatter, t as PostgreSQLDatabaseName, u as functionExistsSQL, v as tryAcquireAdvisoryLock, x as defaultPostgreSQLConnectionString, y as mapPostgresError } from "./index-qxECrBHo.js";
3
+ export { AdvisoryLock, DefaultPostgreSQLMigratorOptions, PostgreSQLArrayProcessor, PostgreSQLConnectionString, PostgreSQLDatabaseName, PostgreSQLDriverType, PostgreSQLExpandSQLInProcessor, PostgreSQLJSON, acquireAdvisoryLock, advisoryLock, defaultPostgreSQLConnectionString, defaultPostgreSqlDatabase, functionExists, functionExistsSQL, mapPostgresError, parseDatabaseName, pgFormatter, postgreSQLColumnProcessors, postgreSQLMetadata, releaseAdvisoryLock, tableExists, tableExistsSQL, tryAcquireAdvisoryLock };
@@ -1,4 +1,4 @@
1
- import { a as tableExists, c as defaultPostgreSQLConnectionString, i as functionExistsSQL, l as parseDatabaseName, n as defaultPostgreSqlDatabase, o as tableExistsSQL, r as functionExists, s as PostgreSQLConnectionString, t as postgreSQLMetadata } from "./postgreSQLMetadata-BTz6vdwE.js";
2
- import { a as PostgreSQLExpandSQLInProcessor, c as acquireAdvisoryLock, d as tryAcquireAdvisoryLock, f as mapPostgresError, i as PostgreSQLArrayProcessor, l as advisoryLock, n as pgFormatter, o as DefaultPostgreSQLMigratorOptions, r as postgreSQLColumnProcessors, s as AdvisoryLock, t as PostgreSQLDatabaseName, u as releaseAdvisoryLock } from "./core-BchvTX3G.js";
1
+ import { a as tableExists, c as defaultPostgreSQLConnectionString, i as functionExistsSQL, l as parseDatabaseName, n as defaultPostgreSqlDatabase, o as tableExistsSQL, r as functionExists, s as PostgreSQLConnectionString, t as postgreSQLMetadata } from "./postgreSQLMetadata-bCBDGz1f.js";
2
+ import { a as PostgreSQLArrayProcessor, c as AdvisoryLock, d as releaseAdvisoryLock, f as tryAcquireAdvisoryLock, i as postgreSQLColumnProcessors, l as acquireAdvisoryLock, n as PostgreSQLJSON, o as PostgreSQLExpandSQLInProcessor, p as mapPostgresError, r as pgFormatter, s as DefaultPostgreSQLMigratorOptions, t as PostgreSQLDatabaseName, u as advisoryLock } from "./core-C3xoqqDs.js";
3
3
 
4
- export { AdvisoryLock, DefaultPostgreSQLMigratorOptions, PostgreSQLArrayProcessor, PostgreSQLConnectionString, PostgreSQLDatabaseName, PostgreSQLExpandSQLInProcessor, acquireAdvisoryLock, advisoryLock, defaultPostgreSQLConnectionString, defaultPostgreSqlDatabase, functionExists, functionExistsSQL, mapPostgresError, parseDatabaseName, pgFormatter, postgreSQLColumnProcessors, postgreSQLMetadata, releaseAdvisoryLock, tableExists, tableExistsSQL, tryAcquireAdvisoryLock };
4
+ export { AdvisoryLock, DefaultPostgreSQLMigratorOptions, PostgreSQLArrayProcessor, PostgreSQLConnectionString, PostgreSQLDatabaseName, PostgreSQLExpandSQLInProcessor, PostgreSQLJSON, acquireAdvisoryLock, advisoryLock, defaultPostgreSQLConnectionString, defaultPostgreSqlDatabase, functionExists, functionExistsSQL, mapPostgresError, parseDatabaseName, pgFormatter, postgreSQLColumnProcessors, postgreSQLMetadata, releaseAdvisoryLock, tableExists, tableExistsSQL, tryAcquireAdvisoryLock };
package/dist/sqlite.cjs CHANGED
@@ -1,12 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_sqliteMetadata = require('./sqliteMetadata-PJTRPIZ1.cjs');
3
- const require_core = require('./core-CWZb0zOY.cjs');
2
+ const require_sqliteMetadata = require('./sqliteMetadata-Cc7Z03lm.cjs');
3
+ const require_core = require('./core-CUGYxOEQ.cjs');
4
4
 
5
5
  exports.DEFAULT_SQLITE_PRAGMA_OPTIONS = require_core.DEFAULT_SQLITE_PRAGMA_OPTIONS;
6
6
  exports.DefaultSQLiteMigratorOptions = require_core.DefaultSQLiteMigratorOptions;
7
7
  exports.InMemorySQLiteDatabase = require_core.InMemorySQLiteDatabase;
8
8
  exports.SQLiteConnectionString = require_core.SQLiteConnectionString;
9
9
  exports.SQLiteDatabaseName = require_core.SQLiteDatabaseName;
10
+ exports.SQLiteJSON = require_core.SQLiteJSON;
10
11
  exports.defaultSQLiteDatabase = require_sqliteMetadata.defaultSQLiteDatabase;
11
12
  exports.isInMemoryDatabase = require_core.isInMemoryDatabase;
12
13
  exports.isSQLiteError = require_core.isSQLiteError;
package/dist/sqlite.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { n as sqliteMetadata } 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";
3
- export { AnySQLiteClientConnection, AnySQLiteConnection, AnySQLitePoolClientConnection, BatchSQLiteCommandOptions, DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, 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, SqliteAmbientClientConnectionOptions, TransactionNestingCounter, defaultSQLiteDatabase, isInMemoryDatabase, isSQLiteError, mapSqliteError, parsePragmasFromConnectionString, sqliteAlwaysNewConnectionPool, sqliteAmbientClientConnection, sqliteAmbientConnectionPool, sqliteClientConnection, sqliteConnection, sqliteExecute, sqliteFormatter, sqliteMetadata, sqlitePool, sqlitePoolClientConnection, sqliteSQLExecutor, sqliteSingletonConnectionPool, sqliteTransaction, tableExists, toSqlitePoolOptions, transactionNestingCounter };
1
+ import { n as sqliteMetadata } from "./index-CfH0u2y_.cjs";
2
+ import { $ as SQLiteConnectionString, A as SQLiteClientConnection, B as SQLiteError, C as AnySQLiteClientConnection, D as DEFAULT_SQLITE_PRAGMA_OPTIONS, E as BatchSQLiteCommandOptions, F as SQLiteCommandOptions, G as SqliteAmbientClientConnectionOptions, H as SQLitePoolClient, I as SQLiteConnection, J as sqliteAmbientClientConnection, K as TransactionNestingCounter, L as SQLiteConnectionDefinitionOptions, M as SQLiteClientFactory, N as SQLiteClientOptions, O as InMemorySQLiteDatabase, P as SQLiteClientOrPoolClient, Q as transactionNestingCounter, R as SQLiteConnectionFactory, S as mapSqliteError, T as AnySQLitePoolClientConnection, U as SQLitePoolClientConnection, V as SQLiteParameters, W as SQLitePoolConnectionDefinitionOptions, X as sqliteConnection, Y as sqliteClientConnection, Z as sqlitePoolClientConnection, _ as sqliteAlwaysNewConnectionPool, a as sqliteFormatter, at as sqliteTransaction, b as sqliteSingletonConnectionPool, c as DefaultSQLiteMigratorOptions, ct as sqliteExecute, d as SQLiteFileNameOrConnectionString, et as SQLitePragmaOptions, f as SQLitePool, g as isInMemoryDatabase, h as SQLiteSingletonConnectionPool, i as SQLiteJSON, it as SQLiteTransactionOptions, j as SQLiteClientConnectionDefinitionOptions, k as SQLiteClient, l as SQLiteAlwaysNewConnectionPool, lt as sqliteSQLExecutor, m as SQLitePoolOptions, n as SQLiteDatabaseType, nt as SQLiteTransaction, o as defaultSQLiteDatabase, ot as SQLiteErrorMapper, p as SQLitePoolFactoryOptions, q as isSQLiteError, r as SQLiteDriverType, rt as SQLiteTransactionMode, s as tableExists, st as SQLiteSQLExecutor, t as SQLiteDatabaseName, tt as parsePragmasFromConnectionString, u as SQLiteAmbientConnectionPool, v as sqliteAmbientConnectionPool, w as AnySQLiteConnection, x as toSqlitePoolOptions, y as sqlitePool, z as SQLiteConnectionOptions } from "./index-DP9b7v4e.cjs";
3
+ export { AnySQLiteClientConnection, AnySQLiteConnection, AnySQLitePoolClientConnection, BatchSQLiteCommandOptions, DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, SQLiteAlwaysNewConnectionPool, SQLiteAmbientConnectionPool, SQLiteClient, SQLiteClientConnection, SQLiteClientConnectionDefinitionOptions, SQLiteClientFactory, SQLiteClientOptions, SQLiteClientOrPoolClient, SQLiteCommandOptions, SQLiteConnection, SQLiteConnectionDefinitionOptions, SQLiteConnectionFactory, SQLiteConnectionOptions, SQLiteConnectionString, SQLiteDatabaseName, SQLiteDatabaseType, SQLiteDriverType, SQLiteError, SQLiteErrorMapper, SQLiteFileNameOrConnectionString, SQLiteJSON, SQLiteParameters, SQLitePool, SQLitePoolClient, SQLitePoolClientConnection, SQLitePoolConnectionDefinitionOptions, SQLitePoolFactoryOptions, SQLitePoolOptions, SQLitePragmaOptions, SQLiteSQLExecutor, SQLiteSingletonConnectionPool, SQLiteTransaction, SQLiteTransactionMode, SQLiteTransactionOptions, SqliteAmbientClientConnectionOptions, TransactionNestingCounter, defaultSQLiteDatabase, isInMemoryDatabase, isSQLiteError, mapSqliteError, parsePragmasFromConnectionString, sqliteAlwaysNewConnectionPool, sqliteAmbientClientConnection, sqliteAmbientConnectionPool, sqliteClientConnection, sqliteConnection, sqliteExecute, sqliteFormatter, sqliteMetadata, sqlitePool, sqlitePoolClientConnection, sqliteSQLExecutor, sqliteSingletonConnectionPool, sqliteTransaction, tableExists, toSqlitePoolOptions, transactionNestingCounter };
package/dist/sqlite.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { n as sqliteMetadata } 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";
3
- export { AnySQLiteClientConnection, AnySQLiteConnection, AnySQLitePoolClientConnection, BatchSQLiteCommandOptions, DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, 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, SqliteAmbientClientConnectionOptions, TransactionNestingCounter, defaultSQLiteDatabase, isInMemoryDatabase, isSQLiteError, mapSqliteError, parsePragmasFromConnectionString, sqliteAlwaysNewConnectionPool, sqliteAmbientClientConnection, sqliteAmbientConnectionPool, sqliteClientConnection, sqliteConnection, sqliteExecute, sqliteFormatter, sqliteMetadata, sqlitePool, sqlitePoolClientConnection, sqliteSQLExecutor, sqliteSingletonConnectionPool, sqliteTransaction, tableExists, toSqlitePoolOptions, transactionNestingCounter };
1
+ import { n as sqliteMetadata } from "./index-QWEAqtHF.js";
2
+ import { $ as SQLiteConnectionString, A as SQLiteClientConnection, B as SQLiteError, C as AnySQLiteClientConnection, D as DEFAULT_SQLITE_PRAGMA_OPTIONS, E as BatchSQLiteCommandOptions, F as SQLiteCommandOptions, G as SqliteAmbientClientConnectionOptions, H as SQLitePoolClient, I as SQLiteConnection, J as sqliteAmbientClientConnection, K as TransactionNestingCounter, L as SQLiteConnectionDefinitionOptions, M as SQLiteClientFactory, N as SQLiteClientOptions, O as InMemorySQLiteDatabase, P as SQLiteClientOrPoolClient, Q as transactionNestingCounter, R as SQLiteConnectionFactory, S as mapSqliteError, T as AnySQLitePoolClientConnection, U as SQLitePoolClientConnection, V as SQLiteParameters, W as SQLitePoolConnectionDefinitionOptions, X as sqliteConnection, Y as sqliteClientConnection, Z as sqlitePoolClientConnection, _ as sqliteAlwaysNewConnectionPool, a as sqliteFormatter, at as sqliteTransaction, b as sqliteSingletonConnectionPool, c as DefaultSQLiteMigratorOptions, ct as sqliteExecute, d as SQLiteFileNameOrConnectionString, et as SQLitePragmaOptions, f as SQLitePool, g as isInMemoryDatabase, h as SQLiteSingletonConnectionPool, i as SQLiteJSON, it as SQLiteTransactionOptions, j as SQLiteClientConnectionDefinitionOptions, k as SQLiteClient, l as SQLiteAlwaysNewConnectionPool, lt as sqliteSQLExecutor, m as SQLitePoolOptions, n as SQLiteDatabaseType, nt as SQLiteTransaction, o as defaultSQLiteDatabase, ot as SQLiteErrorMapper, p as SQLitePoolFactoryOptions, q as isSQLiteError, r as SQLiteDriverType, rt as SQLiteTransactionMode, s as tableExists, st as SQLiteSQLExecutor, t as SQLiteDatabaseName, tt as parsePragmasFromConnectionString, u as SQLiteAmbientConnectionPool, v as sqliteAmbientConnectionPool, w as AnySQLiteConnection, x as toSqlitePoolOptions, y as sqlitePool, z as SQLiteConnectionOptions } from "./index-BJC_v03L.js";
3
+ export { AnySQLiteClientConnection, AnySQLiteConnection, AnySQLitePoolClientConnection, BatchSQLiteCommandOptions, DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, SQLiteAlwaysNewConnectionPool, SQLiteAmbientConnectionPool, SQLiteClient, SQLiteClientConnection, SQLiteClientConnectionDefinitionOptions, SQLiteClientFactory, SQLiteClientOptions, SQLiteClientOrPoolClient, SQLiteCommandOptions, SQLiteConnection, SQLiteConnectionDefinitionOptions, SQLiteConnectionFactory, SQLiteConnectionOptions, SQLiteConnectionString, SQLiteDatabaseName, SQLiteDatabaseType, SQLiteDriverType, SQLiteError, SQLiteErrorMapper, SQLiteFileNameOrConnectionString, SQLiteJSON, SQLiteParameters, SQLitePool, SQLitePoolClient, SQLitePoolClientConnection, SQLitePoolConnectionDefinitionOptions, SQLitePoolFactoryOptions, SQLitePoolOptions, SQLitePragmaOptions, SQLiteSQLExecutor, SQLiteSingletonConnectionPool, SQLiteTransaction, SQLiteTransactionMode, SQLiteTransactionOptions, SqliteAmbientClientConnectionOptions, TransactionNestingCounter, defaultSQLiteDatabase, isInMemoryDatabase, isSQLiteError, mapSqliteError, parsePragmasFromConnectionString, sqliteAlwaysNewConnectionPool, sqliteAmbientClientConnection, sqliteAmbientConnectionPool, sqliteClientConnection, sqliteConnection, sqliteExecute, sqliteFormatter, sqliteMetadata, sqlitePool, sqlitePoolClientConnection, sqliteSQLExecutor, sqliteSingletonConnectionPool, sqliteTransaction, tableExists, toSqlitePoolOptions, transactionNestingCounter };
package/dist/sqlite.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as defaultSQLiteDatabase, r as tableExists, t as sqliteMetadata } from "./sqliteMetadata-7qBjsMBN.js";
2
- import { C as mapSqliteError, S as sqliteFormatter, _ as SQLiteConnectionString, a as sqliteAmbientConnectionPool, b as sqliteExecute, c as toSqlitePoolOptions, d as isSQLiteError, f as sqliteAmbientClientConnection, g as transactionNestingCounter, h as sqlitePoolClientConnection, i as sqliteAlwaysNewConnectionPool, l as DEFAULT_SQLITE_PRAGMA_OPTIONS, m as sqliteConnection, n as DefaultSQLiteMigratorOptions, o as sqlitePool, p as sqliteClientConnection, r as isInMemoryDatabase, s as sqliteSingletonConnectionPool, t as SQLiteDatabaseName, u as InMemorySQLiteDatabase, v as parsePragmasFromConnectionString, x as sqliteSQLExecutor, y as sqliteTransaction } from "./core-DlV8ua1P.js";
1
+ import { n as defaultSQLiteDatabase, r as tableExists, t as sqliteMetadata } from "./sqliteMetadata-CvvEc1-v.js";
2
+ import { C as sqliteFormatter, S as sqliteSQLExecutor, _ as transactionNestingCounter, a as sqliteAlwaysNewConnectionPool, b as sqliteTransaction, c as sqliteSingletonConnectionPool, d as InMemorySQLiteDatabase, f as isSQLiteError, g as sqlitePoolClientConnection, h as sqliteConnection, i as isInMemoryDatabase, l as toSqlitePoolOptions, m as sqliteClientConnection, n as SQLiteJSON, o as sqliteAmbientConnectionPool, p as sqliteAmbientClientConnection, r as DefaultSQLiteMigratorOptions, s as sqlitePool, t as SQLiteDatabaseName, u as DEFAULT_SQLITE_PRAGMA_OPTIONS, v as SQLiteConnectionString, w as mapSqliteError, x as sqliteExecute, y as parsePragmasFromConnectionString } from "./core-CHw8vO17.js";
3
3
 
4
- export { DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, SQLiteConnectionString, SQLiteDatabaseName, defaultSQLiteDatabase, isInMemoryDatabase, isSQLiteError, mapSqliteError, parsePragmasFromConnectionString, sqliteAlwaysNewConnectionPool, sqliteAmbientClientConnection, sqliteAmbientConnectionPool, sqliteClientConnection, sqliteConnection, sqliteExecute, sqliteFormatter, sqliteMetadata, sqlitePool, sqlitePoolClientConnection, sqliteSQLExecutor, sqliteSingletonConnectionPool, sqliteTransaction, tableExists, toSqlitePoolOptions, transactionNestingCounter };
4
+ export { DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, SQLiteConnectionString, SQLiteDatabaseName, SQLiteJSON, defaultSQLiteDatabase, isInMemoryDatabase, isSQLiteError, mapSqliteError, parsePragmasFromConnectionString, sqliteAlwaysNewConnectionPool, sqliteAmbientClientConnection, sqliteAmbientConnectionPool, sqliteClientConnection, sqliteConnection, sqliteExecute, sqliteFormatter, sqliteMetadata, sqlitePool, sqlitePoolClientConnection, sqliteSQLExecutor, sqliteSingletonConnectionPool, sqliteTransaction, tableExists, toSqlitePoolOptions, transactionNestingCounter };
package/dist/sqlite3.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_core = require('./core-D-smW7cm.cjs');
3
- const require_sqliteMetadata = require('./sqliteMetadata-PJTRPIZ1.cjs');
4
- const require_core$1 = require('./core-CWZb0zOY.cjs');
2
+ const require_core = require('./core-BPSzA-lq.cjs');
3
+ const require_sqliteMetadata = require('./sqliteMetadata-Cc7Z03lm.cjs');
4
+ const require_core$1 = require('./core-CUGYxOEQ.cjs');
5
5
  let sqlite3 = require("sqlite3");
6
6
  sqlite3 = require_core.__toESM(sqlite3, 1);
7
7
  let os = require("os");
@@ -416,6 +416,7 @@ exports.InMemorySQLiteDatabase = require_core$1.InMemorySQLiteDatabase;
416
416
  exports.SQLite3DriverType = SQLite3DriverType;
417
417
  exports.SQLiteConnectionString = require_core$1.SQLiteConnectionString;
418
418
  exports.SQLiteDatabaseName = require_core$1.SQLiteDatabaseName;
419
+ exports.SQLiteJSON = require_core$1.SQLiteJSON;
419
420
  exports.checkConnection = checkConnection;
420
421
  exports.defaultSQLiteDatabase = require_sqliteMetadata.defaultSQLiteDatabase;
421
422
  exports.isInMemoryDatabase = require_core$1.isInMemoryDatabase;
@@ -1,5 +1,5 @@
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";
1
+ import { Dt as MigratorOptions, F as ConnectionOptions, Li as SQLFormatter, N as Connection, Oo as JSONSerializer, Vt as DatabaseMetadata, n as sqliteMetadata, s as DumboConnectionOptions, vt as DumboDatabaseDriver } from "./index-CfH0u2y_.cjs";
2
+ import { $ as SQLiteConnectionString, A as SQLiteClientConnection, B as SQLiteError, C as AnySQLiteClientConnection, D as DEFAULT_SQLITE_PRAGMA_OPTIONS, E as BatchSQLiteCommandOptions, F as SQLiteCommandOptions, G as SqliteAmbientClientConnectionOptions, H as SQLitePoolClient, I as SQLiteConnection, J as sqliteAmbientClientConnection, K as TransactionNestingCounter, L as SQLiteConnectionDefinitionOptions, M as SQLiteClientFactory, N as SQLiteClientOptions, O as InMemorySQLiteDatabase, P as SQLiteClientOrPoolClient, Q as transactionNestingCounter, R as SQLiteConnectionFactory, S as mapSqliteError, T as AnySQLitePoolClientConnection, U as SQLitePoolClientConnection, V as SQLiteParameters, W as SQLitePoolConnectionDefinitionOptions, X as sqliteConnection, Y as sqliteClientConnection, Z as sqlitePoolClientConnection, _ as sqliteAlwaysNewConnectionPool, a as sqliteFormatter, at as sqliteTransaction, b as sqliteSingletonConnectionPool, c as DefaultSQLiteMigratorOptions, ct as sqliteExecute, d as SQLiteFileNameOrConnectionString, et as SQLitePragmaOptions, f as SQLitePool, g as isInMemoryDatabase, h as SQLiteSingletonConnectionPool, i as SQLiteJSON, it as SQLiteTransactionOptions, j as SQLiteClientConnectionDefinitionOptions, k as SQLiteClient, l as SQLiteAlwaysNewConnectionPool, lt as sqliteSQLExecutor, m as SQLitePoolOptions, n as SQLiteDatabaseType, nt as SQLiteTransaction, o as defaultSQLiteDatabase, ot as SQLiteErrorMapper, p as SQLitePoolFactoryOptions, q as isSQLiteError, r as SQLiteDriverType, rt as SQLiteTransactionMode, s as tableExists, st as SQLiteSQLExecutor, t as SQLiteDatabaseName, tt as parsePragmasFromConnectionString, u as SQLiteAmbientConnectionPool, v as sqliteAmbientConnectionPool, w as AnySQLiteConnection, x as toSqlitePoolOptions, y as sqlitePool, z as SQLiteConnectionOptions } from "./index-DP9b7v4e.cjs";
3
3
 
4
4
  //#region src/storage/sqlite/sqlite3/connections/connection.d.ts
5
5
  type SQLite3DriverType = SQLiteDriverType<'sqlite3'>;
@@ -102,5 +102,5 @@ type SQLite3DumboConnectionOptions = DumboConnectionOptions<typeof sqlite3DumboD
102
102
  connectionString: string | SQLiteConnectionString;
103
103
  };
104
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 };
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, SQLiteJSON, 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
106
  //# sourceMappingURL=sqlite3.d.cts.map
package/dist/sqlite3.d.ts CHANGED
@@ -1,5 +1,5 @@
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";
1
+ import { Dt as MigratorOptions, F as ConnectionOptions, Li as SQLFormatter, N as Connection, Oo as JSONSerializer, Vt as DatabaseMetadata, n as sqliteMetadata, s as DumboConnectionOptions, vt as DumboDatabaseDriver } from "./index-QWEAqtHF.js";
2
+ import { $ as SQLiteConnectionString, A as SQLiteClientConnection, B as SQLiteError, C as AnySQLiteClientConnection, D as DEFAULT_SQLITE_PRAGMA_OPTIONS, E as BatchSQLiteCommandOptions, F as SQLiteCommandOptions, G as SqliteAmbientClientConnectionOptions, H as SQLitePoolClient, I as SQLiteConnection, J as sqliteAmbientClientConnection, K as TransactionNestingCounter, L as SQLiteConnectionDefinitionOptions, M as SQLiteClientFactory, N as SQLiteClientOptions, O as InMemorySQLiteDatabase, P as SQLiteClientOrPoolClient, Q as transactionNestingCounter, R as SQLiteConnectionFactory, S as mapSqliteError, T as AnySQLitePoolClientConnection, U as SQLitePoolClientConnection, V as SQLiteParameters, W as SQLitePoolConnectionDefinitionOptions, X as sqliteConnection, Y as sqliteClientConnection, Z as sqlitePoolClientConnection, _ as sqliteAlwaysNewConnectionPool, a as sqliteFormatter, at as sqliteTransaction, b as sqliteSingletonConnectionPool, c as DefaultSQLiteMigratorOptions, ct as sqliteExecute, d as SQLiteFileNameOrConnectionString, et as SQLitePragmaOptions, f as SQLitePool, g as isInMemoryDatabase, h as SQLiteSingletonConnectionPool, i as SQLiteJSON, it as SQLiteTransactionOptions, j as SQLiteClientConnectionDefinitionOptions, k as SQLiteClient, l as SQLiteAlwaysNewConnectionPool, lt as sqliteSQLExecutor, m as SQLitePoolOptions, n as SQLiteDatabaseType, nt as SQLiteTransaction, o as defaultSQLiteDatabase, ot as SQLiteErrorMapper, p as SQLitePoolFactoryOptions, q as isSQLiteError, r as SQLiteDriverType, rt as SQLiteTransactionMode, s as tableExists, st as SQLiteSQLExecutor, t as SQLiteDatabaseName, tt as parsePragmasFromConnectionString, u as SQLiteAmbientConnectionPool, v as sqliteAmbientConnectionPool, w as AnySQLiteConnection, x as toSqlitePoolOptions, y as sqlitePool, z as SQLiteConnectionOptions } from "./index-BJC_v03L.js";
3
3
 
4
4
  //#region src/storage/sqlite/sqlite3/connections/connection.d.ts
5
5
  type SQLite3DriverType = SQLiteDriverType<'sqlite3'>;
@@ -102,5 +102,5 @@ type SQLite3DumboConnectionOptions = DumboConnectionOptions<typeof sqlite3DumboD
102
102
  connectionString: string | SQLiteConnectionString;
103
103
  };
104
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 };
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, SQLiteJSON, 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
106
  //# sourceMappingURL=sqlite3.d.ts.map
package/dist/sqlite3.js CHANGED
@@ -1,6 +1,6 @@
1
- import { On as canHandleDriverWithConnectionString, c as TaskProcessor, in as JSONSerializer, kn as dumboDatabaseDriverRegistry, o as createSingletonConnectionPool, r as createBoundedConnectionPool, s as guardInitializedOnce, v as BatchCommandNoChangesError, xt as SQL } from "./core-BG__WVn6.js";
2
- import { n as defaultSQLiteDatabase, r as tableExists, t as sqliteMetadata } from "./sqliteMetadata-7qBjsMBN.js";
3
- import { C as mapSqliteError, S as sqliteFormatter, _ as SQLiteConnectionString, a as sqliteAmbientConnectionPool, b as sqliteExecute, c as toSqlitePoolOptions, d as isSQLiteError, f as sqliteAmbientClientConnection, g as transactionNestingCounter, h as sqlitePoolClientConnection, i as sqliteAlwaysNewConnectionPool, l as DEFAULT_SQLITE_PRAGMA_OPTIONS, m as sqliteConnection, n as DefaultSQLiteMigratorOptions, o as sqlitePool, p as sqliteClientConnection, r as isInMemoryDatabase, s as sqliteSingletonConnectionPool, t as SQLiteDatabaseName, u as InMemorySQLiteDatabase, v as parsePragmasFromConnectionString, x as sqliteSQLExecutor, y as sqliteTransaction } from "./core-DlV8ua1P.js";
1
+ import { O as SQL, dn as TaskProcessor, dt as JSONSerializer, ln as createSingletonConnectionPool, nn as canHandleDriverWithConnectionString, on as createBoundedConnectionPool, rn as dumboDatabaseDriverRegistry, un as guardInitializedOnce, xn as BatchCommandNoChangesError } from "./core-IV7or0Mj.js";
2
+ import { n as defaultSQLiteDatabase, r as tableExists, t as sqliteMetadata } from "./sqliteMetadata-CvvEc1-v.js";
3
+ import { C as sqliteFormatter, S as sqliteSQLExecutor, _ as transactionNestingCounter, a as sqliteAlwaysNewConnectionPool, b as sqliteTransaction, c as sqliteSingletonConnectionPool, d as InMemorySQLiteDatabase, f as isSQLiteError, g as sqlitePoolClientConnection, h as sqliteConnection, i as isInMemoryDatabase, l as toSqlitePoolOptions, m as sqliteClientConnection, n as SQLiteJSON, o as sqliteAmbientConnectionPool, p as sqliteAmbientClientConnection, r as DefaultSQLiteMigratorOptions, s as sqlitePool, t as SQLiteDatabaseName, u as DEFAULT_SQLITE_PRAGMA_OPTIONS, v as SQLiteConnectionString, w as mapSqliteError, x as sqliteExecute, y as parsePragmasFromConnectionString } from "./core-CHw8vO17.js";
4
4
  import sqlite3 from "sqlite3";
5
5
  import { cpus } from "os";
6
6
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -408,5 +408,5 @@ const useSqlite3DumboDriver = () => {
408
408
  useSqlite3DumboDriver();
409
409
 
410
410
  //#endregion
411
- export { DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, SQLite3DriverType, SQLiteConnectionString, SQLiteDatabaseName, 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 };
411
+ export { DEFAULT_SQLITE_PRAGMA_OPTIONS, DefaultSQLiteMigratorOptions, InMemorySQLiteDatabase, SQLite3DriverType, SQLiteConnectionString, SQLiteDatabaseName, SQLiteJSON, 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 };
412
412
  //# sourceMappingURL=sqlite3.js.map
@@ -1,4 +1,4 @@
1
- const require_core = require('./core-D-smW7cm.cjs');
1
+ const require_core = require('./core-BPSzA-lq.cjs');
2
2
 
3
3
  //#region src/storage/sqlite/core/schema/schema.ts
4
4
  const defaultSQLiteDatabase = ":memory:";
@@ -43,4 +43,4 @@ Object.defineProperty(exports, 'tableExists', {
43
43
  return tableExists;
44
44
  }
45
45
  });
46
- //# sourceMappingURL=sqliteMetadata-PJTRPIZ1.cjs.map
46
+ //# sourceMappingURL=sqliteMetadata-Cc7Z03lm.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sqliteMetadata-PJTRPIZ1.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
+ {"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,4 +1,4 @@
1
- import { ln as exists, xt as SQL } from "./core-BG__WVn6.js";
1
+ import { O as SQL, Wt as exists } from "./core-IV7or0Mj.js";
2
2
 
3
3
  //#region src/storage/sqlite/core/schema/schema.ts
4
4
  const defaultSQLiteDatabase = ":memory:";
@@ -26,4 +26,4 @@ dumboDatabaseMetadataRegistry.register("SQLite", sqliteMetadata);
26
26
 
27
27
  //#endregion
28
28
  export { defaultSQLiteDatabase as n, tableExists as r, sqliteMetadata as t };
29
- //# sourceMappingURL=sqliteMetadata-7qBjsMBN.js.map
29
+ //# sourceMappingURL=sqliteMetadata-CvvEc1-v.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sqliteMetadata-7qBjsMBN.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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@event-driven-io/dumbo",
3
- "version": "0.13.0-beta.40",
3
+ "version": "0.13.0-beta.42",
4
4
  "description": "Dumbo - tools for dealing with Relational Databases",
5
5
  "type": "module",
6
6
  "scripts": {