@hot-updater/server 0.30.12 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.cjs +25 -0
- package/dist/_virtual/_rolldown/runtime.mjs +6 -0
- package/dist/adapters/drizzle.cjs +6 -9
- package/dist/adapters/drizzle.d.cts +8 -1
- package/dist/adapters/drizzle.d.mts +8 -1
- package/dist/adapters/drizzle.mjs +5 -2
- package/dist/adapters/kysely.cjs +7 -9
- package/dist/adapters/kysely.d.cts +14 -1
- package/dist/adapters/kysely.d.mts +14 -1
- package/dist/adapters/kysely.mjs +6 -2
- package/dist/adapters/mongodb.cjs +7 -9
- package/dist/adapters/mongodb.d.cts +9 -1
- package/dist/adapters/mongodb.d.mts +9 -1
- package/dist/adapters/mongodb.mjs +5 -2
- package/dist/adapters/prisma.cjs +6 -9
- package/dist/adapters/prisma.d.cts +8 -1
- package/dist/adapters/prisma.d.mts +8 -1
- package/dist/adapters/prisma.mjs +5 -2
- package/dist/db/createBundleDiff.cjs +166 -0
- package/dist/db/createBundleDiff.d.cts +20 -0
- package/dist/db/createBundleDiff.d.mts +20 -0
- package/dist/db/createBundleDiff.mjs +161 -0
- package/dist/db/index.cjs +15 -16
- package/dist/db/index.d.cts +5 -4
- package/dist/db/index.d.mts +5 -4
- package/dist/db/index.mjs +14 -16
- package/dist/db/ormCore.cjs +173 -65
- package/dist/db/ormCore.d.cts +100 -34
- package/dist/db/ormCore.d.mts +100 -34
- package/dist/db/ormCore.mjs +171 -64
- package/dist/db/pluginCore.cjs +37 -3
- package/dist/db/pluginCore.mjs +36 -3
- package/dist/db/schemaEnhancements.cjs +171 -0
- package/dist/db/schemaEnhancements.mjs +167 -0
- package/dist/db/types.cjs +6 -0
- package/dist/db/types.d.cts +19 -7
- package/dist/db/types.d.mts +22 -10
- package/dist/db/types.mjs +6 -1
- package/dist/db/updateArtifacts.cjs +127 -0
- package/dist/db/updateArtifacts.mjs +125 -0
- package/dist/handler.cjs +61 -5
- package/dist/handler.d.cts +2 -2
- package/dist/handler.d.mts +5 -5
- package/dist/handler.mjs +59 -5
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +3 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +2 -1
- package/dist/node.d.cts +0 -1
- package/dist/node.d.mts +0 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/_u64.cjs +112 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/_u64.mjs +108 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/cryptoNode.cjs +22 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/cryptoNode.mjs +18 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/sha3.cjs +219 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/sha3.mjs +214 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/utils.cjs +275 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/utils.mjs +270 -0
- package/dist/node_modules/.pnpm/@paralleldrive_cuid2@2.3.1/node_modules/@paralleldrive/cuid2/index.cjs +17 -0
- package/dist/node_modules/.pnpm/@paralleldrive_cuid2@2.3.1/node_modules/@paralleldrive/cuid2/index.mjs +13 -0
- package/dist/node_modules/.pnpm/@paralleldrive_cuid2@2.3.1/node_modules/@paralleldrive/cuid2/src/index.cjs +69 -0
- package/dist/node_modules/.pnpm/@paralleldrive_cuid2@2.3.1/node_modules/@paralleldrive/cuid2/src/index.mjs +65 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/column.cjs +52 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/column.mjs +52 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/entity.cjs +16 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/entity.mjs +15 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/pg-core/columns/enum.cjs +7 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/pg-core/columns/enum.mjs +7 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/sql/expressions/conditions.cjs +92 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/sql/expressions/conditions.mjs +78 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/sql/expressions/select.cjs +11 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/sql/expressions/select.mjs +10 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/sql/sql.cjs +383 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/sql/sql.mjs +366 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/subquery.cjs +17 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/subquery.mjs +17 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/table.cjs +60 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/table.mjs +59 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/table.utils.cjs +4 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/table.utils.mjs +4 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/tracing.cjs +6 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/tracing.mjs +6 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/view-common.cjs +4 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/view-common.mjs +4 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/adapters/drizzle/index.cjs +383 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/adapters/drizzle/index.d.cts +12 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/adapters/drizzle/index.d.mts +12 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/adapters/drizzle/index.mjs +383 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/adapters/kysely/index.cjs +4 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/adapters/kysely/index.mjs +5 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/adapters/prisma/index.cjs +339 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/adapters/prisma/index.d.cts +70 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/adapters/prisma/index.d.mts +70 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/adapters/prisma/index.mjs +339 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-7PZK4ONR.cjs +57 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-7PZK4ONR.mjs +56 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-C6OTUURW.cjs +330 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-C6OTUURW.mjs +326 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-CHTIKPQU.cjs +166 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-CHTIKPQU.mjs +163 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-GUE4GMNC.cjs +14 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-GUE4GMNC.mjs +13 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-LHHP6UVP.cjs +24 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-LHHP6UVP.mjs +24 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-LVCPMTAT.cjs +1190 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-LVCPMTAT.mjs +1189 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-PK2W2SQ7.cjs +197 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-PK2W2SQ7.mjs +197 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-ZEQMAIFI.cjs +410 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-ZEQMAIFI.mjs +400 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-ZOCGSAWS.cjs +213 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/chunk-ZOCGSAWS.mjs +212 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/create-tg0451Y_.d.cts +285 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/create-tg0451Y_.d.mts +285 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/index-CMqePMTF.d.cts +45 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/index-CMqePMTF.d.mts +45 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/index.cjs +69 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/index.d.cts +49 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/index.d.mts +49 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/index.mjs +67 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/query/index.d.cts +156 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/query/index.d.mts +156 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/schema/index.cjs +1 -0
- package/dist/node_modules/.pnpm/fumadb@0.2.2_drizzle-orm@0.44.7_@cloudflare_workers-types@4.20260313.1_@electric-sql_pg_c72c8c754becd21f6d6662e8fbd28e7f/node_modules/fumadb/dist/schema/index.mjs +2 -0
- package/dist/{package.cjs → packages/server/package.cjs} +1 -1
- package/dist/{package.mjs → packages/server/package.mjs} +1 -1
- package/dist/runtime.cjs +13 -13
- package/dist/runtime.d.cts +4 -4
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime.mjs +12 -13
- package/dist/schema/v0_21_0.cjs +16 -15
- package/dist/schema/v0_21_0.mjs +3 -2
- package/dist/schema/v0_29_0.cjs +18 -17
- package/dist/schema/v0_29_0.mjs +3 -2
- package/dist/schema/v0_31_0.cjs +48 -0
- package/dist/schema/v0_31_0.mjs +48 -0
- package/dist/storageAccess.cjs +44 -0
- package/dist/storageAccess.mjs +44 -0
- package/dist/version.cjs +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +15 -7
- package/src/adapters/drizzle.ts +15 -1
- package/src/adapters/kysely.ts +24 -1
- package/src/adapters/mongodb.ts +19 -1
- package/src/adapters/prisma.ts +15 -1
- package/src/db/createBundleDiff.spec.ts +402 -0
- package/src/db/createBundleDiff.ts +375 -0
- package/src/db/index.spec.ts +528 -27
- package/src/db/index.ts +22 -36
- package/src/db/ormCore.ts +308 -75
- package/src/db/pluginCore.spec.ts +385 -0
- package/src/db/pluginCore.ts +45 -4
- package/src/db/schemaEnhancements.ts +460 -0
- package/src/db/types.ts +38 -7
- package/src/db/updateArtifacts.ts +388 -0
- package/src/handler-standalone.integration.spec.ts +1 -0
- package/src/handler.spec.ts +121 -0
- package/src/handler.ts +117 -5
- package/src/runtime.spec.ts +287 -55
- package/src/runtime.ts +21 -37
- package/src/schema/v0_21_0.ts +1 -1
- package/src/schema/v0_29_0.ts +1 -1
- package/src/schema/v0_31_0.ts +58 -0
- package/src/storageAccess.spec.ts +57 -0
- package/src/storageAccess.ts +90 -0
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { entityKind, is } from "../entity.mjs";
|
|
2
|
+
import { Column } from "../column.mjs";
|
|
3
|
+
import { isPgEnum } from "../pg-core/columns/enum.mjs";
|
|
4
|
+
import { Subquery } from "../subquery.mjs";
|
|
5
|
+
import { tracer } from "../tracing.mjs";
|
|
6
|
+
import { ViewBaseConfig } from "../view-common.mjs";
|
|
7
|
+
import { IsAlias, Table } from "../table.mjs";
|
|
8
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/sql/sql.js
|
|
9
|
+
function isSQLWrapper(value) {
|
|
10
|
+
return value !== null && value !== void 0 && typeof value.getSQL === "function";
|
|
11
|
+
}
|
|
12
|
+
function mergeQueries(queries) {
|
|
13
|
+
const result = {
|
|
14
|
+
sql: "",
|
|
15
|
+
params: []
|
|
16
|
+
};
|
|
17
|
+
for (const query of queries) {
|
|
18
|
+
result.sql += query.sql;
|
|
19
|
+
result.params.push(...query.params);
|
|
20
|
+
if (query.typings?.length) {
|
|
21
|
+
if (!result.typings) result.typings = [];
|
|
22
|
+
result.typings.push(...query.typings);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
var StringChunk = class {
|
|
28
|
+
static [entityKind] = "StringChunk";
|
|
29
|
+
value;
|
|
30
|
+
constructor(value) {
|
|
31
|
+
this.value = Array.isArray(value) ? value : [value];
|
|
32
|
+
}
|
|
33
|
+
getSQL() {
|
|
34
|
+
return new SQL([this]);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var SQL = class SQL {
|
|
38
|
+
constructor(queryChunks) {
|
|
39
|
+
this.queryChunks = queryChunks;
|
|
40
|
+
for (const chunk of queryChunks) if (is(chunk, Table)) {
|
|
41
|
+
const schemaName = chunk[Table.Symbol.Schema];
|
|
42
|
+
this.usedTables.push(schemaName === void 0 ? chunk[Table.Symbol.Name] : schemaName + "." + chunk[Table.Symbol.Name]);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
static [entityKind] = "SQL";
|
|
46
|
+
/** @internal */
|
|
47
|
+
decoder = noopDecoder;
|
|
48
|
+
shouldInlineParams = false;
|
|
49
|
+
/** @internal */
|
|
50
|
+
usedTables = [];
|
|
51
|
+
append(query) {
|
|
52
|
+
this.queryChunks.push(...query.queryChunks);
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
toQuery(config) {
|
|
56
|
+
return tracer.startActiveSpan("drizzle.buildSQL", (span) => {
|
|
57
|
+
const query = this.buildQueryFromSourceParams(this.queryChunks, config);
|
|
58
|
+
span?.setAttributes({
|
|
59
|
+
"drizzle.query.text": query.sql,
|
|
60
|
+
"drizzle.query.params": JSON.stringify(query.params)
|
|
61
|
+
});
|
|
62
|
+
return query;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
buildQueryFromSourceParams(chunks, _config) {
|
|
66
|
+
const config = Object.assign({}, _config, {
|
|
67
|
+
inlineParams: _config.inlineParams || this.shouldInlineParams,
|
|
68
|
+
paramStartIndex: _config.paramStartIndex || { value: 0 }
|
|
69
|
+
});
|
|
70
|
+
const { casing, escapeName, escapeParam, prepareTyping, inlineParams, paramStartIndex } = config;
|
|
71
|
+
return mergeQueries(chunks.map((chunk) => {
|
|
72
|
+
if (is(chunk, StringChunk)) return {
|
|
73
|
+
sql: chunk.value.join(""),
|
|
74
|
+
params: []
|
|
75
|
+
};
|
|
76
|
+
if (is(chunk, Name)) return {
|
|
77
|
+
sql: escapeName(chunk.value),
|
|
78
|
+
params: []
|
|
79
|
+
};
|
|
80
|
+
if (chunk === void 0) return {
|
|
81
|
+
sql: "",
|
|
82
|
+
params: []
|
|
83
|
+
};
|
|
84
|
+
if (Array.isArray(chunk)) {
|
|
85
|
+
const result = [new StringChunk("(")];
|
|
86
|
+
for (const [i, p] of chunk.entries()) {
|
|
87
|
+
result.push(p);
|
|
88
|
+
if (i < chunk.length - 1) result.push(new StringChunk(", "));
|
|
89
|
+
}
|
|
90
|
+
result.push(new StringChunk(")"));
|
|
91
|
+
return this.buildQueryFromSourceParams(result, config);
|
|
92
|
+
}
|
|
93
|
+
if (is(chunk, SQL)) return this.buildQueryFromSourceParams(chunk.queryChunks, {
|
|
94
|
+
...config,
|
|
95
|
+
inlineParams: inlineParams || chunk.shouldInlineParams
|
|
96
|
+
});
|
|
97
|
+
if (is(chunk, Table)) {
|
|
98
|
+
const schemaName = chunk[Table.Symbol.Schema];
|
|
99
|
+
const tableName = chunk[Table.Symbol.Name];
|
|
100
|
+
return {
|
|
101
|
+
sql: schemaName === void 0 || chunk[IsAlias] ? escapeName(tableName) : escapeName(schemaName) + "." + escapeName(tableName),
|
|
102
|
+
params: []
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
if (is(chunk, Column)) {
|
|
106
|
+
const columnName = casing.getColumnCasing(chunk);
|
|
107
|
+
if (_config.invokeSource === "indexes") return {
|
|
108
|
+
sql: escapeName(columnName),
|
|
109
|
+
params: []
|
|
110
|
+
};
|
|
111
|
+
const schemaName = chunk.table[Table.Symbol.Schema];
|
|
112
|
+
return {
|
|
113
|
+
sql: chunk.table[IsAlias] || schemaName === void 0 ? escapeName(chunk.table[Table.Symbol.Name]) + "." + escapeName(columnName) : escapeName(schemaName) + "." + escapeName(chunk.table[Table.Symbol.Name]) + "." + escapeName(columnName),
|
|
114
|
+
params: []
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
if (is(chunk, View)) {
|
|
118
|
+
const schemaName = chunk[ViewBaseConfig].schema;
|
|
119
|
+
const viewName = chunk[ViewBaseConfig].name;
|
|
120
|
+
return {
|
|
121
|
+
sql: schemaName === void 0 || chunk[ViewBaseConfig].isAlias ? escapeName(viewName) : escapeName(schemaName) + "." + escapeName(viewName),
|
|
122
|
+
params: []
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
if (is(chunk, Param)) {
|
|
126
|
+
if (is(chunk.value, Placeholder)) return {
|
|
127
|
+
sql: escapeParam(paramStartIndex.value++, chunk),
|
|
128
|
+
params: [chunk],
|
|
129
|
+
typings: ["none"]
|
|
130
|
+
};
|
|
131
|
+
const mappedValue = chunk.value === null ? null : chunk.encoder.mapToDriverValue(chunk.value);
|
|
132
|
+
if (is(mappedValue, SQL)) return this.buildQueryFromSourceParams([mappedValue], config);
|
|
133
|
+
if (inlineParams) return {
|
|
134
|
+
sql: this.mapInlineParam(mappedValue, config),
|
|
135
|
+
params: []
|
|
136
|
+
};
|
|
137
|
+
let typings = ["none"];
|
|
138
|
+
if (prepareTyping) typings = [prepareTyping(chunk.encoder)];
|
|
139
|
+
return {
|
|
140
|
+
sql: escapeParam(paramStartIndex.value++, mappedValue),
|
|
141
|
+
params: [mappedValue],
|
|
142
|
+
typings
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
if (is(chunk, Placeholder)) return {
|
|
146
|
+
sql: escapeParam(paramStartIndex.value++, chunk),
|
|
147
|
+
params: [chunk],
|
|
148
|
+
typings: ["none"]
|
|
149
|
+
};
|
|
150
|
+
if (is(chunk, SQL.Aliased) && chunk.fieldAlias !== void 0) return {
|
|
151
|
+
sql: escapeName(chunk.fieldAlias),
|
|
152
|
+
params: []
|
|
153
|
+
};
|
|
154
|
+
if (is(chunk, Subquery)) {
|
|
155
|
+
if (chunk._.isWith) return {
|
|
156
|
+
sql: escapeName(chunk._.alias),
|
|
157
|
+
params: []
|
|
158
|
+
};
|
|
159
|
+
return this.buildQueryFromSourceParams([
|
|
160
|
+
new StringChunk("("),
|
|
161
|
+
chunk._.sql,
|
|
162
|
+
new StringChunk(") "),
|
|
163
|
+
new Name(chunk._.alias)
|
|
164
|
+
], config);
|
|
165
|
+
}
|
|
166
|
+
if (isPgEnum(chunk)) {
|
|
167
|
+
if (chunk.schema) return {
|
|
168
|
+
sql: escapeName(chunk.schema) + "." + escapeName(chunk.enumName),
|
|
169
|
+
params: []
|
|
170
|
+
};
|
|
171
|
+
return {
|
|
172
|
+
sql: escapeName(chunk.enumName),
|
|
173
|
+
params: []
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
if (isSQLWrapper(chunk)) {
|
|
177
|
+
if (chunk.shouldOmitSQLParens?.()) return this.buildQueryFromSourceParams([chunk.getSQL()], config);
|
|
178
|
+
return this.buildQueryFromSourceParams([
|
|
179
|
+
new StringChunk("("),
|
|
180
|
+
chunk.getSQL(),
|
|
181
|
+
new StringChunk(")")
|
|
182
|
+
], config);
|
|
183
|
+
}
|
|
184
|
+
if (inlineParams) return {
|
|
185
|
+
sql: this.mapInlineParam(chunk, config),
|
|
186
|
+
params: []
|
|
187
|
+
};
|
|
188
|
+
return {
|
|
189
|
+
sql: escapeParam(paramStartIndex.value++, chunk),
|
|
190
|
+
params: [chunk],
|
|
191
|
+
typings: ["none"]
|
|
192
|
+
};
|
|
193
|
+
}));
|
|
194
|
+
}
|
|
195
|
+
mapInlineParam(chunk, { escapeString }) {
|
|
196
|
+
if (chunk === null) return "null";
|
|
197
|
+
if (typeof chunk === "number" || typeof chunk === "boolean") return chunk.toString();
|
|
198
|
+
if (typeof chunk === "string") return escapeString(chunk);
|
|
199
|
+
if (typeof chunk === "object") {
|
|
200
|
+
const mappedValueAsString = chunk.toString();
|
|
201
|
+
if (mappedValueAsString === "[object Object]") return escapeString(JSON.stringify(chunk));
|
|
202
|
+
return escapeString(mappedValueAsString);
|
|
203
|
+
}
|
|
204
|
+
throw new Error("Unexpected param value: " + chunk);
|
|
205
|
+
}
|
|
206
|
+
getSQL() {
|
|
207
|
+
return this;
|
|
208
|
+
}
|
|
209
|
+
as(alias) {
|
|
210
|
+
if (alias === void 0) return this;
|
|
211
|
+
return new SQL.Aliased(this, alias);
|
|
212
|
+
}
|
|
213
|
+
mapWith(decoder) {
|
|
214
|
+
this.decoder = typeof decoder === "function" ? { mapFromDriverValue: decoder } : decoder;
|
|
215
|
+
return this;
|
|
216
|
+
}
|
|
217
|
+
inlineParams() {
|
|
218
|
+
this.shouldInlineParams = true;
|
|
219
|
+
return this;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* This method is used to conditionally include a part of the query.
|
|
223
|
+
*
|
|
224
|
+
* @param condition - Condition to check
|
|
225
|
+
* @returns itself if the condition is `true`, otherwise `undefined`
|
|
226
|
+
*/
|
|
227
|
+
if(condition) {
|
|
228
|
+
return condition ? this : void 0;
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
var Name = class {
|
|
232
|
+
constructor(value) {
|
|
233
|
+
this.value = value;
|
|
234
|
+
}
|
|
235
|
+
static [entityKind] = "Name";
|
|
236
|
+
brand;
|
|
237
|
+
getSQL() {
|
|
238
|
+
return new SQL([this]);
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
function isDriverValueEncoder(value) {
|
|
242
|
+
return typeof value === "object" && value !== null && "mapToDriverValue" in value && typeof value.mapToDriverValue === "function";
|
|
243
|
+
}
|
|
244
|
+
const noopDecoder = { mapFromDriverValue: (value) => value };
|
|
245
|
+
const noopEncoder = { mapToDriverValue: (value) => value };
|
|
246
|
+
({
|
|
247
|
+
...noopDecoder,
|
|
248
|
+
...noopEncoder
|
|
249
|
+
});
|
|
250
|
+
var Param = class {
|
|
251
|
+
/**
|
|
252
|
+
* @param value - Parameter value
|
|
253
|
+
* @param encoder - Encoder to convert the value to a driver parameter
|
|
254
|
+
*/
|
|
255
|
+
constructor(value, encoder = noopEncoder) {
|
|
256
|
+
this.value = value;
|
|
257
|
+
this.encoder = encoder;
|
|
258
|
+
}
|
|
259
|
+
static [entityKind] = "Param";
|
|
260
|
+
brand;
|
|
261
|
+
getSQL() {
|
|
262
|
+
return new SQL([this]);
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
function sql(strings, ...params) {
|
|
266
|
+
const queryChunks = [];
|
|
267
|
+
if (params.length > 0 || strings.length > 0 && strings[0] !== "") queryChunks.push(new StringChunk(strings[0]));
|
|
268
|
+
for (const [paramIndex, param2] of params.entries()) queryChunks.push(param2, new StringChunk(strings[paramIndex + 1]));
|
|
269
|
+
return new SQL(queryChunks);
|
|
270
|
+
}
|
|
271
|
+
((sql2) => {
|
|
272
|
+
function empty() {
|
|
273
|
+
return new SQL([]);
|
|
274
|
+
}
|
|
275
|
+
sql2.empty = empty;
|
|
276
|
+
function fromList(list) {
|
|
277
|
+
return new SQL(list);
|
|
278
|
+
}
|
|
279
|
+
sql2.fromList = fromList;
|
|
280
|
+
function raw(str) {
|
|
281
|
+
return new SQL([new StringChunk(str)]);
|
|
282
|
+
}
|
|
283
|
+
sql2.raw = raw;
|
|
284
|
+
function join(chunks, separator) {
|
|
285
|
+
const result = [];
|
|
286
|
+
for (const [i, chunk] of chunks.entries()) {
|
|
287
|
+
if (i > 0 && separator !== void 0) result.push(separator);
|
|
288
|
+
result.push(chunk);
|
|
289
|
+
}
|
|
290
|
+
return new SQL(result);
|
|
291
|
+
}
|
|
292
|
+
sql2.join = join;
|
|
293
|
+
function identifier(value) {
|
|
294
|
+
return new Name(value);
|
|
295
|
+
}
|
|
296
|
+
sql2.identifier = identifier;
|
|
297
|
+
function placeholder2(name2) {
|
|
298
|
+
return new Placeholder(name2);
|
|
299
|
+
}
|
|
300
|
+
sql2.placeholder = placeholder2;
|
|
301
|
+
function param2(value, encoder) {
|
|
302
|
+
return new Param(value, encoder);
|
|
303
|
+
}
|
|
304
|
+
sql2.param = param2;
|
|
305
|
+
})(sql || (sql = {}));
|
|
306
|
+
((SQL2) => {
|
|
307
|
+
class Aliased {
|
|
308
|
+
constructor(sql2, fieldAlias) {
|
|
309
|
+
this.sql = sql2;
|
|
310
|
+
this.fieldAlias = fieldAlias;
|
|
311
|
+
}
|
|
312
|
+
static [entityKind] = "SQL.Aliased";
|
|
313
|
+
/** @internal */
|
|
314
|
+
isSelectionField = false;
|
|
315
|
+
getSQL() {
|
|
316
|
+
return this.sql;
|
|
317
|
+
}
|
|
318
|
+
/** @internal */
|
|
319
|
+
clone() {
|
|
320
|
+
return new Aliased(this.sql, this.fieldAlias);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
SQL2.Aliased = Aliased;
|
|
324
|
+
})(SQL || (SQL = {}));
|
|
325
|
+
var Placeholder = class {
|
|
326
|
+
constructor(name2) {
|
|
327
|
+
this.name = name2;
|
|
328
|
+
}
|
|
329
|
+
static [entityKind] = "Placeholder";
|
|
330
|
+
getSQL() {
|
|
331
|
+
return new SQL([this]);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
const IsDrizzleView = Symbol.for("drizzle:IsDrizzleView");
|
|
335
|
+
var View = class {
|
|
336
|
+
static [entityKind] = "View";
|
|
337
|
+
/** @internal */
|
|
338
|
+
[ViewBaseConfig];
|
|
339
|
+
/** @internal */
|
|
340
|
+
[IsDrizzleView] = true;
|
|
341
|
+
constructor({ name: name2, schema, selectedFields, query }) {
|
|
342
|
+
this[ViewBaseConfig] = {
|
|
343
|
+
name: name2,
|
|
344
|
+
originalName: name2,
|
|
345
|
+
schema,
|
|
346
|
+
selectedFields,
|
|
347
|
+
query,
|
|
348
|
+
isExisting: !query,
|
|
349
|
+
isAlias: false
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
getSQL() {
|
|
353
|
+
return new SQL([this]);
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
Column.prototype.getSQL = function() {
|
|
357
|
+
return new SQL([this]);
|
|
358
|
+
};
|
|
359
|
+
Table.prototype.getSQL = function() {
|
|
360
|
+
return new SQL([this]);
|
|
361
|
+
};
|
|
362
|
+
Subquery.prototype.getSQL = function() {
|
|
363
|
+
return new SQL([this]);
|
|
364
|
+
};
|
|
365
|
+
//#endregion
|
|
366
|
+
export { Param, Placeholder, SQL, StringChunk, View, isDriverValueEncoder, isSQLWrapper, sql };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const require_entity = require("./entity.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/subquery.js
|
|
3
|
+
var Subquery = class {
|
|
4
|
+
static [require_entity.entityKind] = "Subquery";
|
|
5
|
+
constructor(sql, fields, alias, isWith = false, usedTables = []) {
|
|
6
|
+
this._ = {
|
|
7
|
+
brand: "Subquery",
|
|
8
|
+
sql,
|
|
9
|
+
selectedFields: fields,
|
|
10
|
+
alias,
|
|
11
|
+
isWith,
|
|
12
|
+
usedTables
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.Subquery = Subquery;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { entityKind } from "./entity.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/subquery.js
|
|
3
|
+
var Subquery = class {
|
|
4
|
+
static [entityKind] = "Subquery";
|
|
5
|
+
constructor(sql, fields, alias, isWith = false, usedTables = []) {
|
|
6
|
+
this._ = {
|
|
7
|
+
brand: "Subquery",
|
|
8
|
+
sql,
|
|
9
|
+
selectedFields: fields,
|
|
10
|
+
alias,
|
|
11
|
+
isWith,
|
|
12
|
+
usedTables
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Subquery };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const require_entity = require("./entity.cjs");
|
|
2
|
+
const require_table_utils = require("./table.utils.cjs");
|
|
3
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/table.js
|
|
4
|
+
const Schema = Symbol.for("drizzle:Schema");
|
|
5
|
+
const Columns = Symbol.for("drizzle:Columns");
|
|
6
|
+
const ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
7
|
+
const OriginalName = Symbol.for("drizzle:OriginalName");
|
|
8
|
+
const BaseName = Symbol.for("drizzle:BaseName");
|
|
9
|
+
const IsAlias = Symbol.for("drizzle:IsAlias");
|
|
10
|
+
const ExtraConfigBuilder = Symbol.for("drizzle:ExtraConfigBuilder");
|
|
11
|
+
const IsDrizzleTable = Symbol.for("drizzle:IsDrizzleTable");
|
|
12
|
+
var Table = class {
|
|
13
|
+
static [require_entity.entityKind] = "Table";
|
|
14
|
+
/** @internal */
|
|
15
|
+
static Symbol = {
|
|
16
|
+
Name: require_table_utils.TableName,
|
|
17
|
+
Schema,
|
|
18
|
+
OriginalName,
|
|
19
|
+
Columns,
|
|
20
|
+
ExtraConfigColumns,
|
|
21
|
+
BaseName,
|
|
22
|
+
IsAlias,
|
|
23
|
+
ExtraConfigBuilder
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* Can be changed if the table is aliased.
|
|
28
|
+
*/
|
|
29
|
+
[require_table_utils.TableName];
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* Used to store the original name of the table, before any aliasing.
|
|
33
|
+
*/
|
|
34
|
+
[OriginalName];
|
|
35
|
+
/** @internal */
|
|
36
|
+
[Schema];
|
|
37
|
+
/** @internal */
|
|
38
|
+
[Columns];
|
|
39
|
+
/** @internal */
|
|
40
|
+
[ExtraConfigColumns];
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* Used to store the table name before the transformation via the `tableCreator` functions.
|
|
44
|
+
*/
|
|
45
|
+
[BaseName];
|
|
46
|
+
/** @internal */
|
|
47
|
+
[IsAlias] = false;
|
|
48
|
+
/** @internal */
|
|
49
|
+
[IsDrizzleTable] = true;
|
|
50
|
+
/** @internal */
|
|
51
|
+
[ExtraConfigBuilder] = void 0;
|
|
52
|
+
constructor(name, schema, baseName) {
|
|
53
|
+
this[require_table_utils.TableName] = this[OriginalName] = name;
|
|
54
|
+
this[Schema] = schema;
|
|
55
|
+
this[BaseName] = baseName;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
exports.IsAlias = IsAlias;
|
|
60
|
+
exports.Table = Table;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { entityKind } from "./entity.mjs";
|
|
2
|
+
import { TableName } from "./table.utils.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/table.js
|
|
4
|
+
const Schema = Symbol.for("drizzle:Schema");
|
|
5
|
+
const Columns = Symbol.for("drizzle:Columns");
|
|
6
|
+
const ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
7
|
+
const OriginalName = Symbol.for("drizzle:OriginalName");
|
|
8
|
+
const BaseName = Symbol.for("drizzle:BaseName");
|
|
9
|
+
const IsAlias = Symbol.for("drizzle:IsAlias");
|
|
10
|
+
const ExtraConfigBuilder = Symbol.for("drizzle:ExtraConfigBuilder");
|
|
11
|
+
const IsDrizzleTable = Symbol.for("drizzle:IsDrizzleTable");
|
|
12
|
+
var Table = class {
|
|
13
|
+
static [entityKind] = "Table";
|
|
14
|
+
/** @internal */
|
|
15
|
+
static Symbol = {
|
|
16
|
+
Name: TableName,
|
|
17
|
+
Schema,
|
|
18
|
+
OriginalName,
|
|
19
|
+
Columns,
|
|
20
|
+
ExtraConfigColumns,
|
|
21
|
+
BaseName,
|
|
22
|
+
IsAlias,
|
|
23
|
+
ExtraConfigBuilder
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* Can be changed if the table is aliased.
|
|
28
|
+
*/
|
|
29
|
+
[TableName];
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* Used to store the original name of the table, before any aliasing.
|
|
33
|
+
*/
|
|
34
|
+
[OriginalName];
|
|
35
|
+
/** @internal */
|
|
36
|
+
[Schema];
|
|
37
|
+
/** @internal */
|
|
38
|
+
[Columns];
|
|
39
|
+
/** @internal */
|
|
40
|
+
[ExtraConfigColumns];
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* Used to store the table name before the transformation via the `tableCreator` functions.
|
|
44
|
+
*/
|
|
45
|
+
[BaseName];
|
|
46
|
+
/** @internal */
|
|
47
|
+
[IsAlias] = false;
|
|
48
|
+
/** @internal */
|
|
49
|
+
[IsDrizzleTable] = true;
|
|
50
|
+
/** @internal */
|
|
51
|
+
[ExtraConfigBuilder] = void 0;
|
|
52
|
+
constructor(name, schema, baseName) {
|
|
53
|
+
this[TableName] = this[OriginalName] = name;
|
|
54
|
+
this[Schema] = schema;
|
|
55
|
+
this[BaseName] = baseName;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
export { IsAlias, Table };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/table.utils.js
|
|
2
|
+
const TableName = Symbol.for("drizzle:Name");
|
|
3
|
+
//#endregion
|
|
4
|
+
exports.TableName = TableName;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/table.utils.js
|
|
2
|
+
const TableName = Symbol.for("drizzle:Name");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { TableName };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/tracing.js
|
|
2
|
+
const tracer = { startActiveSpan(name, fn) {
|
|
3
|
+
return fn();
|
|
4
|
+
} };
|
|
5
|
+
//#endregion
|
|
6
|
+
exports.tracer = tracer;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/tracing.js
|
|
2
|
+
const tracer = { startActiveSpan(name, fn) {
|
|
3
|
+
return fn();
|
|
4
|
+
} };
|
|
5
|
+
//#endregion
|
|
6
|
+
export { tracer };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/view-common.js
|
|
2
|
+
const ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
3
|
+
//#endregion
|
|
4
|
+
exports.ViewBaseConfig = ViewBaseConfig;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20260313.1_@electric-sql+pglite@0.2.17_@_31f44b782f9321d71f3ce9d35aa1edf7/node_modules/drizzle-orm/view-common.js
|
|
2
|
+
const ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { ViewBaseConfig };
|