@hot-updater/server 0.33.2 → 0.34.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 +0 -2
- package/dist/adapters/drizzle.cjs +195 -2
- package/dist/adapters/drizzle.d.cts +7 -4
- package/dist/adapters/drizzle.d.mts +7 -4
- package/dist/adapters/drizzle.mjs +194 -2
- package/dist/adapters/drizzleLazyDB.cjs +53 -0
- package/dist/adapters/drizzleLazyDB.mjs +53 -0
- package/dist/adapters/kysely.cjs +154 -3
- package/dist/adapters/kysely.d.cts +18 -10
- package/dist/adapters/kysely.d.mts +18 -10
- package/dist/adapters/kysely.mjs +153 -3
- package/dist/adapters/mongodb.cjs +183 -2
- package/dist/adapters/mongodb.d.cts +5 -4
- package/dist/adapters/mongodb.d.mts +5 -4
- package/dist/adapters/mongodb.mjs +183 -2
- package/dist/adapters/prisma.cjs +200 -2
- package/dist/adapters/prisma.d.cts +9 -4
- package/dist/adapters/prisma.d.mts +9 -4
- package/dist/adapters/prisma.mjs +199 -2
- package/dist/db/bundleRows.cjs +82 -0
- package/dist/db/bundleRows.d.cts +33 -0
- package/dist/db/bundleRows.d.mts +33 -0
- package/dist/db/bundleRows.mjs +79 -0
- package/dist/db/fixedMigrator.cjs +136 -0
- package/dist/db/fixedMigrator.mjs +135 -0
- package/dist/db/index.cjs +17 -15
- package/dist/db/index.d.cts +3 -3
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +17 -15
- package/dist/db/pluginCore.cjs +13 -5
- package/dist/db/pluginCore.mjs +13 -5
- package/dist/db/schema/mongodb.cjs +17 -0
- package/dist/db/schema/mongodb.mjs +17 -0
- package/dist/db/schema/registry.cjs +23 -0
- package/dist/db/schema/registry.mjs +18 -0
- package/dist/db/schema/sql.cjs +84 -0
- package/dist/db/schema/sql.mjs +78 -0
- package/dist/db/schema/sqlMigrations.cjs +74 -0
- package/dist/db/schema/sqlMigrations.mjs +73 -0
- package/dist/db/schema/sqlOperations.cjs +27 -0
- package/dist/db/schema/sqlOperations.mjs +26 -0
- package/dist/db/schemaEnhancements.cjs +1 -152
- package/dist/db/schemaEnhancements.mjs +1 -149
- package/dist/db/schemaGenerators.cjs +222 -0
- package/dist/db/schemaGenerators.mjs +220 -0
- package/dist/db/schemaReadiness.cjs +23 -0
- package/dist/db/schemaReadiness.d.cts +8 -0
- package/dist/db/schemaReadiness.d.mts +8 -0
- package/dist/db/schemaReadiness.mjs +22 -0
- package/dist/db/types.cjs +10 -2
- package/dist/db/types.d.cts +58 -14
- package/dist/db/types.d.mts +58 -14
- package/dist/db/types.mjs +9 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +2 -2
- package/dist/{packages/server/package.cjs → package.cjs} +1 -1
- package/dist/{packages/server/package.mjs → package.mjs} +1 -1
- package/dist/runtime.cjs +9 -2
- package/dist/runtime.mjs +9 -2
- package/dist/schema/dsl.cjs +86 -0
- package/dist/schema/dsl.mjs +73 -0
- package/dist/schema/index.cjs +13 -0
- package/dist/schema/index.mjs +13 -0
- package/dist/schema/settings.cjs +9 -0
- package/dist/schema/settings.mjs +9 -0
- package/dist/schema/types.cjs +6 -0
- package/dist/schema/types.mjs +5 -0
- package/dist/schema/v0_21_0.cjs +33 -18
- package/dist/schema/v0_21_0.mjs +32 -18
- package/dist/schema/v0_29_0.cjs +40 -20
- package/dist/schema/v0_29_0.mjs +39 -20
- package/dist/schema/v0_31_0.cjs +77 -43
- package/dist/schema/v0_31_0.mjs +75 -43
- package/dist/version.cjs +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +30 -16
- package/src/adapters/drizzle.spec.ts +75 -0
- package/src/adapters/drizzle.ts +328 -12
- package/src/adapters/drizzleLazyDB.ts +151 -0
- package/src/adapters/kysely.spec.ts +107 -0
- package/src/adapters/kysely.ts +349 -14
- package/src/adapters/mongodb.ts +298 -15
- package/src/adapters/prisma.ts +337 -12
- package/src/db/bundleRows.ts +140 -0
- package/src/db/fixedMigrator.spec.ts +89 -0
- package/src/db/fixedMigrator.ts +288 -0
- package/src/db/hotUpdaterSchema.ts +6 -0
- package/src/db/index.spec.ts +976 -13
- package/src/db/index.ts +37 -36
- package/src/db/pluginCore.spec.ts +17 -11
- package/src/db/pluginCore.ts +15 -6
- package/src/db/schema/definitions.ts +1 -0
- package/src/db/schema/mongodb.ts +26 -0
- package/src/db/schema/registry.ts +55 -0
- package/src/db/schema/sql.ts +200 -0
- package/src/db/schema/sqlMigrations.ts +219 -0
- package/src/db/schema/sqlOperations.ts +62 -0
- package/src/db/schema/types.ts +1 -0
- package/src/db/schemaEnhancements.ts +0 -405
- package/src/db/schemaGenerators.ts +382 -0
- package/src/db/schemaReadiness.ts +33 -0
- package/src/db/types.ts +69 -25
- package/src/runtime.spec.ts +70 -0
- package/src/runtime.ts +14 -2
- package/src/schema/dsl-all-versions.spec.ts +26 -0
- package/src/schema/dsl.ts +148 -0
- package/src/schema/index.ts +16 -0
- package/src/schema/settings.ts +15 -0
- package/src/schema/types.ts +73 -0
- package/src/schema/v0_21_0.ts +48 -18
- package/src/schema/v0_29_0.ts +58 -22
- package/src/schema/v0_31_0.spec.ts +73 -0
- package/src/schema/v0_31_0.ts +116 -54
- package/dist/_virtual/_rolldown/runtime.mjs +0 -6
- package/dist/calculatePagination.cjs +0 -25
- package/dist/calculatePagination.mjs +0 -25
- package/dist/db/ormCore.cjs +0 -577
- package/dist/db/ormCore.d.cts +0 -110
- package/dist/db/ormCore.d.mts +0 -110
- package/dist/db/ormCore.mjs +0 -575
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/_u64.cjs +0 -112
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/_u64.mjs +0 -108
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/cryptoNode.cjs +0 -22
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/cryptoNode.mjs +0 -18
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/sha3.cjs +0 -219
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/sha3.mjs +0 -214
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/utils.cjs +0 -275
- package/dist/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/utils.mjs +0 -270
- package/dist/node_modules/.pnpm/@paralleldrive_cuid2@2.3.1/node_modules/@paralleldrive/cuid2/index.cjs +0 -17
- package/dist/node_modules/.pnpm/@paralleldrive_cuid2@2.3.1/node_modules/@paralleldrive/cuid2/index.mjs +0 -13
- package/dist/node_modules/.pnpm/@paralleldrive_cuid2@2.3.1/node_modules/@paralleldrive/cuid2/src/index.cjs +0 -69
- package/dist/node_modules/.pnpm/@paralleldrive_cuid2@2.3.1/node_modules/@paralleldrive/cuid2/src/index.mjs +0 -65
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/column.cjs +0 -52
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/column.mjs +0 -52
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/entity.cjs +0 -16
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/entity.mjs +0 -15
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/pg-core/columns/enum.cjs +0 -7
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/pg-core/columns/enum.mjs +0 -7
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/sql/expressions/conditions.cjs +0 -92
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/sql/expressions/conditions.mjs +0 -78
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/sql/expressions/select.cjs +0 -11
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/sql/expressions/select.mjs +0 -10
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/sql/sql.cjs +0 -383
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/sql/sql.mjs +0 -366
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/subquery.cjs +0 -17
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/subquery.mjs +0 -17
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/table.cjs +0 -60
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/table.mjs +0 -59
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/table.utils.cjs +0 -4
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/table.utils.mjs +0 -4
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/tracing.cjs +0 -6
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/tracing.mjs +0 -6
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/view-common.cjs +0 -4
- package/dist/node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare_workers-types@4.20260611.1_@electric-sql_pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/view-common.mjs +0 -4
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/adapters/drizzle/index.cjs +0 -383
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/adapters/drizzle/index.d.cts +0 -12
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/adapters/drizzle/index.d.mts +0 -12
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/adapters/drizzle/index.mjs +0 -383
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/adapters/kysely/index.cjs +0 -4
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/adapters/kysely/index.mjs +0 -5
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/adapters/prisma/index.cjs +0 -339
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/adapters/prisma/index.d.cts +0 -70
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/adapters/prisma/index.d.mts +0 -70
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/adapters/prisma/index.mjs +0 -339
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-7PZK4ONR.cjs +0 -57
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-7PZK4ONR.mjs +0 -56
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-C6OTUURW.cjs +0 -330
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-C6OTUURW.mjs +0 -326
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-CHTIKPQU.cjs +0 -166
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-CHTIKPQU.mjs +0 -163
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-GUE4GMNC.cjs +0 -14
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-GUE4GMNC.mjs +0 -13
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-LHHP6UVP.cjs +0 -24
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-LHHP6UVP.mjs +0 -24
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-LVCPMTAT.cjs +0 -1190
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-LVCPMTAT.mjs +0 -1189
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-PK2W2SQ7.cjs +0 -197
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-PK2W2SQ7.mjs +0 -197
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-ZEQMAIFI.cjs +0 -410
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-ZEQMAIFI.mjs +0 -400
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-ZOCGSAWS.cjs +0 -213
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/chunk-ZOCGSAWS.mjs +0 -212
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/create-tg0451Y_.d.cts +0 -285
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/create-tg0451Y_.d.mts +0 -285
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/index-CMqePMTF.d.cts +0 -45
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/index-CMqePMTF.d.mts +0 -45
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/index.cjs +0 -69
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/index.d.cts +0 -49
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/index.d.mts +0 -49
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/index.mjs +0 -67
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/query/index.d.cts +0 -156
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/query/index.d.mts +0 -156
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/schema/index.cjs +0 -1
- package/dist/node_modules/.pnpm/fumadb@0.2.2_mongodb@6.20.0_@aws-sdk_credential-providers@3.1066.0_socks@2.8.9__prisma@_ee79457f0e32f18f0beb5c2db02e4f73/node_modules/fumadb/dist/schema/index.mjs +0 -2
- package/src/db/ormCore.ts +0 -1059
- package/src/db/ormUpdateCheck.bench.ts +0 -262
|
@@ -1,366 +0,0 @@
|
|
|
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.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/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 };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const require_entity = require("./entity.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/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;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { entityKind } from "./entity.mjs";
|
|
2
|
-
//#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/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 };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
const require_entity = require("./entity.cjs");
|
|
2
|
-
const require_table_utils = require("./table.utils.cjs");
|
|
3
|
-
//#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/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;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { entityKind } from "./entity.mjs";
|
|
2
|
-
import { TableName } from "./table.utils.mjs";
|
|
3
|
-
//#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/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 };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/table.utils.js
|
|
2
|
-
const TableName = Symbol.for("drizzle:Name");
|
|
3
|
-
//#endregion
|
|
4
|
-
exports.TableName = TableName;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/table.utils.js
|
|
2
|
-
const TableName = Symbol.for("drizzle:Name");
|
|
3
|
-
//#endregion
|
|
4
|
-
export { TableName };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/tracing.js
|
|
2
|
-
const tracer = { startActiveSpan(name, fn) {
|
|
3
|
-
return fn();
|
|
4
|
-
} };
|
|
5
|
-
//#endregion
|
|
6
|
-
exports.tracer = tracer;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/tracing.js
|
|
2
|
-
const tracer = { startActiveSpan(name, fn) {
|
|
3
|
-
return fn();
|
|
4
|
-
} };
|
|
5
|
-
//#endregion
|
|
6
|
-
export { tracer };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/view-common.js
|
|
2
|
-
const ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
3
|
-
//#endregion
|
|
4
|
-
exports.ViewBaseConfig = ViewBaseConfig;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260611.1_@electric-sql+pglite@0.4.1_@l_601a3995dfc55b0b7fac93cbe1e76579/node_modules/drizzle-orm/view-common.js
|
|
2
|
-
const ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
3
|
-
//#endregion
|
|
4
|
-
export { ViewBaseConfig };
|