@hot-updater/server 0.30.12 → 0.31.1
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,65 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_sha3 } from "../../../../../@noble_hashes@1.8.0/node_modules/@noble/hashes/sha3.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/@paralleldrive+cuid2@2.3.1/node_modules/@paralleldrive/cuid2/src/index.js
|
|
4
|
+
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
+
const { sha3_512: sha3 } = require_sha3();
|
|
6
|
+
const defaultLength = 24;
|
|
7
|
+
const bigLength = 32;
|
|
8
|
+
const createEntropy = (length = 4, random = Math.random) => {
|
|
9
|
+
let entropy = "";
|
|
10
|
+
while (entropy.length < length) entropy = entropy + Math.floor(random() * 36).toString(36);
|
|
11
|
+
return entropy;
|
|
12
|
+
};
|
|
13
|
+
function bufToBigInt(buf) {
|
|
14
|
+
let bits = 8n;
|
|
15
|
+
let value = 0n;
|
|
16
|
+
for (const i of buf.values()) {
|
|
17
|
+
const bi = BigInt(i);
|
|
18
|
+
value = (value << bits) + bi;
|
|
19
|
+
}
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
const hash = (input = "") => {
|
|
23
|
+
return bufToBigInt(sha3(input)).toString(36).slice(1);
|
|
24
|
+
};
|
|
25
|
+
const alphabet = Array.from({ length: 26 }, (x, i) => String.fromCharCode(i + 97));
|
|
26
|
+
const randomLetter = (random) => alphabet[Math.floor(random() * alphabet.length)];
|
|
27
|
+
const createFingerprint = ({ globalObj = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : {}, random = Math.random } = {}) => {
|
|
28
|
+
const globals = Object.keys(globalObj).toString();
|
|
29
|
+
return hash(globals.length ? globals + createEntropy(bigLength, random) : createEntropy(bigLength, random)).substring(0, bigLength);
|
|
30
|
+
};
|
|
31
|
+
const createCounter = (count) => () => {
|
|
32
|
+
return count++;
|
|
33
|
+
};
|
|
34
|
+
const initialCountMax = 476782367;
|
|
35
|
+
const init = ({ random = Math.random, counter = createCounter(Math.floor(random() * initialCountMax)), length = defaultLength, fingerprint = createFingerprint({ random }) } = {}) => {
|
|
36
|
+
return function cuid2() {
|
|
37
|
+
const firstLetter = randomLetter(random);
|
|
38
|
+
const time = Date.now().toString(36);
|
|
39
|
+
const count = counter().toString(36);
|
|
40
|
+
return `${firstLetter + hash(`${time + createEntropy(length, random) + count + fingerprint}`).substring(1, length)}`;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
const createId = init();
|
|
44
|
+
const isCuid = (id, { minLength = 2, maxLength = bigLength } = {}) => {
|
|
45
|
+
const length = id.length;
|
|
46
|
+
const regex = /^[0-9a-z]+$/;
|
|
47
|
+
try {
|
|
48
|
+
if (typeof id === "string" && length >= minLength && length <= maxLength && regex.test(id)) return true;
|
|
49
|
+
} finally {}
|
|
50
|
+
return false;
|
|
51
|
+
};
|
|
52
|
+
module.exports.getConstants = () => ({
|
|
53
|
+
defaultLength,
|
|
54
|
+
bigLength
|
|
55
|
+
});
|
|
56
|
+
module.exports.init = init;
|
|
57
|
+
module.exports.createId = createId;
|
|
58
|
+
module.exports.bufToBigInt = bufToBigInt;
|
|
59
|
+
module.exports.createCounter = createCounter;
|
|
60
|
+
module.exports.createFingerprint = createFingerprint;
|
|
61
|
+
module.exports.isCuid = isCuid;
|
|
62
|
+
}));
|
|
63
|
+
//#endregion
|
|
64
|
+
export default require_src();
|
|
65
|
+
export { require_src };
|
|
@@ -0,0 +1,52 @@
|
|
|
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/column.js
|
|
3
|
+
var Column = class {
|
|
4
|
+
constructor(table, config) {
|
|
5
|
+
this.table = table;
|
|
6
|
+
this.config = config;
|
|
7
|
+
this.name = config.name;
|
|
8
|
+
this.keyAsName = config.keyAsName;
|
|
9
|
+
this.notNull = config.notNull;
|
|
10
|
+
this.default = config.default;
|
|
11
|
+
this.defaultFn = config.defaultFn;
|
|
12
|
+
this.onUpdateFn = config.onUpdateFn;
|
|
13
|
+
this.hasDefault = config.hasDefault;
|
|
14
|
+
this.primary = config.primaryKey;
|
|
15
|
+
this.isUnique = config.isUnique;
|
|
16
|
+
this.uniqueName = config.uniqueName;
|
|
17
|
+
this.uniqueType = config.uniqueType;
|
|
18
|
+
this.dataType = config.dataType;
|
|
19
|
+
this.columnType = config.columnType;
|
|
20
|
+
this.generated = config.generated;
|
|
21
|
+
this.generatedIdentity = config.generatedIdentity;
|
|
22
|
+
}
|
|
23
|
+
static [require_entity.entityKind] = "Column";
|
|
24
|
+
name;
|
|
25
|
+
keyAsName;
|
|
26
|
+
primary;
|
|
27
|
+
notNull;
|
|
28
|
+
default;
|
|
29
|
+
defaultFn;
|
|
30
|
+
onUpdateFn;
|
|
31
|
+
hasDefault;
|
|
32
|
+
isUnique;
|
|
33
|
+
uniqueName;
|
|
34
|
+
uniqueType;
|
|
35
|
+
dataType;
|
|
36
|
+
columnType;
|
|
37
|
+
enumValues = void 0;
|
|
38
|
+
generated = void 0;
|
|
39
|
+
generatedIdentity = void 0;
|
|
40
|
+
config;
|
|
41
|
+
mapFromDriverValue(value) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
mapToDriverValue(value) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
shouldDisableInsert() {
|
|
48
|
+
return this.config.generated !== void 0 && this.config.generated.type !== "byDefault";
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
exports.Column = Column;
|
|
@@ -0,0 +1,52 @@
|
|
|
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/column.js
|
|
3
|
+
var Column = class {
|
|
4
|
+
constructor(table, config) {
|
|
5
|
+
this.table = table;
|
|
6
|
+
this.config = config;
|
|
7
|
+
this.name = config.name;
|
|
8
|
+
this.keyAsName = config.keyAsName;
|
|
9
|
+
this.notNull = config.notNull;
|
|
10
|
+
this.default = config.default;
|
|
11
|
+
this.defaultFn = config.defaultFn;
|
|
12
|
+
this.onUpdateFn = config.onUpdateFn;
|
|
13
|
+
this.hasDefault = config.hasDefault;
|
|
14
|
+
this.primary = config.primaryKey;
|
|
15
|
+
this.isUnique = config.isUnique;
|
|
16
|
+
this.uniqueName = config.uniqueName;
|
|
17
|
+
this.uniqueType = config.uniqueType;
|
|
18
|
+
this.dataType = config.dataType;
|
|
19
|
+
this.columnType = config.columnType;
|
|
20
|
+
this.generated = config.generated;
|
|
21
|
+
this.generatedIdentity = config.generatedIdentity;
|
|
22
|
+
}
|
|
23
|
+
static [entityKind] = "Column";
|
|
24
|
+
name;
|
|
25
|
+
keyAsName;
|
|
26
|
+
primary;
|
|
27
|
+
notNull;
|
|
28
|
+
default;
|
|
29
|
+
defaultFn;
|
|
30
|
+
onUpdateFn;
|
|
31
|
+
hasDefault;
|
|
32
|
+
isUnique;
|
|
33
|
+
uniqueName;
|
|
34
|
+
uniqueType;
|
|
35
|
+
dataType;
|
|
36
|
+
columnType;
|
|
37
|
+
enumValues = void 0;
|
|
38
|
+
generated = void 0;
|
|
39
|
+
generatedIdentity = void 0;
|
|
40
|
+
config;
|
|
41
|
+
mapFromDriverValue(value) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
mapToDriverValue(value) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
shouldDisableInsert() {
|
|
48
|
+
return this.config.generated !== void 0 && this.config.generated.type !== "byDefault";
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
export { Column };
|
|
@@ -0,0 +1,16 @@
|
|
|
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/entity.js
|
|
2
|
+
const entityKind = Symbol.for("drizzle:entityKind");
|
|
3
|
+
function is(value, type) {
|
|
4
|
+
if (!value || typeof value !== "object") return false;
|
|
5
|
+
if (value instanceof type) return true;
|
|
6
|
+
if (!Object.prototype.hasOwnProperty.call(type, entityKind)) throw new Error(`Class "${type.name ?? "<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);
|
|
7
|
+
let cls = Object.getPrototypeOf(value).constructor;
|
|
8
|
+
if (cls) while (cls) {
|
|
9
|
+
if (entityKind in cls && cls[entityKind] === type[entityKind]) return true;
|
|
10
|
+
cls = Object.getPrototypeOf(cls);
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.entityKind = entityKind;
|
|
16
|
+
exports.is = is;
|
|
@@ -0,0 +1,15 @@
|
|
|
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/entity.js
|
|
2
|
+
const entityKind = Symbol.for("drizzle:entityKind");
|
|
3
|
+
function is(value, type) {
|
|
4
|
+
if (!value || typeof value !== "object") return false;
|
|
5
|
+
if (value instanceof type) return true;
|
|
6
|
+
if (!Object.prototype.hasOwnProperty.call(type, entityKind)) throw new Error(`Class "${type.name ?? "<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);
|
|
7
|
+
let cls = Object.getPrototypeOf(value).constructor;
|
|
8
|
+
if (cls) while (cls) {
|
|
9
|
+
if (entityKind in cls && cls[entityKind] === type[entityKind]) return true;
|
|
10
|
+
cls = Object.getPrototypeOf(cls);
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { entityKind, is };
|
|
@@ -0,0 +1,7 @@
|
|
|
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/pg-core/columns/enum.js
|
|
2
|
+
const isPgEnumSym = Symbol.for("drizzle:isPgEnum");
|
|
3
|
+
function isPgEnum(obj) {
|
|
4
|
+
return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
exports.isPgEnum = isPgEnum;
|
|
@@ -0,0 +1,7 @@
|
|
|
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/pg-core/columns/enum.js
|
|
2
|
+
const isPgEnumSym = Symbol.for("drizzle:isPgEnum");
|
|
3
|
+
function isPgEnum(obj) {
|
|
4
|
+
return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { isPgEnum };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const require_entity = require("../../entity.cjs");
|
|
2
|
+
const require_column = require("../../column.cjs");
|
|
3
|
+
const require_table = require("../../table.cjs");
|
|
4
|
+
const require_sql = require("../sql.cjs");
|
|
5
|
+
//#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/expressions/conditions.js
|
|
6
|
+
function bindIfParam(value, column) {
|
|
7
|
+
if (require_sql.isDriverValueEncoder(column) && !require_sql.isSQLWrapper(value) && !require_entity.is(value, require_sql.Param) && !require_entity.is(value, require_sql.Placeholder) && !require_entity.is(value, require_column.Column) && !require_entity.is(value, require_table.Table) && !require_entity.is(value, require_sql.View)) return new require_sql.Param(value, column);
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
const eq = (left, right) => {
|
|
11
|
+
return require_sql.sql`${left} = ${bindIfParam(right, left)}`;
|
|
12
|
+
};
|
|
13
|
+
const ne = (left, right) => {
|
|
14
|
+
return require_sql.sql`${left} <> ${bindIfParam(right, left)}`;
|
|
15
|
+
};
|
|
16
|
+
function and(...unfilteredConditions) {
|
|
17
|
+
const conditions = unfilteredConditions.filter((c) => c !== void 0);
|
|
18
|
+
if (conditions.length === 0) return;
|
|
19
|
+
if (conditions.length === 1) return new require_sql.SQL(conditions);
|
|
20
|
+
return new require_sql.SQL([
|
|
21
|
+
new require_sql.StringChunk("("),
|
|
22
|
+
require_sql.sql.join(conditions, new require_sql.StringChunk(" and ")),
|
|
23
|
+
new require_sql.StringChunk(")")
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
function or(...unfilteredConditions) {
|
|
27
|
+
const conditions = unfilteredConditions.filter((c) => c !== void 0);
|
|
28
|
+
if (conditions.length === 0) return;
|
|
29
|
+
if (conditions.length === 1) return new require_sql.SQL(conditions);
|
|
30
|
+
return new require_sql.SQL([
|
|
31
|
+
new require_sql.StringChunk("("),
|
|
32
|
+
require_sql.sql.join(conditions, new require_sql.StringChunk(" or ")),
|
|
33
|
+
new require_sql.StringChunk(")")
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
function not(condition) {
|
|
37
|
+
return require_sql.sql`not ${condition}`;
|
|
38
|
+
}
|
|
39
|
+
const gt = (left, right) => {
|
|
40
|
+
return require_sql.sql`${left} > ${bindIfParam(right, left)}`;
|
|
41
|
+
};
|
|
42
|
+
const gte = (left, right) => {
|
|
43
|
+
return require_sql.sql`${left} >= ${bindIfParam(right, left)}`;
|
|
44
|
+
};
|
|
45
|
+
const lt = (left, right) => {
|
|
46
|
+
return require_sql.sql`${left} < ${bindIfParam(right, left)}`;
|
|
47
|
+
};
|
|
48
|
+
const lte = (left, right) => {
|
|
49
|
+
return require_sql.sql`${left} <= ${bindIfParam(right, left)}`;
|
|
50
|
+
};
|
|
51
|
+
function inArray(column, values) {
|
|
52
|
+
if (Array.isArray(values)) {
|
|
53
|
+
if (values.length === 0) return require_sql.sql`false`;
|
|
54
|
+
return require_sql.sql`${column} in ${values.map((v) => bindIfParam(v, column))}`;
|
|
55
|
+
}
|
|
56
|
+
return require_sql.sql`${column} in ${bindIfParam(values, column)}`;
|
|
57
|
+
}
|
|
58
|
+
function notInArray(column, values) {
|
|
59
|
+
if (Array.isArray(values)) {
|
|
60
|
+
if (values.length === 0) return require_sql.sql`true`;
|
|
61
|
+
return require_sql.sql`${column} not in ${values.map((v) => bindIfParam(v, column))}`;
|
|
62
|
+
}
|
|
63
|
+
return require_sql.sql`${column} not in ${bindIfParam(values, column)}`;
|
|
64
|
+
}
|
|
65
|
+
function isNull(value) {
|
|
66
|
+
return require_sql.sql`${value} is null`;
|
|
67
|
+
}
|
|
68
|
+
function isNotNull(value) {
|
|
69
|
+
return require_sql.sql`${value} is not null`;
|
|
70
|
+
}
|
|
71
|
+
function like(column, value) {
|
|
72
|
+
return require_sql.sql`${column} like ${value}`;
|
|
73
|
+
}
|
|
74
|
+
function notLike(column, value) {
|
|
75
|
+
return require_sql.sql`${column} not like ${value}`;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
exports.and = and;
|
|
79
|
+
exports.eq = eq;
|
|
80
|
+
exports.gt = gt;
|
|
81
|
+
exports.gte = gte;
|
|
82
|
+
exports.inArray = inArray;
|
|
83
|
+
exports.isNotNull = isNotNull;
|
|
84
|
+
exports.isNull = isNull;
|
|
85
|
+
exports.like = like;
|
|
86
|
+
exports.lt = lt;
|
|
87
|
+
exports.lte = lte;
|
|
88
|
+
exports.ne = ne;
|
|
89
|
+
exports.not = not;
|
|
90
|
+
exports.notInArray = notInArray;
|
|
91
|
+
exports.notLike = notLike;
|
|
92
|
+
exports.or = or;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { is } from "../../entity.mjs";
|
|
2
|
+
import { Column } from "../../column.mjs";
|
|
3
|
+
import { Table } from "../../table.mjs";
|
|
4
|
+
import { Param, Placeholder, SQL, StringChunk, View, isDriverValueEncoder, isSQLWrapper, sql } from "../sql.mjs";
|
|
5
|
+
//#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/expressions/conditions.js
|
|
6
|
+
function bindIfParam(value, column) {
|
|
7
|
+
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) return new Param(value, column);
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
const eq = (left, right) => {
|
|
11
|
+
return sql`${left} = ${bindIfParam(right, left)}`;
|
|
12
|
+
};
|
|
13
|
+
const ne = (left, right) => {
|
|
14
|
+
return sql`${left} <> ${bindIfParam(right, left)}`;
|
|
15
|
+
};
|
|
16
|
+
function and(...unfilteredConditions) {
|
|
17
|
+
const conditions = unfilteredConditions.filter((c) => c !== void 0);
|
|
18
|
+
if (conditions.length === 0) return;
|
|
19
|
+
if (conditions.length === 1) return new SQL(conditions);
|
|
20
|
+
return new SQL([
|
|
21
|
+
new StringChunk("("),
|
|
22
|
+
sql.join(conditions, new StringChunk(" and ")),
|
|
23
|
+
new StringChunk(")")
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
function or(...unfilteredConditions) {
|
|
27
|
+
const conditions = unfilteredConditions.filter((c) => c !== void 0);
|
|
28
|
+
if (conditions.length === 0) return;
|
|
29
|
+
if (conditions.length === 1) return new SQL(conditions);
|
|
30
|
+
return new SQL([
|
|
31
|
+
new StringChunk("("),
|
|
32
|
+
sql.join(conditions, new StringChunk(" or ")),
|
|
33
|
+
new StringChunk(")")
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
function not(condition) {
|
|
37
|
+
return sql`not ${condition}`;
|
|
38
|
+
}
|
|
39
|
+
const gt = (left, right) => {
|
|
40
|
+
return sql`${left} > ${bindIfParam(right, left)}`;
|
|
41
|
+
};
|
|
42
|
+
const gte = (left, right) => {
|
|
43
|
+
return sql`${left} >= ${bindIfParam(right, left)}`;
|
|
44
|
+
};
|
|
45
|
+
const lt = (left, right) => {
|
|
46
|
+
return sql`${left} < ${bindIfParam(right, left)}`;
|
|
47
|
+
};
|
|
48
|
+
const lte = (left, right) => {
|
|
49
|
+
return sql`${left} <= ${bindIfParam(right, left)}`;
|
|
50
|
+
};
|
|
51
|
+
function inArray(column, values) {
|
|
52
|
+
if (Array.isArray(values)) {
|
|
53
|
+
if (values.length === 0) return sql`false`;
|
|
54
|
+
return sql`${column} in ${values.map((v) => bindIfParam(v, column))}`;
|
|
55
|
+
}
|
|
56
|
+
return sql`${column} in ${bindIfParam(values, column)}`;
|
|
57
|
+
}
|
|
58
|
+
function notInArray(column, values) {
|
|
59
|
+
if (Array.isArray(values)) {
|
|
60
|
+
if (values.length === 0) return sql`true`;
|
|
61
|
+
return sql`${column} not in ${values.map((v) => bindIfParam(v, column))}`;
|
|
62
|
+
}
|
|
63
|
+
return sql`${column} not in ${bindIfParam(values, column)}`;
|
|
64
|
+
}
|
|
65
|
+
function isNull(value) {
|
|
66
|
+
return sql`${value} is null`;
|
|
67
|
+
}
|
|
68
|
+
function isNotNull(value) {
|
|
69
|
+
return sql`${value} is not null`;
|
|
70
|
+
}
|
|
71
|
+
function like(column, value) {
|
|
72
|
+
return sql`${column} like ${value}`;
|
|
73
|
+
}
|
|
74
|
+
function notLike(column, value) {
|
|
75
|
+
return sql`${column} not like ${value}`;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { and, eq, gt, gte, inArray, isNotNull, isNull, like, lt, lte, ne, not, notInArray, notLike, or };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const require_sql = require("../sql.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/sql/expressions/select.js
|
|
3
|
+
function asc(column) {
|
|
4
|
+
return require_sql.sql`${column} asc`;
|
|
5
|
+
}
|
|
6
|
+
function desc(column) {
|
|
7
|
+
return require_sql.sql`${column} desc`;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.asc = asc;
|
|
11
|
+
exports.desc = desc;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { sql } from "../sql.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/sql/expressions/select.js
|
|
3
|
+
function asc(column) {
|
|
4
|
+
return sql`${column} asc`;
|
|
5
|
+
}
|
|
6
|
+
function desc(column) {
|
|
7
|
+
return sql`${column} desc`;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { asc, desc };
|