drizzle-orm 1.0.0-beta.22-eaa25cd → 1.0.0-beta.22-46020ee
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/aws-data-api/common/index.d.cts +1 -1
- package/aws-data-api/common/index.d.ts +1 -1
- package/aws-data-api/pg/codecs.cjs +162 -0
- package/aws-data-api/pg/codecs.cjs.map +1 -0
- package/aws-data-api/pg/codecs.d.cts +9 -0
- package/aws-data-api/pg/codecs.d.ts +9 -0
- package/aws-data-api/pg/codecs.js +160 -0
- package/aws-data-api/pg/codecs.js.map +1 -0
- package/aws-data-api/pg/driver.cjs +4 -157
- package/aws-data-api/pg/driver.cjs.map +1 -1
- package/aws-data-api/pg/driver.d.cts +1 -5
- package/aws-data-api/pg/driver.d.ts +1 -5
- package/aws-data-api/pg/driver.js +4 -156
- package/aws-data-api/pg/driver.js.map +1 -1
- package/aws-data-api/pg/index.cjs +2 -1
- package/aws-data-api/pg/index.d.cts +2 -1
- package/aws-data-api/pg/index.d.ts +2 -1
- package/aws-data-api/pg/index.js +2 -1
- package/better-sqlite3/driver.cjs +2 -1
- package/better-sqlite3/driver.cjs.map +1 -1
- package/better-sqlite3/driver.js +2 -1
- package/better-sqlite3/driver.js.map +1 -1
- package/better-sqlite3/session.cjs +8 -8
- package/better-sqlite3/session.cjs.map +1 -1
- package/better-sqlite3/session.d.cts +3 -3
- package/better-sqlite3/session.d.ts +3 -3
- package/better-sqlite3/session.js +8 -8
- package/better-sqlite3/session.js.map +1 -1
- package/bun-sql/mysql/driver.cjs +2 -1
- package/bun-sql/mysql/driver.cjs.map +1 -1
- package/bun-sql/mysql/driver.js +2 -1
- package/bun-sql/mysql/driver.js.map +1 -1
- package/bun-sql/mysql/session.cjs +8 -8
- package/bun-sql/mysql/session.cjs.map +1 -1
- package/bun-sql/mysql/session.d.cts +3 -3
- package/bun-sql/mysql/session.d.ts +3 -3
- package/bun-sql/mysql/session.js +8 -8
- package/bun-sql/mysql/session.js.map +1 -1
- package/bun-sql/postgres/codecs.cjs +176 -0
- package/bun-sql/postgres/codecs.cjs.map +1 -0
- package/bun-sql/postgres/codecs.d.cts +9 -0
- package/bun-sql/postgres/codecs.d.ts +9 -0
- package/bun-sql/postgres/codecs.js +174 -0
- package/bun-sql/postgres/codecs.js.map +1 -0
- package/bun-sql/postgres/driver.cjs +4 -171
- package/bun-sql/postgres/driver.cjs.map +1 -1
- package/bun-sql/postgres/driver.d.cts +1 -5
- package/bun-sql/postgres/driver.d.ts +1 -5
- package/bun-sql/postgres/driver.js +4 -170
- package/bun-sql/postgres/driver.js.map +1 -1
- package/bun-sql/postgres/index.cjs +2 -1
- package/bun-sql/postgres/index.d.cts +2 -1
- package/bun-sql/postgres/index.d.ts +2 -1
- package/bun-sql/postgres/index.js +2 -1
- package/bun-sql/sqlite/driver.cjs +2 -1
- package/bun-sql/sqlite/driver.cjs.map +1 -1
- package/bun-sql/sqlite/driver.js +2 -1
- package/bun-sql/sqlite/driver.js.map +1 -1
- package/bun-sql/sqlite/session.cjs +8 -8
- package/bun-sql/sqlite/session.cjs.map +1 -1
- package/bun-sql/sqlite/session.d.cts +3 -3
- package/bun-sql/sqlite/session.d.ts +3 -3
- package/bun-sql/sqlite/session.js +8 -8
- package/bun-sql/sqlite/session.js.map +1 -1
- package/bun-sqlite/driver.cjs +2 -1
- package/bun-sqlite/driver.cjs.map +1 -1
- package/bun-sqlite/driver.js +2 -1
- package/bun-sqlite/driver.js.map +1 -1
- package/bun-sqlite/session.cjs +8 -8
- package/bun-sqlite/session.cjs.map +1 -1
- package/bun-sqlite/session.d.cts +3 -3
- package/bun-sqlite/session.d.ts +3 -3
- package/bun-sqlite/session.js +8 -8
- package/bun-sqlite/session.js.map +1 -1
- package/cockroach/driver.cjs +3 -2
- package/cockroach/driver.cjs.map +1 -1
- package/cockroach/driver.d.cts +1 -1
- package/cockroach/driver.d.ts +1 -1
- package/cockroach/driver.js +3 -2
- package/cockroach/driver.js.map +1 -1
- package/cockroach/session.cjs +4 -4
- package/cockroach/session.cjs.map +1 -1
- package/cockroach/session.d.cts +3 -3
- package/cockroach/session.d.ts +3 -3
- package/cockroach/session.js +4 -4
- package/cockroach/session.js.map +1 -1
- package/durable-sqlite/driver.cjs +2 -1
- package/durable-sqlite/driver.cjs.map +1 -1
- package/durable-sqlite/driver.js +2 -1
- package/durable-sqlite/driver.js.map +1 -1
- package/durable-sqlite/session.cjs +8 -8
- package/durable-sqlite/session.cjs.map +1 -1
- package/durable-sqlite/session.d.cts +3 -3
- package/durable-sqlite/session.d.ts +3 -3
- package/durable-sqlite/session.js +8 -8
- package/durable-sqlite/session.js.map +1 -1
- package/effect-postgres/codecs.cjs +175 -0
- package/effect-postgres/codecs.cjs.map +1 -0
- package/effect-postgres/codecs.d.cts +9 -0
- package/effect-postgres/codecs.d.ts +9 -0
- package/effect-postgres/codecs.js +173 -0
- package/effect-postgres/codecs.js.map +1 -0
- package/effect-postgres/driver.cjs +5 -171
- package/effect-postgres/driver.cjs.map +1 -1
- package/effect-postgres/driver.d.cts +3 -7
- package/effect-postgres/driver.d.ts +3 -7
- package/effect-postgres/driver.js +5 -170
- package/effect-postgres/driver.js.map +1 -1
- package/effect-postgres/index.cjs +2 -1
- package/effect-postgres/index.d.cts +2 -1
- package/effect-postgres/index.d.ts +2 -1
- package/effect-postgres/index.js +2 -1
- package/effect-postgres/migrator.d.cts +1 -1
- package/effect-postgres/migrator.d.ts +1 -1
- package/effect-postgres/session.cjs.map +1 -1
- package/effect-postgres/session.d.cts +1 -1
- package/effect-postgres/session.d.ts +1 -1
- package/effect-postgres/session.js.map +1 -1
- package/expo-sqlite/driver.cjs +2 -1
- package/expo-sqlite/driver.cjs.map +1 -1
- package/expo-sqlite/driver.js +2 -1
- package/expo-sqlite/driver.js.map +1 -1
- package/expo-sqlite/session.cjs +8 -8
- package/expo-sqlite/session.cjs.map +1 -1
- package/expo-sqlite/session.d.cts +3 -3
- package/expo-sqlite/session.d.ts +3 -3
- package/expo-sqlite/session.js +8 -8
- package/expo-sqlite/session.js.map +1 -1
- package/index.cjs +1 -0
- package/index.js +2 -2
- package/libsql/driver-core.cjs +2 -1
- package/libsql/driver-core.cjs.map +1 -1
- package/libsql/driver-core.js +2 -1
- package/libsql/driver-core.js.map +1 -1
- package/libsql/session.cjs +8 -8
- package/libsql/session.cjs.map +1 -1
- package/libsql/session.d.cts +3 -3
- package/libsql/session.d.ts +3 -3
- package/libsql/session.js +8 -8
- package/libsql/session.js.map +1 -1
- package/mysql-proxy/driver.cjs +2 -1
- package/mysql-proxy/driver.cjs.map +1 -1
- package/mysql-proxy/driver.js +2 -1
- package/mysql-proxy/driver.js.map +1 -1
- package/mysql-proxy/session.cjs +6 -6
- package/mysql-proxy/session.cjs.map +1 -1
- package/mysql-proxy/session.d.cts +3 -3
- package/mysql-proxy/session.d.ts +3 -3
- package/mysql-proxy/session.js +6 -6
- package/mysql-proxy/session.js.map +1 -1
- package/mysql2/driver.cjs +2 -1
- package/mysql2/driver.cjs.map +1 -1
- package/mysql2/driver.d.cts +1 -1
- package/mysql2/driver.d.ts +1 -1
- package/mysql2/driver.js +2 -1
- package/mysql2/driver.js.map +1 -1
- package/mysql2/session.cjs +7 -7
- package/mysql2/session.cjs.map +1 -1
- package/mysql2/session.d.cts +3 -3
- package/mysql2/session.d.ts +3 -3
- package/mysql2/session.js +7 -7
- package/mysql2/session.js.map +1 -1
- package/neon-http/codecs.cjs +66 -0
- package/neon-http/codecs.cjs.map +1 -0
- package/neon-http/codecs.d.cts +9 -0
- package/neon-http/codecs.d.ts +9 -0
- package/neon-http/codecs.js +64 -0
- package/neon-http/codecs.js.map +1 -0
- package/neon-http/driver.cjs +4 -61
- package/neon-http/driver.cjs.map +1 -1
- package/neon-http/driver.d.cts +1 -5
- package/neon-http/driver.d.ts +1 -5
- package/neon-http/driver.js +4 -60
- package/neon-http/driver.js.map +1 -1
- package/neon-http/index.cjs +2 -1
- package/neon-http/index.d.cts +2 -1
- package/neon-http/index.d.ts +2 -1
- package/neon-http/index.js +2 -1
- package/neon-serverless/codecs.cjs +65 -0
- package/neon-serverless/codecs.cjs.map +1 -0
- package/neon-serverless/codecs.d.cts +9 -0
- package/neon-serverless/codecs.d.ts +9 -0
- package/neon-serverless/codecs.js +63 -0
- package/neon-serverless/codecs.js.map +1 -0
- package/neon-serverless/driver.cjs +4 -60
- package/neon-serverless/driver.cjs.map +1 -1
- package/neon-serverless/driver.d.cts +2 -6
- package/neon-serverless/driver.d.ts +2 -6
- package/neon-serverless/driver.js +4 -59
- package/neon-serverless/driver.js.map +1 -1
- package/neon-serverless/index.cjs +2 -1
- package/neon-serverless/index.d.cts +2 -1
- package/neon-serverless/index.d.ts +2 -1
- package/neon-serverless/index.js +2 -1
- package/netlify-db/codecs.cjs +122 -0
- package/netlify-db/codecs.cjs.map +1 -0
- package/netlify-db/codecs.d.cts +10 -0
- package/netlify-db/codecs.d.ts +10 -0
- package/netlify-db/codecs.js +119 -0
- package/netlify-db/codecs.js.map +1 -0
- package/netlify-db/driver.cjs +4 -118
- package/netlify-db/driver.cjs.map +1 -1
- package/netlify-db/driver.d.cts +1 -6
- package/netlify-db/driver.d.ts +1 -6
- package/netlify-db/driver.js +4 -116
- package/netlify-db/driver.js.map +1 -1
- package/netlify-db/index.cjs +3 -2
- package/netlify-db/index.d.cts +2 -1
- package/netlify-db/index.d.ts +2 -1
- package/netlify-db/index.js +2 -1
- package/netlify-db/session.d.ts +1 -1
- package/node-mssql/driver.cjs +3 -2
- package/node-mssql/driver.cjs.map +1 -1
- package/node-mssql/driver.d.cts +1 -1
- package/node-mssql/driver.d.ts +1 -1
- package/node-mssql/driver.js +3 -2
- package/node-mssql/driver.js.map +1 -1
- package/node-mssql/session.cjs +5 -5
- package/node-mssql/session.cjs.map +1 -1
- package/node-mssql/session.d.cts +3 -3
- package/node-mssql/session.d.ts +3 -3
- package/node-mssql/session.js +5 -5
- package/node-mssql/session.js.map +1 -1
- package/node-postgres/codecs.cjs +65 -0
- package/node-postgres/codecs.cjs.map +1 -0
- package/node-postgres/codecs.d.cts +9 -0
- package/node-postgres/codecs.d.ts +9 -0
- package/node-postgres/codecs.js +63 -0
- package/node-postgres/codecs.js.map +1 -0
- package/node-postgres/driver.cjs +4 -60
- package/node-postgres/driver.cjs.map +1 -1
- package/node-postgres/driver.d.cts +1 -5
- package/node-postgres/driver.d.ts +1 -5
- package/node-postgres/driver.js +4 -59
- package/node-postgres/driver.js.map +1 -1
- package/node-postgres/index.cjs +2 -1
- package/node-postgres/index.d.cts +2 -1
- package/node-postgres/index.d.ts +2 -1
- package/node-postgres/index.js +2 -1
- package/node-sqlite/driver.cjs +5 -1
- package/node-sqlite/driver.cjs.map +1 -1
- package/node-sqlite/driver.js +5 -1
- package/node-sqlite/driver.js.map +1 -1
- package/node-sqlite/session.cjs +14 -8
- package/node-sqlite/session.cjs.map +1 -1
- package/node-sqlite/session.d.cts +8 -3
- package/node-sqlite/session.d.ts +8 -3
- package/node-sqlite/session.js +15 -9
- package/node-sqlite/session.js.map +1 -1
- package/op-sqlite/driver.cjs +2 -1
- package/op-sqlite/driver.cjs.map +1 -1
- package/op-sqlite/driver.js +2 -1
- package/op-sqlite/driver.js.map +1 -1
- package/op-sqlite/session.cjs +8 -8
- package/op-sqlite/session.cjs.map +1 -1
- package/op-sqlite/session.d.cts +3 -3
- package/op-sqlite/session.d.ts +3 -3
- package/op-sqlite/session.js +8 -8
- package/op-sqlite/session.js.map +1 -1
- package/package.json +133 -1
- package/pg-core/effect/session.d.cts +1 -1
- package/pg-core/effect/session.d.ts +1 -1
- package/pg-proxy/driver.cjs +4 -4
- package/pg-proxy/driver.cjs.map +1 -1
- package/pg-proxy/driver.d.ts +1 -1
- package/pg-proxy/driver.js +4 -4
- package/pg-proxy/driver.js.map +1 -1
- package/pg-proxy/session.cjs.map +1 -1
- package/pg-proxy/session.d.cts +0 -1
- package/pg-proxy/session.d.ts +0 -1
- package/pg-proxy/session.js.map +1 -1
- package/pglite/codecs.cjs +92 -0
- package/pglite/codecs.cjs.map +1 -0
- package/pglite/codecs.d.cts +9 -0
- package/pglite/codecs.d.ts +9 -0
- package/pglite/codecs.js +90 -0
- package/pglite/codecs.js.map +1 -0
- package/pglite/driver.cjs +3 -86
- package/pglite/driver.cjs.map +1 -1
- package/pglite/driver.d.cts +1 -5
- package/pglite/driver.d.ts +1 -5
- package/pglite/driver.js +4 -86
- package/pglite/driver.js.map +1 -1
- package/pglite/index.cjs +2 -1
- package/pglite/index.d.cts +2 -1
- package/pglite/index.d.ts +2 -1
- package/pglite/index.js +2 -1
- package/planetscale-serverless/driver.cjs +2 -1
- package/planetscale-serverless/driver.cjs.map +1 -1
- package/planetscale-serverless/driver.d.cts +1 -1
- package/planetscale-serverless/driver.d.ts +1 -1
- package/planetscale-serverless/driver.js +2 -1
- package/planetscale-serverless/driver.js.map +1 -1
- package/planetscale-serverless/session.cjs +6 -6
- package/planetscale-serverless/session.cjs.map +1 -1
- package/planetscale-serverless/session.d.cts +3 -3
- package/planetscale-serverless/session.d.ts +3 -3
- package/planetscale-serverless/session.js +6 -6
- package/planetscale-serverless/session.js.map +1 -1
- package/postgres-js/codecs.cjs +147 -0
- package/postgres-js/codecs.cjs.map +1 -0
- package/postgres-js/codecs.d.cts +9 -0
- package/postgres-js/codecs.d.ts +9 -0
- package/postgres-js/codecs.js +145 -0
- package/postgres-js/codecs.js.map +1 -0
- package/postgres-js/driver.cjs +4 -142
- package/postgres-js/driver.cjs.map +1 -1
- package/postgres-js/driver.d.cts +1 -5
- package/postgres-js/driver.d.ts +1 -5
- package/postgres-js/driver.js +4 -141
- package/postgres-js/driver.js.map +1 -1
- package/postgres-js/index.cjs +2 -1
- package/postgres-js/index.d.cts +2 -1
- package/postgres-js/index.d.ts +2 -1
- package/postgres-js/index.js +2 -1
- package/singlestore/driver.cjs +3 -2
- package/singlestore/driver.cjs.map +1 -1
- package/singlestore/driver.d.cts +1 -1
- package/singlestore/driver.d.ts +1 -1
- package/singlestore/driver.js +3 -2
- package/singlestore/driver.js.map +1 -1
- package/singlestore/session.cjs +7 -7
- package/singlestore/session.cjs.map +1 -1
- package/singlestore/session.d.cts +3 -3
- package/singlestore/session.d.ts +3 -3
- package/singlestore/session.js +7 -7
- package/singlestore/session.js.map +1 -1
- package/singlestore-proxy/driver.cjs +2 -1
- package/singlestore-proxy/driver.cjs.map +1 -1
- package/singlestore-proxy/driver.js +2 -1
- package/singlestore-proxy/driver.js.map +1 -1
- package/singlestore-proxy/session.cjs +6 -6
- package/singlestore-proxy/session.cjs.map +1 -1
- package/singlestore-proxy/session.d.cts +3 -3
- package/singlestore-proxy/session.d.ts +3 -3
- package/singlestore-proxy/session.js +6 -6
- package/singlestore-proxy/session.js.map +1 -1
- package/sql-js/driver.cjs +2 -1
- package/sql-js/driver.cjs.map +1 -1
- package/sql-js/driver.js +2 -1
- package/sql-js/driver.js.map +1 -1
- package/sql-js/session.cjs +8 -8
- package/sql-js/session.cjs.map +1 -1
- package/sql-js/session.d.cts +3 -3
- package/sql-js/session.d.ts +3 -3
- package/sql-js/session.js +8 -8
- package/sql-js/session.js.map +1 -1
- package/sqlite-cloud/driver.cjs +2 -1
- package/sqlite-cloud/driver.cjs.map +1 -1
- package/sqlite-cloud/driver.js +2 -1
- package/sqlite-cloud/driver.js.map +1 -1
- package/sqlite-cloud/session.cjs +8 -8
- package/sqlite-cloud/session.cjs.map +1 -1
- package/sqlite-cloud/session.d.cts +3 -3
- package/sqlite-cloud/session.d.ts +3 -3
- package/sqlite-cloud/session.js +8 -8
- package/sqlite-cloud/session.js.map +1 -1
- package/sqlite-proxy/driver.cjs +2 -1
- package/sqlite-proxy/driver.cjs.map +1 -1
- package/sqlite-proxy/driver.js +2 -1
- package/sqlite-proxy/driver.js.map +1 -1
- package/sqlite-proxy/session.cjs +8 -8
- package/sqlite-proxy/session.cjs.map +1 -1
- package/sqlite-proxy/session.d.cts +3 -3
- package/sqlite-proxy/session.d.ts +3 -3
- package/sqlite-proxy/session.js +8 -8
- package/sqlite-proxy/session.js.map +1 -1
- package/tidb-serverless/driver.cjs +2 -1
- package/tidb-serverless/driver.cjs.map +1 -1
- package/tidb-serverless/driver.d.cts +1 -1
- package/tidb-serverless/driver.d.ts +1 -1
- package/tidb-serverless/driver.js +2 -1
- package/tidb-serverless/driver.js.map +1 -1
- package/tidb-serverless/session.cjs +6 -6
- package/tidb-serverless/session.cjs.map +1 -1
- package/tidb-serverless/session.d.cts +3 -3
- package/tidb-serverless/session.d.ts +3 -3
- package/tidb-serverless/session.js +6 -6
- package/tidb-serverless/session.js.map +1 -1
- package/tursodatabase/driver-core.cjs +2 -1
- package/tursodatabase/driver-core.cjs.map +1 -1
- package/tursodatabase/driver-core.js +2 -1
- package/tursodatabase/driver-core.js.map +1 -1
- package/tursodatabase/session.cjs +8 -8
- package/tursodatabase/session.cjs.map +1 -1
- package/tursodatabase/session.d.cts +3 -3
- package/tursodatabase/session.d.ts +3 -3
- package/tursodatabase/session.js +8 -8
- package/tursodatabase/session.js.map +1 -1
- package/utils.cjs +17 -0
- package/utils.cjs.map +1 -1
- package/utils.js +17 -1
- package/utils.js.map +1 -1
- package/vercel-postgres/codecs.cjs +65 -0
- package/vercel-postgres/codecs.cjs.map +1 -0
- package/vercel-postgres/codecs.d.cts +9 -0
- package/vercel-postgres/codecs.d.ts +9 -0
- package/vercel-postgres/codecs.js +63 -0
- package/vercel-postgres/codecs.js.map +1 -0
- package/vercel-postgres/driver.cjs +3 -60
- package/vercel-postgres/driver.cjs.map +1 -1
- package/vercel-postgres/driver.d.cts +1 -5
- package/vercel-postgres/driver.d.ts +1 -5
- package/vercel-postgres/driver.js +4 -60
- package/vercel-postgres/driver.js.map +1 -1
- package/vercel-postgres/index.cjs +2 -1
- package/vercel-postgres/index.d.cts +2 -1
- package/vercel-postgres/index.d.ts +2 -1
- package/vercel-postgres/index.js +2 -1
- package/version.cjs +1 -1
- package/version.cjs.map +1 -1
- package/version.d.cts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/xata-http/codecs.cjs +168 -0
- package/xata-http/codecs.cjs.map +1 -0
- package/xata-http/codecs.d.cts +9 -0
- package/xata-http/codecs.d.ts +9 -0
- package/xata-http/codecs.js +166 -0
- package/xata-http/codecs.js.map +1 -0
- package/xata-http/driver.cjs +4 -163
- package/xata-http/driver.cjs.map +1 -1
- package/xata-http/driver.d.cts +1 -5
- package/xata-http/driver.d.ts +1 -5
- package/xata-http/driver.js +4 -162
- package/xata-http/driver.js.map +1 -1
- package/xata-http/index.cjs +2 -1
- package/xata-http/index.d.cts +2 -1
- package/xata-http/index.d.ts +2 -1
- package/xata-http/index.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drizzle-orm",
|
|
3
|
-
"version": "1.0.0-beta.22-
|
|
3
|
+
"version": "1.0.0-beta.22-46020ee",
|
|
4
4
|
"description": "Drizzle ORM package for SQL databases",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -645,6 +645,18 @@
|
|
|
645
645
|
"types": "./xata-http/index.d.ts",
|
|
646
646
|
"default": "./xata-http/index.js"
|
|
647
647
|
},
|
|
648
|
+
"./xata-http/codecs": {
|
|
649
|
+
"import": {
|
|
650
|
+
"types": "./xata-http/codecs.d.ts",
|
|
651
|
+
"default": "./xata-http/codecs.js"
|
|
652
|
+
},
|
|
653
|
+
"require": {
|
|
654
|
+
"types": "./xata-http/codecs.d.cts",
|
|
655
|
+
"default": "./xata-http/codecs.cjs"
|
|
656
|
+
},
|
|
657
|
+
"types": "./xata-http/codecs.d.ts",
|
|
658
|
+
"default": "./xata-http/codecs.js"
|
|
659
|
+
},
|
|
648
660
|
"./xata-http/migrator": {
|
|
649
661
|
"import": {
|
|
650
662
|
"types": "./xata-http/migrator.d.ts",
|
|
@@ -789,6 +801,18 @@
|
|
|
789
801
|
"types": "./effect-postgres/index.d.ts",
|
|
790
802
|
"default": "./effect-postgres/index.js"
|
|
791
803
|
},
|
|
804
|
+
"./effect-postgres/codecs": {
|
|
805
|
+
"import": {
|
|
806
|
+
"types": "./effect-postgres/codecs.d.ts",
|
|
807
|
+
"default": "./effect-postgres/codecs.js"
|
|
808
|
+
},
|
|
809
|
+
"require": {
|
|
810
|
+
"types": "./effect-postgres/codecs.d.cts",
|
|
811
|
+
"default": "./effect-postgres/codecs.cjs"
|
|
812
|
+
},
|
|
813
|
+
"types": "./effect-postgres/codecs.d.ts",
|
|
814
|
+
"default": "./effect-postgres/codecs.js"
|
|
815
|
+
},
|
|
792
816
|
"./effect-postgres/migrator": {
|
|
793
817
|
"import": {
|
|
794
818
|
"types": "./effect-postgres/migrator.d.ts",
|
|
@@ -1029,6 +1053,18 @@
|
|
|
1029
1053
|
"types": "./bun-sql/postgres/index.d.ts",
|
|
1030
1054
|
"default": "./bun-sql/postgres/index.js"
|
|
1031
1055
|
},
|
|
1056
|
+
"./bun-sql/postgres/codecs": {
|
|
1057
|
+
"import": {
|
|
1058
|
+
"types": "./bun-sql/postgres/codecs.d.ts",
|
|
1059
|
+
"default": "./bun-sql/postgres/codecs.js"
|
|
1060
|
+
},
|
|
1061
|
+
"require": {
|
|
1062
|
+
"types": "./bun-sql/postgres/codecs.d.cts",
|
|
1063
|
+
"default": "./bun-sql/postgres/codecs.cjs"
|
|
1064
|
+
},
|
|
1065
|
+
"types": "./bun-sql/postgres/codecs.d.ts",
|
|
1066
|
+
"default": "./bun-sql/postgres/codecs.js"
|
|
1067
|
+
},
|
|
1032
1068
|
"./bun-sql/postgres/migrator": {
|
|
1033
1069
|
"import": {
|
|
1034
1070
|
"types": "./bun-sql/postgres/migrator.d.ts",
|
|
@@ -1221,6 +1257,18 @@
|
|
|
1221
1257
|
"types": "./pglite/index.d.ts",
|
|
1222
1258
|
"default": "./pglite/index.js"
|
|
1223
1259
|
},
|
|
1260
|
+
"./pglite/codecs": {
|
|
1261
|
+
"import": {
|
|
1262
|
+
"types": "./pglite/codecs.d.ts",
|
|
1263
|
+
"default": "./pglite/codecs.js"
|
|
1264
|
+
},
|
|
1265
|
+
"require": {
|
|
1266
|
+
"types": "./pglite/codecs.d.cts",
|
|
1267
|
+
"default": "./pglite/codecs.cjs"
|
|
1268
|
+
},
|
|
1269
|
+
"types": "./pglite/codecs.d.ts",
|
|
1270
|
+
"default": "./pglite/codecs.js"
|
|
1271
|
+
},
|
|
1224
1272
|
"./pglite/migrator": {
|
|
1225
1273
|
"import": {
|
|
1226
1274
|
"types": "./pglite/migrator.d.ts",
|
|
@@ -1461,6 +1509,18 @@
|
|
|
1461
1509
|
"types": "./neon-serverless/index.d.ts",
|
|
1462
1510
|
"default": "./neon-serverless/index.js"
|
|
1463
1511
|
},
|
|
1512
|
+
"./neon-serverless/codecs": {
|
|
1513
|
+
"import": {
|
|
1514
|
+
"types": "./neon-serverless/codecs.d.ts",
|
|
1515
|
+
"default": "./neon-serverless/codecs.js"
|
|
1516
|
+
},
|
|
1517
|
+
"require": {
|
|
1518
|
+
"types": "./neon-serverless/codecs.d.cts",
|
|
1519
|
+
"default": "./neon-serverless/codecs.cjs"
|
|
1520
|
+
},
|
|
1521
|
+
"types": "./neon-serverless/codecs.d.ts",
|
|
1522
|
+
"default": "./neon-serverless/codecs.js"
|
|
1523
|
+
},
|
|
1464
1524
|
"./neon-serverless/migrator": {
|
|
1465
1525
|
"import": {
|
|
1466
1526
|
"types": "./neon-serverless/migrator.d.ts",
|
|
@@ -2313,6 +2373,18 @@
|
|
|
2313
2373
|
"types": "./node-postgres/index.d.ts",
|
|
2314
2374
|
"default": "./node-postgres/index.js"
|
|
2315
2375
|
},
|
|
2376
|
+
"./node-postgres/codecs": {
|
|
2377
|
+
"import": {
|
|
2378
|
+
"types": "./node-postgres/codecs.d.ts",
|
|
2379
|
+
"default": "./node-postgres/codecs.js"
|
|
2380
|
+
},
|
|
2381
|
+
"require": {
|
|
2382
|
+
"types": "./node-postgres/codecs.d.cts",
|
|
2383
|
+
"default": "./node-postgres/codecs.cjs"
|
|
2384
|
+
},
|
|
2385
|
+
"types": "./node-postgres/codecs.d.ts",
|
|
2386
|
+
"default": "./node-postgres/codecs.js"
|
|
2387
|
+
},
|
|
2316
2388
|
"./node-postgres/migrator": {
|
|
2317
2389
|
"import": {
|
|
2318
2390
|
"types": "./node-postgres/migrator.d.ts",
|
|
@@ -4605,6 +4677,18 @@
|
|
|
4605
4677
|
"types": "./aws-data-api/pg/index.d.ts",
|
|
4606
4678
|
"default": "./aws-data-api/pg/index.js"
|
|
4607
4679
|
},
|
|
4680
|
+
"./aws-data-api/pg/codecs": {
|
|
4681
|
+
"import": {
|
|
4682
|
+
"types": "./aws-data-api/pg/codecs.d.ts",
|
|
4683
|
+
"default": "./aws-data-api/pg/codecs.js"
|
|
4684
|
+
},
|
|
4685
|
+
"require": {
|
|
4686
|
+
"types": "./aws-data-api/pg/codecs.d.cts",
|
|
4687
|
+
"default": "./aws-data-api/pg/codecs.cjs"
|
|
4688
|
+
},
|
|
4689
|
+
"types": "./aws-data-api/pg/codecs.d.ts",
|
|
4690
|
+
"default": "./aws-data-api/pg/codecs.js"
|
|
4691
|
+
},
|
|
4608
4692
|
"./aws-data-api/pg/migrator": {
|
|
4609
4693
|
"import": {
|
|
4610
4694
|
"types": "./aws-data-api/pg/migrator.d.ts",
|
|
@@ -6597,6 +6681,18 @@
|
|
|
6597
6681
|
"types": "./vercel-postgres/index.d.ts",
|
|
6598
6682
|
"default": "./vercel-postgres/index.js"
|
|
6599
6683
|
},
|
|
6684
|
+
"./vercel-postgres/codecs": {
|
|
6685
|
+
"import": {
|
|
6686
|
+
"types": "./vercel-postgres/codecs.d.ts",
|
|
6687
|
+
"default": "./vercel-postgres/codecs.js"
|
|
6688
|
+
},
|
|
6689
|
+
"require": {
|
|
6690
|
+
"types": "./vercel-postgres/codecs.d.cts",
|
|
6691
|
+
"default": "./vercel-postgres/codecs.cjs"
|
|
6692
|
+
},
|
|
6693
|
+
"types": "./vercel-postgres/codecs.d.ts",
|
|
6694
|
+
"default": "./vercel-postgres/codecs.js"
|
|
6695
|
+
},
|
|
6600
6696
|
"./vercel-postgres/migrator": {
|
|
6601
6697
|
"import": {
|
|
6602
6698
|
"types": "./vercel-postgres/migrator.d.ts",
|
|
@@ -6693,6 +6789,18 @@
|
|
|
6693
6789
|
"types": "./netlify-db/index.d.ts",
|
|
6694
6790
|
"default": "./netlify-db/index.js"
|
|
6695
6791
|
},
|
|
6792
|
+
"./netlify-db/codecs": {
|
|
6793
|
+
"import": {
|
|
6794
|
+
"types": "./netlify-db/codecs.d.ts",
|
|
6795
|
+
"default": "./netlify-db/codecs.js"
|
|
6796
|
+
},
|
|
6797
|
+
"require": {
|
|
6798
|
+
"types": "./netlify-db/codecs.d.cts",
|
|
6799
|
+
"default": "./netlify-db/codecs.cjs"
|
|
6800
|
+
},
|
|
6801
|
+
"types": "./netlify-db/codecs.d.ts",
|
|
6802
|
+
"default": "./netlify-db/codecs.js"
|
|
6803
|
+
},
|
|
6696
6804
|
"./netlify-db/migrator": {
|
|
6697
6805
|
"import": {
|
|
6698
6806
|
"types": "./netlify-db/migrator.d.ts",
|
|
@@ -7401,6 +7509,18 @@
|
|
|
7401
7509
|
"types": "./neon-http/index.d.ts",
|
|
7402
7510
|
"default": "./neon-http/index.js"
|
|
7403
7511
|
},
|
|
7512
|
+
"./neon-http/codecs": {
|
|
7513
|
+
"import": {
|
|
7514
|
+
"types": "./neon-http/codecs.d.ts",
|
|
7515
|
+
"default": "./neon-http/codecs.js"
|
|
7516
|
+
},
|
|
7517
|
+
"require": {
|
|
7518
|
+
"types": "./neon-http/codecs.d.cts",
|
|
7519
|
+
"default": "./neon-http/codecs.cjs"
|
|
7520
|
+
},
|
|
7521
|
+
"types": "./neon-http/codecs.d.ts",
|
|
7522
|
+
"default": "./neon-http/codecs.js"
|
|
7523
|
+
},
|
|
7404
7524
|
"./neon-http/migrator": {
|
|
7405
7525
|
"import": {
|
|
7406
7526
|
"types": "./neon-http/migrator.d.ts",
|
|
@@ -7509,6 +7629,18 @@
|
|
|
7509
7629
|
"types": "./postgres-js/index.d.ts",
|
|
7510
7630
|
"default": "./postgres-js/index.js"
|
|
7511
7631
|
},
|
|
7632
|
+
"./postgres-js/codecs": {
|
|
7633
|
+
"import": {
|
|
7634
|
+
"types": "./postgres-js/codecs.d.ts",
|
|
7635
|
+
"default": "./postgres-js/codecs.js"
|
|
7636
|
+
},
|
|
7637
|
+
"require": {
|
|
7638
|
+
"types": "./postgres-js/codecs.d.cts",
|
|
7639
|
+
"default": "./postgres-js/codecs.cjs"
|
|
7640
|
+
},
|
|
7641
|
+
"types": "./postgres-js/codecs.d.ts",
|
|
7642
|
+
"default": "./postgres-js/codecs.js"
|
|
7643
|
+
},
|
|
7512
7644
|
"./postgres-js/migrator": {
|
|
7513
7645
|
"import": {
|
|
7514
7646
|
"types": "./postgres-js/migrator.d.ts",
|
|
@@ -52,7 +52,7 @@ declare abstract class PgEffectTransaction<TEffectHKT extends QueryEffectHKTBase
|
|
|
52
52
|
rollback(): EffectTransactionRollbackError;
|
|
53
53
|
setTransaction(config: PgTransactionConfig): QueryEffectKind<TEffectHKT, void[]>;
|
|
54
54
|
}
|
|
55
|
-
declare const migrate: <TEffectHKT extends QueryEffectHKTBase>(migrations: MigrationMeta[], session: PgEffectSession<TEffectHKT, PgQueryResultHKT, EmptyRelations>, config: string | MigrationConfig) => Effect.Effect<undefined, MigratorInitError | TEffectHKT["error"]
|
|
55
|
+
declare const migrate: <TEffectHKT extends QueryEffectHKTBase>(migrations: MigrationMeta[], session: PgEffectSession<TEffectHKT, PgQueryResultHKT, EmptyRelations>, config: string | MigrationConfig) => Effect.Effect<undefined, SqlError | MigratorInitError | TEffectHKT["error"], TEffectHKT["context"]>;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { PgEffectPreparedQuery, PgEffectSession, PgEffectTransaction, migrate };
|
|
58
58
|
//# sourceMappingURL=session.d.cts.map
|
|
@@ -52,7 +52,7 @@ declare abstract class PgEffectTransaction<TEffectHKT extends QueryEffectHKTBase
|
|
|
52
52
|
rollback(): EffectTransactionRollbackError;
|
|
53
53
|
setTransaction(config: PgTransactionConfig): QueryEffectKind<TEffectHKT, void[]>;
|
|
54
54
|
}
|
|
55
|
-
declare const migrate: <TEffectHKT extends QueryEffectHKTBase>(migrations: MigrationMeta[], session: PgEffectSession<TEffectHKT, PgQueryResultHKT, EmptyRelations>, config: string | MigrationConfig) => Effect.Effect<undefined, MigratorInitError | TEffectHKT["error"]
|
|
55
|
+
declare const migrate: <TEffectHKT extends QueryEffectHKTBase>(migrations: MigrationMeta[], session: PgEffectSession<TEffectHKT, PgQueryResultHKT, EmptyRelations>, config: string | MigrationConfig) => Effect.Effect<undefined, SqlError | MigratorInitError | TEffectHKT["error"], TEffectHKT["context"]>;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { PgEffectPreparedQuery, PgEffectSession, PgEffectTransaction, migrate };
|
|
58
58
|
//# sourceMappingURL=session.d.ts.map
|
package/pg-proxy/driver.cjs
CHANGED
|
@@ -2,17 +2,18 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_pg_proxy_session = require('./session.cjs');
|
|
4
4
|
let __entity_ts = require("../entity.cjs");
|
|
5
|
+
let __utils_ts = require("../utils.cjs");
|
|
5
6
|
let __logger_ts = require("../logger.cjs");
|
|
6
7
|
let __pg_core_async_db_ts = require("../pg-core/async/db.cjs");
|
|
7
|
-
let __pg_core_codecs_ts = require("../pg-core/codecs.cjs");
|
|
8
8
|
let __pg_core_dialect_ts = require("../pg-core/dialect.cjs");
|
|
9
|
+
let __pg_core_codecs_ts = require("../pg-core/codecs.cjs");
|
|
9
10
|
|
|
10
11
|
//#region src/pg-proxy/driver.ts
|
|
11
12
|
var PgRemoteDatabase = class extends __pg_core_async_db_ts.PgAsyncDatabase {
|
|
12
13
|
static [__entity_ts.entityKind] = "PgRemoteDatabase";
|
|
13
14
|
};
|
|
14
15
|
function drizzle(callback, config = {}, _dialect = () => new __pg_core_dialect_ts.PgDialect({
|
|
15
|
-
useJitMappers: config.useJitMappers,
|
|
16
|
+
useJitMappers: (0, __utils_ts.jitCompatCheck)(config.useJitMappers),
|
|
16
17
|
codecs: config.codecs ?? __pg_core_codecs_ts.genericPgCodecs
|
|
17
18
|
})) {
|
|
18
19
|
const dialect = _dialect();
|
|
@@ -22,8 +23,7 @@ function drizzle(callback, config = {}, _dialect = () => new __pg_core_dialect_t
|
|
|
22
23
|
const relations = config.relations ?? {};
|
|
23
24
|
const db = new PgRemoteDatabase(dialect, new require_pg_proxy_session.PgRemoteSession(callback, dialect, relations, {
|
|
24
25
|
logger,
|
|
25
|
-
cache: config.cache
|
|
26
|
-
useJitMapper: config.useJitMappers
|
|
26
|
+
cache: config.cache
|
|
27
27
|
}), relations);
|
|
28
28
|
db.$cache = config.cache;
|
|
29
29
|
if (db.$cache) db.$cache["invalidate"] = config.cache?.onMutate;
|
package/pg-proxy/driver.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.cjs","names":["PgAsyncDatabase","entityKind","PgDialect","genericPgCodecs","DefaultLogger","PgRemoteSession"],"sources":["../../src/pg-proxy/driver.ts"],"sourcesContent":["import { entityKind } from '~/entity.ts';\nimport { DefaultLogger } from '~/logger.ts';\nimport { PgAsyncDatabase } from '~/pg-core/async/db.ts';\nimport { genericPgCodecs, type PgCodecs } from '~/pg-core/codecs.ts';\nimport { PgDialect } from '~/pg-core/dialect.ts';\nimport type { DrizzlePgConfig } from '~/pg-core/utils.ts';\nimport type { AnyRelations, EmptyRelations } from '~/relations.ts';\nimport { type PgRemoteQueryResultHKT, PgRemoteSession } from './session.ts';\n\nexport class PgRemoteDatabase<TRelations extends AnyRelations = EmptyRelations>\n\textends PgAsyncDatabase<PgRemoteQueryResultHKT, TRelations>\n{\n\tstatic override readonly [entityKind]: string = 'PgRemoteDatabase';\n}\n\nexport type RemoteCallback = (\n\tsql: string,\n\tparams: any[],\n\tmethod: 'all' | 'execute',\n\ttypings?: any[],\n) => Promise<{ rows: any[] }>;\n\nexport function drizzle<TRelations extends AnyRelations = EmptyRelations>(\n\tcallback: RemoteCallback,\n\tconfig: DrizzlePgConfig<TRelations> & { codecs?: PgCodecs } = {},\n\t_dialect: () => PgDialect = () =>\n\t\tnew PgDialect({\n\t\t\tuseJitMappers: config.useJitMappers,\n\t\t\tcodecs: config.codecs ?? genericPgCodecs,\n\t\t}),\n): PgRemoteDatabase<TRelations> {\n\tconst dialect = _dialect();\n\tlet logger;\n\tif (config.logger === true) {\n\t\tlogger = new DefaultLogger();\n\t} else if (config.logger !== false) {\n\t\tlogger = config.logger;\n\t}\n\n\tconst relations = config.relations ?? {} as TRelations;\n\tconst session = new PgRemoteSession(callback, dialect, relations, {
|
|
1
|
+
{"version":3,"file":"driver.cjs","names":["PgAsyncDatabase","entityKind","PgDialect","genericPgCodecs","DefaultLogger","PgRemoteSession"],"sources":["../../src/pg-proxy/driver.ts"],"sourcesContent":["import { entityKind } from '~/entity.ts';\nimport { DefaultLogger } from '~/logger.ts';\nimport { PgAsyncDatabase } from '~/pg-core/async/db.ts';\nimport { genericPgCodecs, type PgCodecs } from '~/pg-core/codecs.ts';\nimport { PgDialect } from '~/pg-core/dialect.ts';\nimport type { DrizzlePgConfig } from '~/pg-core/utils.ts';\nimport type { AnyRelations, EmptyRelations } from '~/relations.ts';\nimport { jitCompatCheck } from '~/utils.ts';\nimport { type PgRemoteQueryResultHKT, PgRemoteSession } from './session.ts';\n\nexport class PgRemoteDatabase<TRelations extends AnyRelations = EmptyRelations>\n\textends PgAsyncDatabase<PgRemoteQueryResultHKT, TRelations>\n{\n\tstatic override readonly [entityKind]: string = 'PgRemoteDatabase';\n}\n\nexport type RemoteCallback = (\n\tsql: string,\n\tparams: any[],\n\tmethod: 'all' | 'execute',\n\ttypings?: any[],\n) => Promise<{ rows: any[] }>;\n\nexport function drizzle<TRelations extends AnyRelations = EmptyRelations>(\n\tcallback: RemoteCallback,\n\tconfig: DrizzlePgConfig<TRelations> & { codecs?: PgCodecs } = {},\n\t_dialect: () => PgDialect = () =>\n\t\tnew PgDialect({\n\t\t\tuseJitMappers: jitCompatCheck(config.useJitMappers),\n\t\t\tcodecs: config.codecs ?? genericPgCodecs,\n\t\t}),\n): PgRemoteDatabase<TRelations> {\n\tconst dialect = _dialect();\n\tlet logger;\n\tif (config.logger === true) {\n\t\tlogger = new DefaultLogger();\n\t} else if (config.logger !== false) {\n\t\tlogger = config.logger;\n\t}\n\n\tconst relations = config.relations ?? {} as TRelations;\n\tconst session = new PgRemoteSession(callback, dialect, relations, { logger, cache: config.cache });\n\tconst db = new PgRemoteDatabase(\n\t\tdialect,\n\t\tsession,\n\t\trelations,\n\t) as PgRemoteDatabase<TRelations>;\n\t(<any> db).$cache = config.cache;\n\tif ((<any> db).$cache) {\n\t\t(<any> db).$cache['invalidate'] = config.cache?.onMutate;\n\t}\n\n\treturn db;\n}\n"],"mappings":";;;;;;;;;;;AAUA,IAAa,mBAAb,cACSA,sCACT;CACC,QAA0BC,0BAAsB;;AAUjD,SAAgB,QACf,UACA,SAA8D,EAAE,EAChE,iBACC,IAAIC,+BAAU;CACb,8CAA8B,OAAO,cAAc;CACnD,QAAQ,OAAO,UAAUC;CACzB,CAAC,EAC4B;CAC/B,MAAM,UAAU,UAAU;CAC1B,IAAI;AACJ,KAAI,OAAO,WAAW,KACrB,UAAS,IAAIC,2BAAe;UAClB,OAAO,WAAW,MAC5B,UAAS,OAAO;CAGjB,MAAM,YAAY,OAAO,aAAa,EAAE;CAExC,MAAM,KAAK,IAAI,iBACd,SAFe,IAAIC,yCAAgB,UAAU,SAAS,WAAW;EAAE;EAAQ,OAAO,OAAO;EAAO,CAAC,EAIjG,UACA;AACD,CAAO,GAAI,SAAS,OAAO;AAC3B,KAAW,GAAI,OACd,CAAO,GAAI,OAAO,gBAAgB,OAAO,OAAO;AAGjD,QAAO"}
|
package/pg-proxy/driver.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PgRemoteQueryResultHKT } from "./session.js";
|
|
2
2
|
import { entityKind } from "../entity.js";
|
|
3
3
|
import { PgAsyncDatabase } from "../pg-core/async/db.js";
|
|
4
|
-
import { PgCodecs } from "../pg-core/codecs.js";
|
|
5
4
|
import { PgDialect } from "../pg-core/dialect.js";
|
|
5
|
+
import { PgCodecs } from "../pg-core/codecs.js";
|
|
6
6
|
import { AnyRelations, EmptyRelations } from "../relations.js";
|
|
7
7
|
import { DrizzlePgConfig } from "../pg-core/utils.js";
|
|
8
8
|
|
package/pg-proxy/driver.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { PgRemoteSession } from "./session.js";
|
|
2
2
|
import { entityKind } from "../entity.js";
|
|
3
|
+
import { jitCompatCheck } from "../utils.js";
|
|
3
4
|
import { DefaultLogger } from "../logger.js";
|
|
4
5
|
import { PgAsyncDatabase } from "../pg-core/async/db.js";
|
|
5
|
-
import { genericPgCodecs } from "../pg-core/codecs.js";
|
|
6
6
|
import { PgDialect } from "../pg-core/dialect.js";
|
|
7
|
+
import { genericPgCodecs } from "../pg-core/codecs.js";
|
|
7
8
|
|
|
8
9
|
//#region src/pg-proxy/driver.ts
|
|
9
10
|
var PgRemoteDatabase = class extends PgAsyncDatabase {
|
|
10
11
|
static [entityKind] = "PgRemoteDatabase";
|
|
11
12
|
};
|
|
12
13
|
function drizzle(callback, config = {}, _dialect = () => new PgDialect({
|
|
13
|
-
useJitMappers: config.useJitMappers,
|
|
14
|
+
useJitMappers: jitCompatCheck(config.useJitMappers),
|
|
14
15
|
codecs: config.codecs ?? genericPgCodecs
|
|
15
16
|
})) {
|
|
16
17
|
const dialect = _dialect();
|
|
@@ -20,8 +21,7 @@ function drizzle(callback, config = {}, _dialect = () => new PgDialect({
|
|
|
20
21
|
const relations = config.relations ?? {};
|
|
21
22
|
const db = new PgRemoteDatabase(dialect, new PgRemoteSession(callback, dialect, relations, {
|
|
22
23
|
logger,
|
|
23
|
-
cache: config.cache
|
|
24
|
-
useJitMapper: config.useJitMappers
|
|
24
|
+
cache: config.cache
|
|
25
25
|
}), relations);
|
|
26
26
|
db.$cache = config.cache;
|
|
27
27
|
if (db.$cache) db.$cache["invalidate"] = config.cache?.onMutate;
|
package/pg-proxy/driver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.js","names":[],"sources":["../../src/pg-proxy/driver.ts"],"sourcesContent":["import { entityKind } from '~/entity.ts';\nimport { DefaultLogger } from '~/logger.ts';\nimport { PgAsyncDatabase } from '~/pg-core/async/db.ts';\nimport { genericPgCodecs, type PgCodecs } from '~/pg-core/codecs.ts';\nimport { PgDialect } from '~/pg-core/dialect.ts';\nimport type { DrizzlePgConfig } from '~/pg-core/utils.ts';\nimport type { AnyRelations, EmptyRelations } from '~/relations.ts';\nimport { type PgRemoteQueryResultHKT, PgRemoteSession } from './session.ts';\n\nexport class PgRemoteDatabase<TRelations extends AnyRelations = EmptyRelations>\n\textends PgAsyncDatabase<PgRemoteQueryResultHKT, TRelations>\n{\n\tstatic override readonly [entityKind]: string = 'PgRemoteDatabase';\n}\n\nexport type RemoteCallback = (\n\tsql: string,\n\tparams: any[],\n\tmethod: 'all' | 'execute',\n\ttypings?: any[],\n) => Promise<{ rows: any[] }>;\n\nexport function drizzle<TRelations extends AnyRelations = EmptyRelations>(\n\tcallback: RemoteCallback,\n\tconfig: DrizzlePgConfig<TRelations> & { codecs?: PgCodecs } = {},\n\t_dialect: () => PgDialect = () =>\n\t\tnew PgDialect({\n\t\t\tuseJitMappers: config.useJitMappers,\n\t\t\tcodecs: config.codecs ?? genericPgCodecs,\n\t\t}),\n): PgRemoteDatabase<TRelations> {\n\tconst dialect = _dialect();\n\tlet logger;\n\tif (config.logger === true) {\n\t\tlogger = new DefaultLogger();\n\t} else if (config.logger !== false) {\n\t\tlogger = config.logger;\n\t}\n\n\tconst relations = config.relations ?? {} as TRelations;\n\tconst session = new PgRemoteSession(callback, dialect, relations, {
|
|
1
|
+
{"version":3,"file":"driver.js","names":[],"sources":["../../src/pg-proxy/driver.ts"],"sourcesContent":["import { entityKind } from '~/entity.ts';\nimport { DefaultLogger } from '~/logger.ts';\nimport { PgAsyncDatabase } from '~/pg-core/async/db.ts';\nimport { genericPgCodecs, type PgCodecs } from '~/pg-core/codecs.ts';\nimport { PgDialect } from '~/pg-core/dialect.ts';\nimport type { DrizzlePgConfig } from '~/pg-core/utils.ts';\nimport type { AnyRelations, EmptyRelations } from '~/relations.ts';\nimport { jitCompatCheck } from '~/utils.ts';\nimport { type PgRemoteQueryResultHKT, PgRemoteSession } from './session.ts';\n\nexport class PgRemoteDatabase<TRelations extends AnyRelations = EmptyRelations>\n\textends PgAsyncDatabase<PgRemoteQueryResultHKT, TRelations>\n{\n\tstatic override readonly [entityKind]: string = 'PgRemoteDatabase';\n}\n\nexport type RemoteCallback = (\n\tsql: string,\n\tparams: any[],\n\tmethod: 'all' | 'execute',\n\ttypings?: any[],\n) => Promise<{ rows: any[] }>;\n\nexport function drizzle<TRelations extends AnyRelations = EmptyRelations>(\n\tcallback: RemoteCallback,\n\tconfig: DrizzlePgConfig<TRelations> & { codecs?: PgCodecs } = {},\n\t_dialect: () => PgDialect = () =>\n\t\tnew PgDialect({\n\t\t\tuseJitMappers: jitCompatCheck(config.useJitMappers),\n\t\t\tcodecs: config.codecs ?? genericPgCodecs,\n\t\t}),\n): PgRemoteDatabase<TRelations> {\n\tconst dialect = _dialect();\n\tlet logger;\n\tif (config.logger === true) {\n\t\tlogger = new DefaultLogger();\n\t} else if (config.logger !== false) {\n\t\tlogger = config.logger;\n\t}\n\n\tconst relations = config.relations ?? {} as TRelations;\n\tconst session = new PgRemoteSession(callback, dialect, relations, { logger, cache: config.cache });\n\tconst db = new PgRemoteDatabase(\n\t\tdialect,\n\t\tsession,\n\t\trelations,\n\t) as PgRemoteDatabase<TRelations>;\n\t(<any> db).$cache = config.cache;\n\tif ((<any> db).$cache) {\n\t\t(<any> db).$cache['invalidate'] = config.cache?.onMutate;\n\t}\n\n\treturn db;\n}\n"],"mappings":";;;;;;;;;AAUA,IAAa,mBAAb,cACS,gBACT;CACC,QAA0B,cAAsB;;AAUjD,SAAgB,QACf,UACA,SAA8D,EAAE,EAChE,iBACC,IAAI,UAAU;CACb,eAAe,eAAe,OAAO,cAAc;CACnD,QAAQ,OAAO,UAAU;CACzB,CAAC,EAC4B;CAC/B,MAAM,UAAU,UAAU;CAC1B,IAAI;AACJ,KAAI,OAAO,WAAW,KACrB,UAAS,IAAI,eAAe;UAClB,OAAO,WAAW,MAC5B,UAAS,OAAO;CAGjB,MAAM,YAAY,OAAO,aAAa,EAAE;CAExC,MAAM,KAAK,IAAI,iBACd,SAFe,IAAI,gBAAgB,UAAU,SAAS,WAAW;EAAE;EAAQ,OAAO,OAAO;EAAO,CAAC,EAIjG,UACA;AACD,CAAO,GAAI,SAAS,OAAO;AAC3B,KAAW,GAAI,OACd,CAAO,GAAI,OAAO,gBAAgB,OAAO,OAAO;AAGjD,QAAO"}
|
package/pg-proxy/session.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.cjs","names":["PgAsyncSession","entityKind","NoopLogger","NoopCache","PgAsyncPreparedQuery"],"sources":["../../src/pg-proxy/session.ts"],"sourcesContent":["import { type Cache, NoopCache } from '~/cache/core/cache.ts';\nimport type { WithCacheConfig } from '~/cache/core/types.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { Logger } from '~/logger.ts';\nimport { NoopLogger } from '~/logger.ts';\nimport { PgAsyncPreparedQuery, PgAsyncSession, type PgAsyncTransaction } from '~/pg-core/async/session.ts';\nimport type { PgDialect } from '~/pg-core/dialect.ts';\nimport type { PgQueryResultHKT, PgTransactionConfig, PreparedQueryConfig } from '~/pg-core/session.ts';\nimport type { AnyRelations } from '~/relations.ts';\nimport type { QueryWithTypings } from '~/sql/sql.ts';\nimport type { Assume } from '~/utils.ts';\nimport type { RemoteCallback } from './driver.ts';\n\nexport interface PgRemoteSessionOptions {\n\tlogger?: Logger;\n\tcache?: Cache;\n
|
|
1
|
+
{"version":3,"file":"session.cjs","names":["PgAsyncSession","entityKind","NoopLogger","NoopCache","PgAsyncPreparedQuery"],"sources":["../../src/pg-proxy/session.ts"],"sourcesContent":["import { type Cache, NoopCache } from '~/cache/core/cache.ts';\nimport type { WithCacheConfig } from '~/cache/core/types.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { Logger } from '~/logger.ts';\nimport { NoopLogger } from '~/logger.ts';\nimport { PgAsyncPreparedQuery, PgAsyncSession, type PgAsyncTransaction } from '~/pg-core/async/session.ts';\nimport type { PgDialect } from '~/pg-core/dialect.ts';\nimport type { PgQueryResultHKT, PgTransactionConfig, PreparedQueryConfig } from '~/pg-core/session.ts';\nimport type { AnyRelations } from '~/relations.ts';\nimport type { QueryWithTypings } from '~/sql/sql.ts';\nimport type { Assume } from '~/utils.ts';\nimport type { RemoteCallback } from './driver.ts';\n\nexport interface PgRemoteSessionOptions {\n\tlogger?: Logger;\n\tcache?: Cache;\n}\n\nexport class PgRemoteSession<\n\tTRelations extends AnyRelations,\n> extends PgAsyncSession<PgRemoteQueryResultHKT, TRelations> {\n\tstatic override readonly [entityKind]: string = 'PgRemoteSession';\n\n\tprivate logger: Logger;\n\tprivate cache: Cache;\n\n\tconstructor(\n\t\tprivate client: RemoteCallback,\n\t\tdialect: PgDialect,\n\t\tprivate relations: TRelations,\n\t\tprivate options: PgRemoteSessionOptions = {},\n\t) {\n\t\tsuper(dialect);\n\t\tthis.logger = options.logger ?? new NoopLogger();\n\t\tthis.cache = options.cache ?? new NoopCache();\n\t}\n\n\tprepareQuery<T extends PreparedQueryConfig = PreparedQueryConfig>(\n\t\tquery: QueryWithTypings,\n\t\tmode: 'arrays' | 'objects' | 'raw',\n\t\t_name: string | boolean,\n\t\tmapper: ((rows: any[]) => any) | undefined,\n\t\tqueryMetadata?: {\n\t\t\ttype: 'select' | 'update' | 'delete' | 'insert';\n\t\t\ttables: string[];\n\t\t},\n\t\tcacheConfig?: WithCacheConfig,\n\t) {\n\t\tconst executor = async (params?: unknown[]) => {\n\t\t\tif (mode === 'arrays') return this.client(query.sql, params as any[], 'all', query.typings).then((r) => r.rows);\n\n\t\t\treturn this.client(query.sql, params as any[], 'execute', query.typings).then((r) => r.rows);\n\t\t};\n\n\t\treturn new PgAsyncPreparedQuery<T>(\n\t\t\texecutor,\n\t\t\tquery,\n\t\t\tmapper,\n\t\t\tmode,\n\t\t\tthis.logger,\n\t\t\tthis.cache,\n\t\t\tqueryMetadata,\n\t\t\tcacheConfig,\n\t\t);\n\t}\n\n\toverride async transaction<T>(\n\t\t_transaction: (tx: PgAsyncTransaction<PgRemoteQueryResultHKT, TRelations>) => Promise<T>,\n\t\t_config?: PgTransactionConfig,\n\t): Promise<T> {\n\t\tthrow new Error('Transactions are not supported by the Postgres Proxy driver');\n\t}\n}\n\nexport interface PgRemoteQueryResultHKT extends PgQueryResultHKT {\n\ttype: Assume<this['row'], {\n\t\t[column: string]: any;\n\t}>[];\n}\n"],"mappings":";;;;;;;;AAkBA,IAAa,kBAAb,cAEUA,0CAAmD;CAC5D,QAA0BC,0BAAsB;CAEhD,AAAQ;CACR,AAAQ;CAER,YACC,AAAQ,QACR,SACA,AAAQ,WACR,AAAQ,UAAkC,EAAE,EAC3C;AACD,QAAM,QAAQ;EALN;EAEA;EACA;AAGR,OAAK,SAAS,QAAQ,UAAU,IAAIC,wBAAY;AAChD,OAAK,QAAQ,QAAQ,SAAS,IAAIC,iCAAW;;CAG9C,aACC,OACA,MACA,OACA,QACA,eAIA,aACC;EACD,MAAM,WAAW,OAAO,WAAuB;AAC9C,OAAI,SAAS,SAAU,QAAO,KAAK,OAAO,MAAM,KAAK,QAAiB,OAAO,MAAM,QAAQ,CAAC,MAAM,MAAM,EAAE,KAAK;AAE/G,UAAO,KAAK,OAAO,MAAM,KAAK,QAAiB,WAAW,MAAM,QAAQ,CAAC,MAAM,MAAM,EAAE,KAAK;;AAG7F,SAAO,IAAIC,gDACV,UACA,OACA,QACA,MACA,KAAK,QACL,KAAK,OACL,eACA,YACA;;CAGF,MAAe,YACd,cACA,SACa;AACb,QAAM,IAAI,MAAM,8DAA8D"}
|
package/pg-proxy/session.d.cts
CHANGED
|
@@ -14,7 +14,6 @@ import { PgAsyncPreparedQuery, PgAsyncSession, PgAsyncTransaction } from "../pg-
|
|
|
14
14
|
interface PgRemoteSessionOptions {
|
|
15
15
|
logger?: Logger;
|
|
16
16
|
cache?: Cache;
|
|
17
|
-
useJitMapper?: boolean;
|
|
18
17
|
}
|
|
19
18
|
declare class PgRemoteSession<TRelations extends AnyRelations> extends PgAsyncSession<PgRemoteQueryResultHKT, TRelations> {
|
|
20
19
|
private client;
|
package/pg-proxy/session.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ import { PgQueryResultHKT, PgTransactionConfig, PreparedQueryConfig } from "../p
|
|
|
14
14
|
interface PgRemoteSessionOptions {
|
|
15
15
|
logger?: Logger;
|
|
16
16
|
cache?: Cache;
|
|
17
|
-
useJitMapper?: boolean;
|
|
18
17
|
}
|
|
19
18
|
declare class PgRemoteSession<TRelations extends AnyRelations> extends PgAsyncSession<PgRemoteQueryResultHKT, TRelations> {
|
|
20
19
|
private client;
|
package/pg-proxy/session.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","names":[],"sources":["../../src/pg-proxy/session.ts"],"sourcesContent":["import { type Cache, NoopCache } from '~/cache/core/cache.ts';\nimport type { WithCacheConfig } from '~/cache/core/types.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { Logger } from '~/logger.ts';\nimport { NoopLogger } from '~/logger.ts';\nimport { PgAsyncPreparedQuery, PgAsyncSession, type PgAsyncTransaction } from '~/pg-core/async/session.ts';\nimport type { PgDialect } from '~/pg-core/dialect.ts';\nimport type { PgQueryResultHKT, PgTransactionConfig, PreparedQueryConfig } from '~/pg-core/session.ts';\nimport type { AnyRelations } from '~/relations.ts';\nimport type { QueryWithTypings } from '~/sql/sql.ts';\nimport type { Assume } from '~/utils.ts';\nimport type { RemoteCallback } from './driver.ts';\n\nexport interface PgRemoteSessionOptions {\n\tlogger?: Logger;\n\tcache?: Cache;\n
|
|
1
|
+
{"version":3,"file":"session.js","names":[],"sources":["../../src/pg-proxy/session.ts"],"sourcesContent":["import { type Cache, NoopCache } from '~/cache/core/cache.ts';\nimport type { WithCacheConfig } from '~/cache/core/types.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { Logger } from '~/logger.ts';\nimport { NoopLogger } from '~/logger.ts';\nimport { PgAsyncPreparedQuery, PgAsyncSession, type PgAsyncTransaction } from '~/pg-core/async/session.ts';\nimport type { PgDialect } from '~/pg-core/dialect.ts';\nimport type { PgQueryResultHKT, PgTransactionConfig, PreparedQueryConfig } from '~/pg-core/session.ts';\nimport type { AnyRelations } from '~/relations.ts';\nimport type { QueryWithTypings } from '~/sql/sql.ts';\nimport type { Assume } from '~/utils.ts';\nimport type { RemoteCallback } from './driver.ts';\n\nexport interface PgRemoteSessionOptions {\n\tlogger?: Logger;\n\tcache?: Cache;\n}\n\nexport class PgRemoteSession<\n\tTRelations extends AnyRelations,\n> extends PgAsyncSession<PgRemoteQueryResultHKT, TRelations> {\n\tstatic override readonly [entityKind]: string = 'PgRemoteSession';\n\n\tprivate logger: Logger;\n\tprivate cache: Cache;\n\n\tconstructor(\n\t\tprivate client: RemoteCallback,\n\t\tdialect: PgDialect,\n\t\tprivate relations: TRelations,\n\t\tprivate options: PgRemoteSessionOptions = {},\n\t) {\n\t\tsuper(dialect);\n\t\tthis.logger = options.logger ?? new NoopLogger();\n\t\tthis.cache = options.cache ?? new NoopCache();\n\t}\n\n\tprepareQuery<T extends PreparedQueryConfig = PreparedQueryConfig>(\n\t\tquery: QueryWithTypings,\n\t\tmode: 'arrays' | 'objects' | 'raw',\n\t\t_name: string | boolean,\n\t\tmapper: ((rows: any[]) => any) | undefined,\n\t\tqueryMetadata?: {\n\t\t\ttype: 'select' | 'update' | 'delete' | 'insert';\n\t\t\ttables: string[];\n\t\t},\n\t\tcacheConfig?: WithCacheConfig,\n\t) {\n\t\tconst executor = async (params?: unknown[]) => {\n\t\t\tif (mode === 'arrays') return this.client(query.sql, params as any[], 'all', query.typings).then((r) => r.rows);\n\n\t\t\treturn this.client(query.sql, params as any[], 'execute', query.typings).then((r) => r.rows);\n\t\t};\n\n\t\treturn new PgAsyncPreparedQuery<T>(\n\t\t\texecutor,\n\t\t\tquery,\n\t\t\tmapper,\n\t\t\tmode,\n\t\t\tthis.logger,\n\t\t\tthis.cache,\n\t\t\tqueryMetadata,\n\t\t\tcacheConfig,\n\t\t);\n\t}\n\n\toverride async transaction<T>(\n\t\t_transaction: (tx: PgAsyncTransaction<PgRemoteQueryResultHKT, TRelations>) => Promise<T>,\n\t\t_config?: PgTransactionConfig,\n\t): Promise<T> {\n\t\tthrow new Error('Transactions are not supported by the Postgres Proxy driver');\n\t}\n}\n\nexport interface PgRemoteQueryResultHKT extends PgQueryResultHKT {\n\ttype: Assume<this['row'], {\n\t\t[column: string]: any;\n\t}>[];\n}\n"],"mappings":";;;;;;AAkBA,IAAa,kBAAb,cAEU,eAAmD;CAC5D,QAA0B,cAAsB;CAEhD,AAAQ;CACR,AAAQ;CAER,YACC,AAAQ,QACR,SACA,AAAQ,WACR,AAAQ,UAAkC,EAAE,EAC3C;AACD,QAAM,QAAQ;EALN;EAEA;EACA;AAGR,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;AAChD,OAAK,QAAQ,QAAQ,SAAS,IAAI,WAAW;;CAG9C,aACC,OACA,MACA,OACA,QACA,eAIA,aACC;EACD,MAAM,WAAW,OAAO,WAAuB;AAC9C,OAAI,SAAS,SAAU,QAAO,KAAK,OAAO,MAAM,KAAK,QAAiB,OAAO,MAAM,QAAQ,CAAC,MAAM,MAAM,EAAE,KAAK;AAE/G,UAAO,KAAK,OAAO,MAAM,KAAK,QAAiB,WAAW,MAAM,QAAQ,CAAC,MAAM,MAAM,EAAE,KAAK;;AAG7F,SAAO,IAAI,qBACV,UACA,OACA,QACA,MACA,KAAK,QACL,KAAK,OACL,eACA,YACA;;CAGF,MAAe,YACd,cACA,SACa;AACb,QAAM,IAAI,MAAM,8DAA8D"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let __utils_ts = require("../utils.cjs");
|
|
4
|
+
let __pg_core_array_ts = require("../pg-core/array.cjs");
|
|
5
|
+
let __pg_core_codecs_ts = require("../pg-core/codecs.cjs");
|
|
6
|
+
|
|
7
|
+
//#region src/pglite/codecs.ts
|
|
8
|
+
const pgliteCodecs = (0, __pg_core_codecs_ts.refineGenericPgCodecs)({
|
|
9
|
+
bigint: {
|
|
10
|
+
cast: __pg_core_codecs_ts.castToText,
|
|
11
|
+
castArray: __pg_core_codecs_ts.castToTextArr,
|
|
12
|
+
normalize: BigInt,
|
|
13
|
+
normalizeArray: (0, __pg_core_codecs_ts.arrayCompatNormalize)(BigInt)
|
|
14
|
+
},
|
|
15
|
+
"bigint:string": {
|
|
16
|
+
cast: __pg_core_codecs_ts.castToText,
|
|
17
|
+
castArray: __pg_core_codecs_ts.castToTextArr
|
|
18
|
+
},
|
|
19
|
+
"bigint:number": {
|
|
20
|
+
cast: __pg_core_codecs_ts.castToText,
|
|
21
|
+
castArray: __pg_core_codecs_ts.castToTextArr
|
|
22
|
+
},
|
|
23
|
+
bigserial: {
|
|
24
|
+
normalize: BigInt,
|
|
25
|
+
normalizeArray: (0, __pg_core_codecs_ts.arrayCompatNormalize)(BigInt),
|
|
26
|
+
cast: __pg_core_codecs_ts.castToText,
|
|
27
|
+
castArray: __pg_core_codecs_ts.castToTextArr
|
|
28
|
+
},
|
|
29
|
+
"bigserial:number": {
|
|
30
|
+
cast: __pg_core_codecs_ts.castToText,
|
|
31
|
+
castArray: __pg_core_codecs_ts.castToTextArr
|
|
32
|
+
},
|
|
33
|
+
bytea: {
|
|
34
|
+
normalizeInJson: typeof Buffer === "undefined" ? __utils_ts.base64ToUint8Array : __pg_core_codecs_ts.genericPgCodecs.bytea?.normalizeInJson,
|
|
35
|
+
normalizeArrayInJson: typeof Buffer === "undefined" ? (0, __pg_core_codecs_ts.arrayCompatNormalize)(__utils_ts.base64ToUint8Array) : __pg_core_codecs_ts.genericPgCodecs.bytea?.normalizeArrayInJson,
|
|
36
|
+
normalize: typeof Buffer === "undefined" ? void 0 : (v) => Buffer.from(v),
|
|
37
|
+
normalizeArray: typeof Buffer === "undefined" ? void 0 : (0, __pg_core_codecs_ts.arrayCompatNormalize)((v) => Buffer.from(v))
|
|
38
|
+
},
|
|
39
|
+
interval: { castArray: __pg_core_codecs_ts.castToTextArr },
|
|
40
|
+
date: {
|
|
41
|
+
castArray: __pg_core_codecs_ts.castToTextArr,
|
|
42
|
+
normalize: __pg_core_codecs_ts.textToDate,
|
|
43
|
+
normalizeArray: (0, __pg_core_codecs_ts.arrayCompatNormalize)(__pg_core_codecs_ts.textToDate)
|
|
44
|
+
},
|
|
45
|
+
"date:string": { castArray: __pg_core_codecs_ts.castToTextArr },
|
|
46
|
+
timestamp: {
|
|
47
|
+
castArray: __pg_core_codecs_ts.castToTextArr,
|
|
48
|
+
normalize: __pg_core_codecs_ts.textToDateWithTz,
|
|
49
|
+
normalizeArray: (0, __pg_core_codecs_ts.arrayCompatNormalize)(__pg_core_codecs_ts.textToDateWithTz)
|
|
50
|
+
},
|
|
51
|
+
timestamptz: {
|
|
52
|
+
castArray: __pg_core_codecs_ts.castToTextArr,
|
|
53
|
+
normalize: __pg_core_codecs_ts.textToDate,
|
|
54
|
+
normalizeArray: (0, __pg_core_codecs_ts.arrayCompatNormalize)(__pg_core_codecs_ts.textToDate)
|
|
55
|
+
},
|
|
56
|
+
"timestamp:string": { castArray: __pg_core_codecs_ts.castToTextArr },
|
|
57
|
+
"timestamptz:string": { castArray: __pg_core_codecs_ts.castToTextArr },
|
|
58
|
+
json: { normalizeParam: (v) => typeof v === "object" ? v : JSON.stringify(v) },
|
|
59
|
+
jsonb: { normalizeParam: (v) => typeof v === "object" ? v : JSON.stringify(v) },
|
|
60
|
+
geometry: {
|
|
61
|
+
normalizeArray: (0, __pg_core_codecs_ts.parsePgArrayAndNormalize)(__pg_core_codecs_ts.parseGeometryXY),
|
|
62
|
+
castParam: (name) => `${name}::geometry`,
|
|
63
|
+
castArrayParam: (name, dimensions) => `${name}::geometry${"[]".repeat(dimensions)}`,
|
|
64
|
+
normalizeParamArray: __pg_core_array_ts.makePgArray
|
|
65
|
+
},
|
|
66
|
+
"geometry:tuple": {
|
|
67
|
+
normalizeArray: (0, __pg_core_codecs_ts.parsePgArrayAndNormalize)(__pg_core_codecs_ts.parseGeometryTuple),
|
|
68
|
+
castParam: (name) => `${name}::geometry`,
|
|
69
|
+
castArrayParam: (name, dimensions) => `${name}::geometry${"[]".repeat(dimensions)}`,
|
|
70
|
+
normalizeParamArray: __pg_core_array_ts.makePgArray
|
|
71
|
+
},
|
|
72
|
+
halfvec: {
|
|
73
|
+
castParam: (name) => `${name}::halfvec`,
|
|
74
|
+
castArrayParam: (name, dimensions) => `${name}::halfvec${"[]".repeat(dimensions)}`,
|
|
75
|
+
normalizeParamArray: __pg_core_array_ts.makePgArray
|
|
76
|
+
},
|
|
77
|
+
vector: {
|
|
78
|
+
castParam: (name) => `${name}::vector`,
|
|
79
|
+
castArrayParam: (name, dimensions) => `${name}::vector${"[]".repeat(dimensions)}`,
|
|
80
|
+
normalizeParamArray: __pg_core_array_ts.makePgArray
|
|
81
|
+
},
|
|
82
|
+
sparsevec: {
|
|
83
|
+
normalizeArray: __pg_core_array_ts.parsePgArray,
|
|
84
|
+
castParam: (name) => `${name}::sparsevec`,
|
|
85
|
+
castArrayParam: (name, dimensions) => `${name}::sparsevec${"[]".repeat(dimensions)}`,
|
|
86
|
+
normalizeParamArray: __pg_core_array_ts.makePgArray
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
//#endregion
|
|
91
|
+
exports.pgliteCodecs = pgliteCodecs;
|
|
92
|
+
//# sourceMappingURL=codecs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs.cjs","names":["castToText","castToTextArr","base64ToUint8Array","genericPgCodecs","textToDate","textToDateWithTz","parseGeometryXY","makePgArray","parseGeometryTuple","parsePgArray"],"sources":["../../src/pglite/codecs.ts"],"sourcesContent":["import { makePgArray, parsePgArray } from '~/pg-core/array.ts';\nimport {\n\tarrayCompatNormalize,\n\tcastToText,\n\tcastToTextArr,\n\tgenericPgCodecs,\n\tparseGeometryTuple,\n\tparseGeometryXY,\n\tparsePgArrayAndNormalize,\n\trefineGenericPgCodecs,\n\ttextToDate,\n\ttextToDateWithTz,\n} from '~/pg-core/codecs.ts';\nimport { base64ToUint8Array } from '~/utils.ts';\n\nexport const pgliteCodecs = refineGenericPgCodecs({\n\t// Otherwise outputs are inconsistent\n\tbigint: {\n\t\tcast: castToText,\n\t\tcastArray: castToTextArr,\n\t\tnormalize: BigInt,\n\t\tnormalizeArray: arrayCompatNormalize(BigInt),\n\t},\n\t// Otherwise outputs are inconsistent\n\t'bigint:string': {\n\t\tcast: castToText,\n\t\tcastArray: castToTextArr,\n\t},\n\t// Otherwise outputs are inconsistent\n\t'bigint:number': {\n\t\tcast: castToText,\n\t\tcastArray: castToTextArr,\n\t},\n\t// Otherwise outputs are inconsistent\n\tbigserial: {\n\t\tnormalize: BigInt,\n\t\tnormalizeArray: arrayCompatNormalize(BigInt),\n\t\tcast: castToText,\n\t\tcastArray: castToTextArr,\n\t},\n\t// Otherwise outputs are inconsistent\n\t'bigserial:number': {\n\t\tcast: castToText,\n\t\tcastArray: castToTextArr,\n\t},\n\tbytea: {\n\t\tnormalizeInJson: typeof Buffer === 'undefined' ? base64ToUint8Array : genericPgCodecs.bytea?.normalizeInJson,\n\t\tnormalizeArrayInJson: typeof Buffer === 'undefined'\n\t\t\t? arrayCompatNormalize(base64ToUint8Array)\n\t\t\t: genericPgCodecs.bytea?.normalizeArrayInJson,\n\t\tnormalize: typeof Buffer === 'undefined'\n\t\t\t? undefined\n\t\t\t: (v: Uint8Array) => Buffer.from(v),\n\t\tnormalizeArray: typeof Buffer === 'undefined'\n\t\t\t? undefined\n\t\t\t: arrayCompatNormalize((v: Uint8Array) => Buffer.from(v)),\n\t},\n\tinterval: {\n\t\tcastArray: castToTextArr,\n\t},\n\tdate: {\n\t\tcastArray: castToTextArr,\n\t\tnormalize: textToDate,\n\t\tnormalizeArray: arrayCompatNormalize(textToDate),\n\t},\n\t'date:string': {\n\t\tcastArray: castToTextArr,\n\t},\n\ttimestamp: {\n\t\tcastArray: castToTextArr,\n\t\tnormalize: textToDateWithTz,\n\t\tnormalizeArray: arrayCompatNormalize(textToDateWithTz),\n\t},\n\ttimestamptz: {\n\t\tcastArray: castToTextArr,\n\t\tnormalize: textToDate,\n\t\tnormalizeArray: arrayCompatNormalize(textToDate),\n\t},\n\t'timestamp:string': {\n\t\tcastArray: castToTextArr,\n\t},\n\t'timestamptz:string': {\n\t\tcastArray: castToTextArr,\n\t},\n\tjson: {\n\t\t// Driver handles objects, other types need to be stringified\n\t\tnormalizeParam: (v) => typeof v === 'object' ? v : JSON.stringify(v),\n\t},\n\tjsonb: {\n\t\t// Driver handles objects, other types need to be stringified\n\t\tnormalizeParam: (v) => typeof v === 'object' ? v : JSON.stringify(v),\n\t},\n\tgeometry: {\n\t\tnormalizeArray: parsePgArrayAndNormalize(parseGeometryXY),\n\t\tcastParam: (name) => `${name}::geometry`,\n\t\tcastArrayParam: (name, dimensions) => `${name}::geometry${'[]'.repeat(dimensions)}`,\n\t\tnormalizeParamArray: makePgArray,\n\t},\n\t'geometry:tuple': {\n\t\tnormalizeArray: parsePgArrayAndNormalize(parseGeometryTuple),\n\t\tcastParam: (name) => `${name}::geometry`,\n\t\tcastArrayParam: (name, dimensions) => `${name}::geometry${'[]'.repeat(dimensions)}`,\n\t\tnormalizeParamArray: makePgArray,\n\t},\n\thalfvec: {\n\t\tcastParam: (name) => `${name}::halfvec`,\n\t\tcastArrayParam: (name, dimensions) => `${name}::halfvec${'[]'.repeat(dimensions)}`,\n\t\tnormalizeParamArray: makePgArray,\n\t},\n\tvector: {\n\t\tcastParam: (name) => `${name}::vector`,\n\t\tcastArrayParam: (name, dimensions) => `${name}::vector${'[]'.repeat(dimensions)}`,\n\t\tnormalizeParamArray: makePgArray,\n\t},\n\tsparsevec: {\n\t\tnormalizeArray: parsePgArray,\n\t\tcastParam: (name) => `${name}::sparsevec`,\n\t\tcastArrayParam: (name, dimensions) => `${name}::sparsevec${'[]'.repeat(dimensions)}`,\n\t\tnormalizeParamArray: makePgArray,\n\t},\n});\n"],"mappings":";;;;;;;AAeA,MAAa,8DAAqC;CAEjD,QAAQ;EACP,MAAMA;EACN,WAAWC;EACX,WAAW;EACX,8DAAqC,OAAO;EAC5C;CAED,iBAAiB;EAChB,MAAMD;EACN,WAAWC;EACX;CAED,iBAAiB;EAChB,MAAMD;EACN,WAAWC;EACX;CAED,WAAW;EACV,WAAW;EACX,8DAAqC,OAAO;EAC5C,MAAMD;EACN,WAAWC;EACX;CAED,oBAAoB;EACnB,MAAMD;EACN,WAAWC;EACX;CACD,OAAO;EACN,iBAAiB,OAAO,WAAW,cAAcC,gCAAqBC,oCAAgB,OAAO;EAC7F,sBAAsB,OAAO,WAAW,4DAChBD,8BAAmB,GACxCC,oCAAgB,OAAO;EAC1B,WAAW,OAAO,WAAW,cAC1B,UACC,MAAkB,OAAO,KAAK,EAAE;EACpC,gBAAgB,OAAO,WAAW,cAC/B,wDACsB,MAAkB,OAAO,KAAK,EAAE,CAAC;EAC1D;CACD,UAAU,EACT,WAAWF,mCACX;CACD,MAAM;EACL,WAAWA;EACX,WAAWG;EACX,8DAAqCA,+BAAW;EAChD;CACD,eAAe,EACd,WAAWH,mCACX;CACD,WAAW;EACV,WAAWA;EACX,WAAWI;EACX,8DAAqCA,qCAAiB;EACtD;CACD,aAAa;EACZ,WAAWJ;EACX,WAAWG;EACX,8DAAqCA,+BAAW;EAChD;CACD,oBAAoB,EACnB,WAAWH,mCACX;CACD,sBAAsB,EACrB,WAAWA,mCACX;CACD,MAAM,EAEL,iBAAiB,MAAM,OAAO,MAAM,WAAW,IAAI,KAAK,UAAU,EAAE,EACpE;CACD,OAAO,EAEN,iBAAiB,MAAM,OAAO,MAAM,WAAW,IAAI,KAAK,UAAU,EAAE,EACpE;CACD,UAAU;EACT,kEAAyCK,oCAAgB;EACzD,YAAY,SAAS,GAAG,KAAK;EAC7B,iBAAiB,MAAM,eAAe,GAAG,KAAK,YAAY,KAAK,OAAO,WAAW;EACjF,qBAAqBC;EACrB;CACD,kBAAkB;EACjB,kEAAyCC,uCAAmB;EAC5D,YAAY,SAAS,GAAG,KAAK;EAC7B,iBAAiB,MAAM,eAAe,GAAG,KAAK,YAAY,KAAK,OAAO,WAAW;EACjF,qBAAqBD;EACrB;CACD,SAAS;EACR,YAAY,SAAS,GAAG,KAAK;EAC7B,iBAAiB,MAAM,eAAe,GAAG,KAAK,WAAW,KAAK,OAAO,WAAW;EAChF,qBAAqBA;EACrB;CACD,QAAQ;EACP,YAAY,SAAS,GAAG,KAAK;EAC7B,iBAAiB,MAAM,eAAe,GAAG,KAAK,UAAU,KAAK,OAAO,WAAW;EAC/E,qBAAqBA;EACrB;CACD,WAAW;EACV,gBAAgBE;EAChB,YAAY,SAAS,GAAG,KAAK;EAC7B,iBAAiB,MAAM,eAAe,GAAG,KAAK,aAAa,KAAK,OAAO,WAAW;EAClF,qBAAqBF;EACrB;CACD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Codec } from "../codecs.cjs";
|
|
2
|
+
import * as __utils_ts0 from "../utils.cjs";
|
|
3
|
+
import * as __pg_core_codecs_ts0 from "../pg-core/codecs.cjs";
|
|
4
|
+
|
|
5
|
+
//#region src/pglite/codecs.d.ts
|
|
6
|
+
declare const pgliteCodecs: __utils_ts0.PartialWithUndefined<Record<__pg_core_codecs_ts0.PostgresType, Codec>>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pgliteCodecs };
|
|
9
|
+
//# sourceMappingURL=codecs.d.cts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Codec } from "../codecs.js";
|
|
2
|
+
import * as __utils_ts0 from "../utils.js";
|
|
3
|
+
import * as __pg_core_codecs_ts0 from "../pg-core/codecs.js";
|
|
4
|
+
|
|
5
|
+
//#region src/pglite/codecs.d.ts
|
|
6
|
+
declare const pgliteCodecs: __utils_ts0.PartialWithUndefined<Record<__pg_core_codecs_ts0.PostgresType, Codec>>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pgliteCodecs };
|
|
9
|
+
//# sourceMappingURL=codecs.d.ts.map
|
package/pglite/codecs.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { base64ToUint8Array } from "../utils.js";
|
|
2
|
+
import { makePgArray, parsePgArray } from "../pg-core/array.js";
|
|
3
|
+
import { arrayCompatNormalize, castToText, castToTextArr, genericPgCodecs, parseGeometryTuple, parseGeometryXY, parsePgArrayAndNormalize, refineGenericPgCodecs, textToDate, textToDateWithTz } from "../pg-core/codecs.js";
|
|
4
|
+
|
|
5
|
+
//#region src/pglite/codecs.ts
|
|
6
|
+
const pgliteCodecs = refineGenericPgCodecs({
|
|
7
|
+
bigint: {
|
|
8
|
+
cast: castToText,
|
|
9
|
+
castArray: castToTextArr,
|
|
10
|
+
normalize: BigInt,
|
|
11
|
+
normalizeArray: arrayCompatNormalize(BigInt)
|
|
12
|
+
},
|
|
13
|
+
"bigint:string": {
|
|
14
|
+
cast: castToText,
|
|
15
|
+
castArray: castToTextArr
|
|
16
|
+
},
|
|
17
|
+
"bigint:number": {
|
|
18
|
+
cast: castToText,
|
|
19
|
+
castArray: castToTextArr
|
|
20
|
+
},
|
|
21
|
+
bigserial: {
|
|
22
|
+
normalize: BigInt,
|
|
23
|
+
normalizeArray: arrayCompatNormalize(BigInt),
|
|
24
|
+
cast: castToText,
|
|
25
|
+
castArray: castToTextArr
|
|
26
|
+
},
|
|
27
|
+
"bigserial:number": {
|
|
28
|
+
cast: castToText,
|
|
29
|
+
castArray: castToTextArr
|
|
30
|
+
},
|
|
31
|
+
bytea: {
|
|
32
|
+
normalizeInJson: typeof Buffer === "undefined" ? base64ToUint8Array : genericPgCodecs.bytea?.normalizeInJson,
|
|
33
|
+
normalizeArrayInJson: typeof Buffer === "undefined" ? arrayCompatNormalize(base64ToUint8Array) : genericPgCodecs.bytea?.normalizeArrayInJson,
|
|
34
|
+
normalize: typeof Buffer === "undefined" ? void 0 : (v) => Buffer.from(v),
|
|
35
|
+
normalizeArray: typeof Buffer === "undefined" ? void 0 : arrayCompatNormalize((v) => Buffer.from(v))
|
|
36
|
+
},
|
|
37
|
+
interval: { castArray: castToTextArr },
|
|
38
|
+
date: {
|
|
39
|
+
castArray: castToTextArr,
|
|
40
|
+
normalize: textToDate,
|
|
41
|
+
normalizeArray: arrayCompatNormalize(textToDate)
|
|
42
|
+
},
|
|
43
|
+
"date:string": { castArray: castToTextArr },
|
|
44
|
+
timestamp: {
|
|
45
|
+
castArray: castToTextArr,
|
|
46
|
+
normalize: textToDateWithTz,
|
|
47
|
+
normalizeArray: arrayCompatNormalize(textToDateWithTz)
|
|
48
|
+
},
|
|
49
|
+
timestamptz: {
|
|
50
|
+
castArray: castToTextArr,
|
|
51
|
+
normalize: textToDate,
|
|
52
|
+
normalizeArray: arrayCompatNormalize(textToDate)
|
|
53
|
+
},
|
|
54
|
+
"timestamp:string": { castArray: castToTextArr },
|
|
55
|
+
"timestamptz:string": { castArray: castToTextArr },
|
|
56
|
+
json: { normalizeParam: (v) => typeof v === "object" ? v : JSON.stringify(v) },
|
|
57
|
+
jsonb: { normalizeParam: (v) => typeof v === "object" ? v : JSON.stringify(v) },
|
|
58
|
+
geometry: {
|
|
59
|
+
normalizeArray: parsePgArrayAndNormalize(parseGeometryXY),
|
|
60
|
+
castParam: (name) => `${name}::geometry`,
|
|
61
|
+
castArrayParam: (name, dimensions) => `${name}::geometry${"[]".repeat(dimensions)}`,
|
|
62
|
+
normalizeParamArray: makePgArray
|
|
63
|
+
},
|
|
64
|
+
"geometry:tuple": {
|
|
65
|
+
normalizeArray: parsePgArrayAndNormalize(parseGeometryTuple),
|
|
66
|
+
castParam: (name) => `${name}::geometry`,
|
|
67
|
+
castArrayParam: (name, dimensions) => `${name}::geometry${"[]".repeat(dimensions)}`,
|
|
68
|
+
normalizeParamArray: makePgArray
|
|
69
|
+
},
|
|
70
|
+
halfvec: {
|
|
71
|
+
castParam: (name) => `${name}::halfvec`,
|
|
72
|
+
castArrayParam: (name, dimensions) => `${name}::halfvec${"[]".repeat(dimensions)}`,
|
|
73
|
+
normalizeParamArray: makePgArray
|
|
74
|
+
},
|
|
75
|
+
vector: {
|
|
76
|
+
castParam: (name) => `${name}::vector`,
|
|
77
|
+
castArrayParam: (name, dimensions) => `${name}::vector${"[]".repeat(dimensions)}`,
|
|
78
|
+
normalizeParamArray: makePgArray
|
|
79
|
+
},
|
|
80
|
+
sparsevec: {
|
|
81
|
+
normalizeArray: parsePgArray,
|
|
82
|
+
castParam: (name) => `${name}::sparsevec`,
|
|
83
|
+
castArrayParam: (name, dimensions) => `${name}::sparsevec${"[]".repeat(dimensions)}`,
|
|
84
|
+
normalizeParamArray: makePgArray
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
//#endregion
|
|
89
|
+
export { pgliteCodecs };
|
|
90
|
+
//# sourceMappingURL=codecs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs.js","names":[],"sources":["../../src/pglite/codecs.ts"],"sourcesContent":["import { makePgArray, parsePgArray } from '~/pg-core/array.ts';\nimport {\n\tarrayCompatNormalize,\n\tcastToText,\n\tcastToTextArr,\n\tgenericPgCodecs,\n\tparseGeometryTuple,\n\tparseGeometryXY,\n\tparsePgArrayAndNormalize,\n\trefineGenericPgCodecs,\n\ttextToDate,\n\ttextToDateWithTz,\n} from '~/pg-core/codecs.ts';\nimport { base64ToUint8Array } from '~/utils.ts';\n\nexport const pgliteCodecs = refineGenericPgCodecs({\n\t// Otherwise outputs are inconsistent\n\tbigint: {\n\t\tcast: castToText,\n\t\tcastArray: castToTextArr,\n\t\tnormalize: BigInt,\n\t\tnormalizeArray: arrayCompatNormalize(BigInt),\n\t},\n\t// Otherwise outputs are inconsistent\n\t'bigint:string': {\n\t\tcast: castToText,\n\t\tcastArray: castToTextArr,\n\t},\n\t// Otherwise outputs are inconsistent\n\t'bigint:number': {\n\t\tcast: castToText,\n\t\tcastArray: castToTextArr,\n\t},\n\t// Otherwise outputs are inconsistent\n\tbigserial: {\n\t\tnormalize: BigInt,\n\t\tnormalizeArray: arrayCompatNormalize(BigInt),\n\t\tcast: castToText,\n\t\tcastArray: castToTextArr,\n\t},\n\t// Otherwise outputs are inconsistent\n\t'bigserial:number': {\n\t\tcast: castToText,\n\t\tcastArray: castToTextArr,\n\t},\n\tbytea: {\n\t\tnormalizeInJson: typeof Buffer === 'undefined' ? base64ToUint8Array : genericPgCodecs.bytea?.normalizeInJson,\n\t\tnormalizeArrayInJson: typeof Buffer === 'undefined'\n\t\t\t? arrayCompatNormalize(base64ToUint8Array)\n\t\t\t: genericPgCodecs.bytea?.normalizeArrayInJson,\n\t\tnormalize: typeof Buffer === 'undefined'\n\t\t\t? undefined\n\t\t\t: (v: Uint8Array) => Buffer.from(v),\n\t\tnormalizeArray: typeof Buffer === 'undefined'\n\t\t\t? undefined\n\t\t\t: arrayCompatNormalize((v: Uint8Array) => Buffer.from(v)),\n\t},\n\tinterval: {\n\t\tcastArray: castToTextArr,\n\t},\n\tdate: {\n\t\tcastArray: castToTextArr,\n\t\tnormalize: textToDate,\n\t\tnormalizeArray: arrayCompatNormalize(textToDate),\n\t},\n\t'date:string': {\n\t\tcastArray: castToTextArr,\n\t},\n\ttimestamp: {\n\t\tcastArray: castToTextArr,\n\t\tnormalize: textToDateWithTz,\n\t\tnormalizeArray: arrayCompatNormalize(textToDateWithTz),\n\t},\n\ttimestamptz: {\n\t\tcastArray: castToTextArr,\n\t\tnormalize: textToDate,\n\t\tnormalizeArray: arrayCompatNormalize(textToDate),\n\t},\n\t'timestamp:string': {\n\t\tcastArray: castToTextArr,\n\t},\n\t'timestamptz:string': {\n\t\tcastArray: castToTextArr,\n\t},\n\tjson: {\n\t\t// Driver handles objects, other types need to be stringified\n\t\tnormalizeParam: (v) => typeof v === 'object' ? v : JSON.stringify(v),\n\t},\n\tjsonb: {\n\t\t// Driver handles objects, other types need to be stringified\n\t\tnormalizeParam: (v) => typeof v === 'object' ? v : JSON.stringify(v),\n\t},\n\tgeometry: {\n\t\tnormalizeArray: parsePgArrayAndNormalize(parseGeometryXY),\n\t\tcastParam: (name) => `${name}::geometry`,\n\t\tcastArrayParam: (name, dimensions) => `${name}::geometry${'[]'.repeat(dimensions)}`,\n\t\tnormalizeParamArray: makePgArray,\n\t},\n\t'geometry:tuple': {\n\t\tnormalizeArray: parsePgArrayAndNormalize(parseGeometryTuple),\n\t\tcastParam: (name) => `${name}::geometry`,\n\t\tcastArrayParam: (name, dimensions) => `${name}::geometry${'[]'.repeat(dimensions)}`,\n\t\tnormalizeParamArray: makePgArray,\n\t},\n\thalfvec: {\n\t\tcastParam: (name) => `${name}::halfvec`,\n\t\tcastArrayParam: (name, dimensions) => `${name}::halfvec${'[]'.repeat(dimensions)}`,\n\t\tnormalizeParamArray: makePgArray,\n\t},\n\tvector: {\n\t\tcastParam: (name) => `${name}::vector`,\n\t\tcastArrayParam: (name, dimensions) => `${name}::vector${'[]'.repeat(dimensions)}`,\n\t\tnormalizeParamArray: makePgArray,\n\t},\n\tsparsevec: {\n\t\tnormalizeArray: parsePgArray,\n\t\tcastParam: (name) => `${name}::sparsevec`,\n\t\tcastArrayParam: (name, dimensions) => `${name}::sparsevec${'[]'.repeat(dimensions)}`,\n\t\tnormalizeParamArray: makePgArray,\n\t},\n});\n"],"mappings":";;;;;AAeA,MAAa,eAAe,sBAAsB;CAEjD,QAAQ;EACP,MAAM;EACN,WAAW;EACX,WAAW;EACX,gBAAgB,qBAAqB,OAAO;EAC5C;CAED,iBAAiB;EAChB,MAAM;EACN,WAAW;EACX;CAED,iBAAiB;EAChB,MAAM;EACN,WAAW;EACX;CAED,WAAW;EACV,WAAW;EACX,gBAAgB,qBAAqB,OAAO;EAC5C,MAAM;EACN,WAAW;EACX;CAED,oBAAoB;EACnB,MAAM;EACN,WAAW;EACX;CACD,OAAO;EACN,iBAAiB,OAAO,WAAW,cAAc,qBAAqB,gBAAgB,OAAO;EAC7F,sBAAsB,OAAO,WAAW,cACrC,qBAAqB,mBAAmB,GACxC,gBAAgB,OAAO;EAC1B,WAAW,OAAO,WAAW,cAC1B,UACC,MAAkB,OAAO,KAAK,EAAE;EACpC,gBAAgB,OAAO,WAAW,cAC/B,SACA,sBAAsB,MAAkB,OAAO,KAAK,EAAE,CAAC;EAC1D;CACD,UAAU,EACT,WAAW,eACX;CACD,MAAM;EACL,WAAW;EACX,WAAW;EACX,gBAAgB,qBAAqB,WAAW;EAChD;CACD,eAAe,EACd,WAAW,eACX;CACD,WAAW;EACV,WAAW;EACX,WAAW;EACX,gBAAgB,qBAAqB,iBAAiB;EACtD;CACD,aAAa;EACZ,WAAW;EACX,WAAW;EACX,gBAAgB,qBAAqB,WAAW;EAChD;CACD,oBAAoB,EACnB,WAAW,eACX;CACD,sBAAsB,EACrB,WAAW,eACX;CACD,MAAM,EAEL,iBAAiB,MAAM,OAAO,MAAM,WAAW,IAAI,KAAK,UAAU,EAAE,EACpE;CACD,OAAO,EAEN,iBAAiB,MAAM,OAAO,MAAM,WAAW,IAAI,KAAK,UAAU,EAAE,EACpE;CACD,UAAU;EACT,gBAAgB,yBAAyB,gBAAgB;EACzD,YAAY,SAAS,GAAG,KAAK;EAC7B,iBAAiB,MAAM,eAAe,GAAG,KAAK,YAAY,KAAK,OAAO,WAAW;EACjF,qBAAqB;EACrB;CACD,kBAAkB;EACjB,gBAAgB,yBAAyB,mBAAmB;EAC5D,YAAY,SAAS,GAAG,KAAK;EAC7B,iBAAiB,MAAM,eAAe,GAAG,KAAK,YAAY,KAAK,OAAO,WAAW;EACjF,qBAAqB;EACrB;CACD,SAAS;EACR,YAAY,SAAS,GAAG,KAAK;EAC7B,iBAAiB,MAAM,eAAe,GAAG,KAAK,WAAW,KAAK,OAAO,WAAW;EAChF,qBAAqB;EACrB;CACD,QAAQ;EACP,YAAY,SAAS,GAAG,KAAK;EAC7B,iBAAiB,MAAM,eAAe,GAAG,KAAK,UAAU,KAAK,OAAO,WAAW;EAC/E,qBAAqB;EACrB;CACD,WAAW;EACV,gBAAgB;EAChB,YAAY,SAAS,GAAG,KAAK;EAC7B,iBAAiB,MAAM,eAAe,GAAG,KAAK,aAAa,KAAK,OAAO,WAAW;EAClF,qBAAqB;EACrB;CACD,CAAC"}
|