drizzle-orm 0.39.2-aaa57ff → 0.39.2-eba7324
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/alias.cjs.map +1 -1
- package/alias.d.cts +3 -3
- package/alias.d.ts +3 -3
- package/alias.js.map +1 -1
- package/aws-data-api/pg/driver.cjs +5 -19
- package/aws-data-api/pg/driver.cjs.map +1 -1
- package/aws-data-api/pg/driver.d.cts +8 -9
- package/aws-data-api/pg/driver.d.ts +8 -9
- package/aws-data-api/pg/driver.js +8 -9
- package/aws-data-api/pg/driver.js.map +1 -1
- package/aws-data-api/pg/migrator.cjs.map +1 -1
- package/aws-data-api/pg/migrator.d.cts +1 -2
- package/aws-data-api/pg/migrator.d.ts +1 -2
- package/aws-data-api/pg/migrator.js.map +1 -1
- package/aws-data-api/pg/session.cjs +4 -67
- package/aws-data-api/pg/session.cjs.map +1 -1
- package/aws-data-api/pg/session.d.cts +8 -13
- package/aws-data-api/pg/session.d.ts +8 -13
- package/aws-data-api/pg/session.js +4 -67
- package/aws-data-api/pg/session.js.map +1 -1
- package/better-sqlite3/driver.cjs +5 -12
- package/better-sqlite3/driver.cjs.map +1 -1
- package/better-sqlite3/driver.d.cts +6 -7
- package/better-sqlite3/driver.d.ts +6 -7
- package/better-sqlite3/driver.js +8 -12
- package/better-sqlite3/driver.js.map +1 -1
- package/better-sqlite3/migrator.cjs.map +1 -1
- package/better-sqlite3/migrator.d.cts +1 -2
- package/better-sqlite3/migrator.d.ts +1 -2
- package/better-sqlite3/migrator.js.map +1 -1
- package/better-sqlite3/session.cjs +4 -49
- package/better-sqlite3/session.cjs.map +1 -1
- package/better-sqlite3/session.d.cts +8 -14
- package/better-sqlite3/session.d.ts +8 -14
- package/better-sqlite3/session.js +4 -49
- package/better-sqlite3/session.js.map +1 -1
- package/bun-sql/driver.cjs +5 -16
- package/bun-sql/driver.cjs.map +1 -1
- package/bun-sql/driver.d.cts +6 -7
- package/bun-sql/driver.d.ts +6 -7
- package/bun-sql/driver.js +8 -6
- package/bun-sql/driver.js.map +1 -1
- package/bun-sql/migrator.cjs.map +1 -1
- package/bun-sql/migrator.d.cts +1 -2
- package/bun-sql/migrator.d.ts +1 -2
- package/bun-sql/migrator.js.map +1 -1
- package/bun-sql/session.cjs +6 -50
- package/bun-sql/session.cjs.map +1 -1
- package/bun-sql/session.d.cts +9 -14
- package/bun-sql/session.d.ts +9 -14
- package/bun-sql/session.js +6 -50
- package/bun-sql/session.js.map +1 -1
- package/bun-sqlite/driver.cjs +5 -22
- package/bun-sqlite/driver.cjs.map +1 -1
- package/bun-sqlite/driver.d.cts +6 -7
- package/bun-sqlite/driver.d.ts +6 -7
- package/bun-sqlite/driver.js +8 -12
- package/bun-sqlite/driver.js.map +1 -1
- package/bun-sqlite/migrator.cjs.map +1 -1
- package/bun-sqlite/migrator.d.cts +1 -2
- package/bun-sqlite/migrator.d.ts +1 -2
- package/bun-sqlite/migrator.js.map +1 -1
- package/bun-sqlite/session.cjs +4 -49
- package/bun-sqlite/session.cjs.map +1 -1
- package/bun-sqlite/session.d.cts +8 -14
- package/bun-sqlite/session.d.ts +8 -14
- package/bun-sqlite/session.js +4 -49
- package/bun-sqlite/session.js.map +1 -1
- package/column-builder.cjs.map +1 -1
- package/column-builder.d.cts +6 -5
- package/column-builder.d.ts +6 -5
- package/column-builder.js.map +1 -1
- package/d1/driver.cjs +5 -22
- package/d1/driver.cjs.map +1 -1
- package/d1/driver.d.cts +2 -3
- package/d1/driver.d.ts +2 -3
- package/d1/driver.js +8 -12
- package/d1/driver.js.map +1 -1
- package/d1/migrator.cjs.map +1 -1
- package/d1/migrator.d.cts +1 -2
- package/d1/migrator.d.ts +1 -2
- package/d1/migrator.js.map +1 -1
- package/d1/session.cjs +8 -50
- package/d1/session.cjs.map +1 -1
- package/d1/session.d.cts +8 -15
- package/d1/session.d.ts +8 -15
- package/d1/session.js +8 -50
- package/d1/session.js.map +1 -1
- package/durable-sqlite/driver.cjs +5 -16
- package/durable-sqlite/driver.cjs.map +1 -1
- package/durable-sqlite/driver.d.cts +2 -3
- package/durable-sqlite/driver.d.ts +2 -3
- package/durable-sqlite/driver.js +8 -6
- package/durable-sqlite/driver.js.map +1 -1
- package/durable-sqlite/migrator.cjs.map +1 -1
- package/durable-sqlite/migrator.d.cts +1 -2
- package/durable-sqlite/migrator.d.ts +1 -2
- package/durable-sqlite/migrator.js.map +1 -1
- package/durable-sqlite/session.cjs +4 -46
- package/durable-sqlite/session.cjs.map +1 -1
- package/durable-sqlite/session.d.cts +8 -14
- package/durable-sqlite/session.d.ts +8 -14
- package/durable-sqlite/session.js +4 -46
- package/durable-sqlite/session.js.map +1 -1
- package/expo-sqlite/driver.cjs +5 -22
- package/expo-sqlite/driver.cjs.map +1 -1
- package/expo-sqlite/driver.d.cts +2 -3
- package/expo-sqlite/driver.d.ts +2 -3
- package/expo-sqlite/driver.js +8 -12
- package/expo-sqlite/driver.js.map +1 -1
- package/expo-sqlite/migrator.cjs.map +1 -1
- package/expo-sqlite/migrator.d.cts +2 -3
- package/expo-sqlite/migrator.d.ts +2 -3
- package/expo-sqlite/migrator.js.map +1 -1
- package/expo-sqlite/query.cjs +2 -13
- package/expo-sqlite/query.cjs.map +1 -1
- package/expo-sqlite/query.d.cts +1 -2
- package/expo-sqlite/query.d.ts +1 -2
- package/expo-sqlite/query.js +2 -3
- package/expo-sqlite/query.js.map +1 -1
- package/expo-sqlite/session.cjs +4 -47
- package/expo-sqlite/session.cjs.map +1 -1
- package/expo-sqlite/session.d.cts +8 -14
- package/expo-sqlite/session.d.ts +8 -14
- package/expo-sqlite/session.js +4 -47
- package/expo-sqlite/session.js.map +1 -1
- package/gel/driver.cjs +97 -0
- package/gel/driver.cjs.map +1 -0
- package/gel/driver.d.cts +38 -0
- package/gel/driver.d.ts +38 -0
- package/gel/driver.js +74 -0
- package/gel/driver.js.map +1 -0
- package/gel/index.cjs +25 -0
- package/gel/index.cjs.map +1 -0
- package/gel/index.d.cts +2 -0
- package/gel/index.d.ts +2 -0
- package/gel/index.js +3 -0
- package/gel/index.js.map +1 -0
- package/gel/migrator.cjs +5 -0
- package/gel/migrator.cjs.map +1 -0
- package/gel/migrator.d.cts +1 -0
- package/gel/migrator.d.ts +1 -0
- package/gel/migrator.js +4 -0
- package/gel/migrator.js.map +1 -0
- package/gel/session.cjs +139 -0
- package/gel/session.cjs.map +1 -0
- package/gel/session.d.cts +47 -0
- package/gel/session.d.ts +47 -0
- package/gel/session.js +113 -0
- package/gel/session.js.map +1 -0
- package/gel-core/alias.cjs +32 -0
- package/gel-core/alias.cjs.map +1 -0
- package/gel-core/alias.d.cts +4 -0
- package/gel-core/alias.d.ts +4 -0
- package/gel-core/alias.js +8 -0
- package/gel-core/alias.js.map +1 -0
- package/gel-core/checks.cjs +58 -0
- package/gel-core/checks.cjs.map +1 -0
- package/gel-core/checks.d.cts +18 -0
- package/gel-core/checks.d.ts +18 -0
- package/gel-core/checks.js +32 -0
- package/gel-core/checks.js.map +1 -0
- package/gel-core/columns/all.cjs +72 -0
- package/gel-core/columns/all.cjs.map +1 -0
- package/gel-core/columns/all.d.cts +43 -0
- package/gel-core/columns/all.d.ts +43 -0
- package/gel-core/columns/all.js +48 -0
- package/gel-core/columns/all.js.map +1 -0
- package/gel-core/columns/bigint.cjs +54 -0
- package/gel-core/columns/bigint.cjs.map +1 -0
- package/gel-core/columns/bigint.d.cts +23 -0
- package/gel-core/columns/bigint.d.ts +23 -0
- package/gel-core/columns/bigint.js +28 -0
- package/gel-core/columns/bigint.js.map +1 -0
- package/gel-core/columns/bigintT.cjs +60 -0
- package/gel-core/columns/bigintT.cjs.map +1 -0
- package/gel-core/columns/bigintT.d.cts +24 -0
- package/gel-core/columns/bigintT.d.ts +24 -0
- package/gel-core/columns/bigintT.js +34 -0
- package/gel-core/columns/bigintT.js.map +1 -0
- package/gel-core/columns/boolean.cjs +53 -0
- package/gel-core/columns/boolean.cjs.map +1 -0
- package/gel-core/columns/boolean.d.cts +22 -0
- package/gel-core/columns/boolean.d.ts +22 -0
- package/gel-core/columns/boolean.js +27 -0
- package/gel-core/columns/boolean.js.map +1 -0
- package/gel-core/columns/bytes.cjs +56 -0
- package/gel-core/columns/bytes.cjs.map +1 -0
- package/gel-core/columns/bytes.d.cts +22 -0
- package/gel-core/columns/bytes.d.ts +22 -0
- package/gel-core/columns/bytes.js +30 -0
- package/gel-core/columns/bytes.js.map +1 -0
- package/gel-core/columns/common.cjs +213 -0
- package/gel-core/columns/common.cjs.map +1 -0
- package/gel-core/columns/common.d.cts +147 -0
- package/gel-core/columns/common.d.ts +147 -0
- package/gel-core/columns/common.js +184 -0
- package/gel-core/columns/common.js.map +1 -0
- package/gel-core/columns/custom.cjs +77 -0
- package/gel-core/columns/custom.cjs.map +1 -0
- package/gel-core/columns/custom.d.cts +155 -0
- package/gel-core/columns/custom.d.ts +155 -0
- package/gel-core/columns/custom.js +51 -0
- package/gel-core/columns/custom.js.map +1 -0
- package/gel-core/columns/date-duration.cjs +56 -0
- package/gel-core/columns/date-duration.cjs.map +1 -0
- package/gel-core/columns/date-duration.d.cts +23 -0
- package/gel-core/columns/date-duration.d.ts +23 -0
- package/gel-core/columns/date-duration.js +30 -0
- package/gel-core/columns/date-duration.js.map +1 -0
- package/gel-core/columns/date.common.cjs +37 -0
- package/gel-core/columns/date.common.cjs.map +1 -0
- package/gel-core/columns/date.common.d.cts +7 -0
- package/gel-core/columns/date.common.d.ts +7 -0
- package/gel-core/columns/date.common.js +13 -0
- package/gel-core/columns/date.common.js.map +1 -0
- package/gel-core/columns/decimal.cjs +56 -0
- package/gel-core/columns/decimal.cjs.map +1 -0
- package/gel-core/columns/decimal.d.cts +26 -0
- package/gel-core/columns/decimal.d.ts +26 -0
- package/gel-core/columns/decimal.js +30 -0
- package/gel-core/columns/decimal.js.map +1 -0
- package/gel-core/columns/double-precision.cjs +62 -0
- package/gel-core/columns/double-precision.cjs.map +1 -0
- package/gel-core/columns/double-precision.d.cts +23 -0
- package/gel-core/columns/double-precision.d.ts +23 -0
- package/gel-core/columns/double-precision.js +36 -0
- package/gel-core/columns/double-precision.js.map +1 -0
- package/gel-core/columns/duration.cjs +53 -0
- package/gel-core/columns/duration.cjs.map +1 -0
- package/gel-core/columns/duration.d.cts +23 -0
- package/gel-core/columns/duration.d.ts +23 -0
- package/gel-core/columns/duration.js +27 -0
- package/gel-core/columns/duration.js.map +1 -0
- package/gel-core/columns/index.cjs +65 -0
- package/gel-core/columns/index.cjs.map +1 -0
- package/gel-core/columns/index.d.cts +22 -0
- package/gel-core/columns/index.d.ts +22 -0
- package/gel-core/columns/index.js +23 -0
- package/gel-core/columns/index.js.map +1 -0
- package/gel-core/columns/int.common.cjs +67 -0
- package/gel-core/columns/int.common.cjs.map +1 -0
- package/gel-core/columns/int.common.d.cts +15 -0
- package/gel-core/columns/int.common.d.ts +15 -0
- package/gel-core/columns/int.common.js +43 -0
- package/gel-core/columns/int.common.js.map +1 -0
- package/gel-core/columns/integer.cjs +54 -0
- package/gel-core/columns/integer.cjs.map +1 -0
- package/gel-core/columns/integer.d.cts +23 -0
- package/gel-core/columns/integer.d.ts +23 -0
- package/gel-core/columns/integer.js +28 -0
- package/gel-core/columns/integer.js.map +1 -0
- package/gel-core/columns/json.cjs +56 -0
- package/gel-core/columns/json.cjs.map +1 -0
- package/gel-core/columns/json.d.cts +26 -0
- package/gel-core/columns/json.d.ts +26 -0
- package/gel-core/columns/json.js +30 -0
- package/gel-core/columns/json.js.map +1 -0
- package/gel-core/columns/localdate.cjs +57 -0
- package/gel-core/columns/localdate.cjs.map +1 -0
- package/gel-core/columns/localdate.d.cts +24 -0
- package/gel-core/columns/localdate.d.ts +24 -0
- package/gel-core/columns/localdate.js +31 -0
- package/gel-core/columns/localdate.js.map +1 -0
- package/gel-core/columns/localtime.cjs +57 -0
- package/gel-core/columns/localtime.cjs.map +1 -0
- package/gel-core/columns/localtime.d.cts +24 -0
- package/gel-core/columns/localtime.d.ts +24 -0
- package/gel-core/columns/localtime.js +31 -0
- package/gel-core/columns/localtime.js.map +1 -0
- package/gel-core/columns/real.cjs +57 -0
- package/gel-core/columns/real.cjs.map +1 -0
- package/gel-core/columns/real.d.cts +28 -0
- package/gel-core/columns/real.d.ts +28 -0
- package/gel-core/columns/real.js +31 -0
- package/gel-core/columns/real.js.map +1 -0
- package/gel-core/columns/relative-duration.cjs +56 -0
- package/gel-core/columns/relative-duration.cjs.map +1 -0
- package/gel-core/columns/relative-duration.d.cts +23 -0
- package/gel-core/columns/relative-duration.d.ts +23 -0
- package/gel-core/columns/relative-duration.js +30 -0
- package/gel-core/columns/relative-duration.js.map +1 -0
- package/gel-core/columns/smallint.cjs +54 -0
- package/gel-core/columns/smallint.cjs.map +1 -0
- package/gel-core/columns/smallint.d.cts +23 -0
- package/gel-core/columns/smallint.d.ts +23 -0
- package/gel-core/columns/smallint.js +28 -0
- package/gel-core/columns/smallint.js.map +1 -0
- package/gel-core/columns/text.cjs +54 -0
- package/gel-core/columns/text.cjs.map +1 -0
- package/gel-core/columns/text.d.cts +26 -0
- package/gel-core/columns/text.d.ts +26 -0
- package/gel-core/columns/text.js +28 -0
- package/gel-core/columns/text.js.map +1 -0
- package/gel-core/columns/timestamp.cjs +60 -0
- package/gel-core/columns/timestamp.cjs.map +1 -0
- package/gel-core/columns/timestamp.d.cts +28 -0
- package/gel-core/columns/timestamp.d.ts +28 -0
- package/gel-core/columns/timestamp.js +34 -0
- package/gel-core/columns/timestamp.js.map +1 -0
- package/gel-core/columns/timestamptz.cjs +60 -0
- package/gel-core/columns/timestamptz.cjs.map +1 -0
- package/gel-core/columns/timestamptz.d.cts +27 -0
- package/gel-core/columns/timestamptz.d.ts +27 -0
- package/gel-core/columns/timestamptz.js +34 -0
- package/gel-core/columns/timestamptz.js.map +1 -0
- package/gel-core/columns/uuid.cjs +53 -0
- package/gel-core/columns/uuid.cjs.map +1 -0
- package/gel-core/columns/uuid.d.cts +22 -0
- package/gel-core/columns/uuid.d.ts +22 -0
- package/gel-core/columns/uuid.js +27 -0
- package/gel-core/columns/uuid.js.map +1 -0
- package/gel-core/db.cjs +338 -0
- package/gel-core/db.cjs.map +1 -0
- package/gel-core/db.d.cts +281 -0
- package/gel-core/db.d.ts +281 -0
- package/gel-core/db.js +319 -0
- package/gel-core/db.js.map +1 -0
- package/gel-core/dialect.cjs +1142 -0
- package/gel-core/dialect.cjs.map +1 -0
- package/gel-core/dialect.d.cts +62 -0
- package/gel-core/dialect.d.ts +62 -0
- package/gel-core/dialect.js +1128 -0
- package/gel-core/dialect.js.map +1 -0
- package/gel-core/expressions.cjs +49 -0
- package/gel-core/expressions.cjs.map +1 -0
- package/gel-core/expressions.d.cts +8 -0
- package/gel-core/expressions.d.ts +8 -0
- package/gel-core/expressions.js +22 -0
- package/gel-core/expressions.js.map +1 -0
- package/gel-core/foreign-keys.cjs +100 -0
- package/gel-core/foreign-keys.cjs.map +1 -0
- package/gel-core/foreign-keys.d.cts +48 -0
- package/gel-core/foreign-keys.d.ts +48 -0
- package/gel-core/foreign-keys.js +74 -0
- package/gel-core/foreign-keys.js.map +1 -0
- package/gel-core/index.cjs +61 -0
- package/gel-core/index.cjs.map +1 -0
- package/gel-core/index.d.cts +20 -0
- package/gel-core/index.d.ts +20 -0
- package/gel-core/index.js +21 -0
- package/gel-core/index.js.map +1 -0
- package/gel-core/indexes.cjs +149 -0
- package/gel-core/indexes.cjs.map +1 -0
- package/gel-core/indexes.d.cts +79 -0
- package/gel-core/indexes.d.ts +79 -0
- package/gel-core/indexes.js +121 -0
- package/gel-core/indexes.js.map +1 -0
- package/gel-core/policies.cjs +58 -0
- package/gel-core/policies.cjs.map +1 -0
- package/gel-core/policies.d.cts +24 -0
- package/gel-core/policies.d.ts +24 -0
- package/gel-core/policies.js +33 -0
- package/gel-core/policies.js.map +1 -0
- package/gel-core/primary-keys.cjs +68 -0
- package/gel-core/primary-keys.cjs.map +1 -0
- package/gel-core/primary-keys.d.cts +30 -0
- package/gel-core/primary-keys.d.ts +30 -0
- package/gel-core/primary-keys.js +42 -0
- package/gel-core/primary-keys.js.map +1 -0
- package/gel-core/query-builders/count.cjs +73 -0
- package/gel-core/query-builders/count.cjs.map +1 -0
- package/gel-core/query-builders/count.d.cts +25 -0
- package/gel-core/query-builders/count.d.ts +25 -0
- package/gel-core/query-builders/count.js +49 -0
- package/gel-core/query-builders/count.js.map +1 -0
- package/gel-core/query-builders/delete.cjs +105 -0
- package/gel-core/query-builders/delete.cjs.map +1 -0
- package/gel-core/query-builders/delete.d.cts +99 -0
- package/gel-core/query-builders/delete.d.ts +99 -0
- package/gel-core/query-builders/delete.js +81 -0
- package/gel-core/query-builders/delete.js.map +1 -0
- package/gel-core/query-builders/index.cjs +35 -0
- package/gel-core/query-builders/index.cjs.map +1 -0
- package/gel-core/query-builders/index.d.cts +7 -0
- package/gel-core/query-builders/index.d.ts +7 -0
- package/gel-core/query-builders/index.js +8 -0
- package/gel-core/query-builders/index.js.map +1 -0
- package/gel-core/query-builders/insert.cjs +218 -0
- package/gel-core/query-builders/insert.cjs.map +1 -0
- package/gel-core/query-builders/insert.d.cts +116 -0
- package/gel-core/query-builders/insert.d.ts +116 -0
- package/gel-core/query-builders/insert.js +193 -0
- package/gel-core/query-builders/insert.js.map +1 -0
- package/gel-core/query-builders/query-builder.cjs +114 -0
- package/gel-core/query-builders/query-builder.cjs.map +1 -0
- package/gel-core/query-builders/query-builder.d.cts +40 -0
- package/gel-core/query-builders/query-builder.d.ts +40 -0
- package/gel-core/query-builders/query-builder.js +90 -0
- package/gel-core/query-builders/query-builder.js.map +1 -0
- package/{pg-core/query-builders/_query.cjs → gel-core/query-builders/query.cjs} +15 -31
- package/gel-core/query-builders/query.cjs.map +1 -0
- package/gel-core/query-builders/query.d.cts +46 -0
- package/gel-core/query-builders/query.d.ts +46 -0
- package/{pg-core/query-builders/_query.js → gel-core/query-builders/query.js} +15 -19
- package/gel-core/query-builders/query.js.map +1 -0
- package/gel-core/query-builders/raw.cjs +57 -0
- package/gel-core/query-builders/raw.cjs.map +1 -0
- package/gel-core/query-builders/raw.d.cts +22 -0
- package/gel-core/query-builders/raw.d.ts +22 -0
- package/gel-core/query-builders/raw.js +33 -0
- package/gel-core/query-builders/raw.js.map +1 -0
- package/gel-core/query-builders/refresh-materialized-view.cjs +77 -0
- package/gel-core/query-builders/refresh-materialized-view.cjs.map +1 -0
- package/gel-core/query-builders/refresh-materialized-view.d.cts +27 -0
- package/gel-core/query-builders/refresh-materialized-view.d.ts +27 -0
- package/gel-core/query-builders/refresh-materialized-view.js +53 -0
- package/gel-core/query-builders/refresh-materialized-view.js.map +1 -0
- package/gel-core/query-builders/select.cjs +775 -0
- package/gel-core/query-builders/select.cjs.map +1 -0
- package/gel-core/query-builders/select.d.cts +721 -0
- package/gel-core/query-builders/select.d.ts +721 -0
- package/gel-core/query-builders/select.js +748 -0
- package/gel-core/query-builders/select.js.map +1 -0
- package/gel-core/query-builders/select.types.cjs +17 -0
- package/gel-core/query-builders/select.types.cjs.map +1 -0
- package/gel-core/query-builders/select.types.d.cts +138 -0
- package/gel-core/query-builders/select.types.d.ts +138 -0
- package/gel-core/query-builders/select.types.js +1 -0
- package/gel-core/query-builders/select.types.js.map +1 -0
- package/gel-core/query-builders/update.cjs +226 -0
- package/gel-core/query-builders/update.cjs.map +1 -0
- package/gel-core/query-builders/update.d.cts +166 -0
- package/gel-core/query-builders/update.d.ts +166 -0
- package/gel-core/query-builders/update.js +205 -0
- package/gel-core/query-builders/update.js.map +1 -0
- package/gel-core/roles.cjs +57 -0
- package/gel-core/roles.cjs.map +1 -0
- package/gel-core/roles.d.cts +13 -0
- package/gel-core/roles.d.ts +13 -0
- package/gel-core/roles.js +32 -0
- package/gel-core/roles.js.map +1 -0
- package/gel-core/schema.cjs +74 -0
- package/gel-core/schema.cjs.map +1 -0
- package/gel-core/schema.d.cts +15 -0
- package/gel-core/schema.d.ts +15 -0
- package/gel-core/schema.js +48 -0
- package/gel-core/schema.js.map +1 -0
- package/gel-core/sequence.cjs +52 -0
- package/gel-core/sequence.cjs.map +1 -0
- package/gel-core/sequence.d.cts +18 -0
- package/gel-core/sequence.d.ts +18 -0
- package/gel-core/sequence.js +25 -0
- package/gel-core/sequence.js.map +1 -0
- package/gel-core/session.cjs +94 -0
- package/gel-core/session.cjs.map +1 -0
- package/gel-core/session.d.cts +56 -0
- package/gel-core/session.d.ts +56 -0
- package/gel-core/session.js +68 -0
- package/gel-core/session.js.map +1 -0
- package/gel-core/subquery.cjs +17 -0
- package/gel-core/subquery.cjs.map +1 -0
- package/gel-core/subquery.d.cts +5 -0
- package/gel-core/subquery.d.ts +5 -0
- package/gel-core/subquery.js +1 -0
- package/gel-core/subquery.js.map +1 -0
- package/gel-core/table.cjs +100 -0
- package/gel-core/table.cjs.map +1 -0
- package/gel-core/table.d.cts +95 -0
- package/gel-core/table.d.ts +95 -0
- package/gel-core/table.js +71 -0
- package/gel-core/table.js.map +1 -0
- package/gel-core/unique-constraint.cjs +89 -0
- package/gel-core/unique-constraint.cjs.map +1 -0
- package/gel-core/unique-constraint.d.cts +25 -0
- package/gel-core/unique-constraint.d.ts +25 -0
- package/gel-core/unique-constraint.js +61 -0
- package/gel-core/unique-constraint.js.map +1 -0
- package/gel-core/utils.cjs +100 -0
- package/gel-core/utils.cjs.map +1 -0
- package/gel-core/utils.d.cts +51 -0
- package/gel-core/utils.d.ts +51 -0
- package/gel-core/utils.js +74 -0
- package/gel-core/utils.js.map +1 -0
- package/gel-core/view-base.cjs +33 -0
- package/gel-core/view-base.cjs.map +1 -0
- package/gel-core/view-base.d.cts +8 -0
- package/gel-core/view-base.d.ts +8 -0
- package/gel-core/view-base.js +9 -0
- package/gel-core/view-base.js.map +1 -0
- package/gel-core/view-common.cjs +29 -0
- package/gel-core/view-common.cjs.map +1 -0
- package/gel-core/view-common.d.cts +1 -0
- package/gel-core/view-common.d.ts +1 -0
- package/gel-core/view-common.js +5 -0
- package/gel-core/view-common.js.map +1 -0
- package/gel-core/view.cjs +302 -0
- package/gel-core/view.cjs.map +1 -0
- package/gel-core/view.d.cts +150 -0
- package/gel-core/view.d.ts +150 -0
- package/gel-core/view.js +268 -0
- package/gel-core/view.js.map +1 -0
- package/libsql/driver-core.cjs +5 -22
- package/libsql/driver-core.cjs.map +1 -1
- package/libsql/driver-core.d.cts +1 -2
- package/libsql/driver-core.d.ts +1 -2
- package/libsql/driver-core.js +8 -12
- package/libsql/driver-core.js.map +1 -1
- package/libsql/driver.cjs.map +1 -1
- package/libsql/driver.d.cts +5 -6
- package/libsql/driver.d.ts +5 -6
- package/libsql/driver.js.map +1 -1
- package/libsql/http/index.cjs.map +1 -1
- package/libsql/http/index.d.cts +5 -6
- package/libsql/http/index.d.ts +5 -6
- package/libsql/http/index.js.map +1 -1
- package/libsql/migrator.cjs.map +1 -1
- package/libsql/migrator.d.cts +1 -2
- package/libsql/migrator.d.ts +1 -2
- package/libsql/migrator.js.map +1 -1
- package/libsql/node/index.cjs.map +1 -1
- package/libsql/node/index.d.cts +5 -6
- package/libsql/node/index.d.ts +5 -6
- package/libsql/node/index.js.map +1 -1
- package/libsql/session.cjs +4 -56
- package/libsql/session.cjs.map +1 -1
- package/libsql/session.d.cts +9 -15
- package/libsql/session.d.ts +9 -15
- package/libsql/session.js +4 -56
- package/libsql/session.js.map +1 -1
- package/libsql/sqlite3/index.cjs.map +1 -1
- package/libsql/sqlite3/index.d.cts +5 -6
- package/libsql/sqlite3/index.d.ts +5 -6
- package/libsql/sqlite3/index.js.map +1 -1
- package/libsql/wasm/index.cjs.map +1 -1
- package/libsql/wasm/index.d.cts +5 -6
- package/libsql/wasm/index.d.ts +5 -6
- package/libsql/wasm/index.js.map +1 -1
- package/libsql/web/index.cjs.map +1 -1
- package/libsql/web/index.d.cts +5 -6
- package/libsql/web/index.d.ts +5 -6
- package/libsql/web/index.js.map +1 -1
- package/libsql/ws/index.cjs.map +1 -1
- package/libsql/ws/index.d.cts +5 -6
- package/libsql/ws/index.d.ts +5 -6
- package/libsql/ws/index.js.map +1 -1
- package/mysql-core/db.cjs +6 -30
- package/mysql-core/db.cjs.map +1 -1
- package/mysql-core/db.d.cts +8 -15
- package/mysql-core/db.d.ts +8 -15
- package/mysql-core/db.js +5 -29
- package/mysql-core/db.js.map +1 -1
- package/mysql-core/dialect.cjs +15 -197
- package/mysql-core/dialect.cjs.map +1 -1
- package/mysql-core/dialect.d.cts +13 -36
- package/mysql-core/dialect.d.ts +13 -36
- package/mysql-core/dialect.js +22 -196
- package/mysql-core/dialect.js.map +1 -1
- package/mysql-core/query-builders/count.cjs.map +1 -1
- package/mysql-core/query-builders/count.d.cts +1 -1
- package/mysql-core/query-builders/count.d.ts +1 -1
- package/mysql-core/query-builders/count.js.map +1 -1
- package/mysql-core/query-builders/query.cjs +31 -18
- package/mysql-core/query-builders/query.cjs.map +1 -1
- package/mysql-core/query-builders/query.d.cts +10 -8
- package/mysql-core/query-builders/query.d.ts +10 -8
- package/mysql-core/query-builders/query.js +31 -18
- package/mysql-core/query-builders/query.js.map +1 -1
- package/mysql-core/session.cjs +2 -3
- package/mysql-core/session.cjs.map +1 -1
- package/mysql-core/session.d.cts +7 -10
- package/mysql-core/session.d.ts +7 -10
- package/mysql-core/session.js +2 -3
- package/mysql-core/session.js.map +1 -1
- package/mysql-proxy/driver.cjs +5 -22
- package/mysql-proxy/driver.cjs.map +1 -1
- package/mysql-proxy/driver.d.cts +2 -3
- package/mysql-proxy/driver.d.ts +2 -3
- package/mysql-proxy/driver.js +8 -12
- package/mysql-proxy/driver.js.map +1 -1
- package/mysql-proxy/migrator.cjs.map +1 -1
- package/mysql-proxy/migrator.d.cts +1 -2
- package/mysql-proxy/migrator.d.ts +1 -2
- package/mysql-proxy/migrator.js.map +1 -1
- package/mysql-proxy/session.cjs +2 -27
- package/mysql-proxy/session.cjs.map +1 -1
- package/mysql-proxy/session.d.cts +8 -13
- package/mysql-proxy/session.d.ts +8 -13
- package/mysql-proxy/session.js +2 -27
- package/mysql-proxy/session.js.map +1 -1
- package/mysql2/driver.cjs +7 -24
- package/mysql2/driver.cjs.map +1 -1
- package/mysql2/driver.d.cts +9 -10
- package/mysql2/driver.d.ts +9 -10
- package/mysql2/driver.js +10 -14
- package/mysql2/driver.js.map +1 -1
- package/mysql2/migrator.cjs.map +1 -1
- package/mysql2/migrator.d.cts +1 -2
- package/mysql2/migrator.d.ts +1 -2
- package/mysql2/migrator.js.map +1 -1
- package/mysql2/session.cjs +2 -30
- package/mysql2/session.cjs.map +1 -1
- package/mysql2/session.d.cts +8 -13
- package/mysql2/session.d.ts +8 -13
- package/mysql2/session.js +2 -30
- package/mysql2/session.js.map +1 -1
- package/neon-http/driver.cjs +7 -21
- package/neon-http/driver.cjs.map +1 -1
- package/neon-http/driver.d.cts +9 -10
- package/neon-http/driver.d.ts +9 -10
- package/neon-http/driver.js +7 -11
- package/neon-http/driver.js.map +1 -1
- package/neon-http/migrator.cjs.map +1 -1
- package/neon-http/migrator.d.cts +1 -2
- package/neon-http/migrator.d.ts +1 -2
- package/neon-http/migrator.js.map +1 -1
- package/neon-http/session.cjs +2 -32
- package/neon-http/session.cjs.map +1 -1
- package/neon-http/session.d.cts +8 -13
- package/neon-http/session.d.ts +8 -13
- package/neon-http/session.js +2 -32
- package/neon-http/session.js.map +1 -1
- package/neon-serverless/driver.cjs +7 -18
- package/neon-serverless/driver.cjs.map +1 -1
- package/neon-serverless/driver.d.cts +8 -9
- package/neon-serverless/driver.d.ts +8 -9
- package/neon-serverless/driver.js +10 -8
- package/neon-serverless/driver.js.map +1 -1
- package/neon-serverless/migrator.cjs.map +1 -1
- package/neon-serverless/migrator.d.cts +1 -2
- package/neon-serverless/migrator.d.ts +1 -2
- package/neon-serverless/migrator.js.map +1 -1
- package/neon-serverless/session.cjs +5 -40
- package/neon-serverless/session.cjs.map +1 -1
- package/neon-serverless/session.d.cts +8 -13
- package/neon-serverless/session.d.ts +8 -13
- package/neon-serverless/session.js +5 -40
- package/neon-serverless/session.js.map +1 -1
- package/node-postgres/driver.cjs +7 -13
- package/node-postgres/driver.cjs.map +1 -1
- package/node-postgres/driver.d.cts +8 -9
- package/node-postgres/driver.d.ts +8 -9
- package/node-postgres/driver.js +10 -13
- package/node-postgres/driver.js.map +1 -1
- package/node-postgres/migrator.cjs.map +1 -1
- package/node-postgres/migrator.d.cts +1 -2
- package/node-postgres/migrator.d.ts +1 -2
- package/node-postgres/migrator.js.map +1 -1
- package/node-postgres/session.cjs +4 -45
- package/node-postgres/session.cjs.map +1 -1
- package/node-postgres/session.d.cts +8 -13
- package/node-postgres/session.d.ts +8 -13
- package/node-postgres/session.js +4 -45
- package/node-postgres/session.js.map +1 -1
- package/op-sqlite/driver.cjs +5 -22
- package/op-sqlite/driver.cjs.map +1 -1
- package/op-sqlite/driver.d.cts +2 -3
- package/op-sqlite/driver.d.ts +2 -3
- package/op-sqlite/driver.js +8 -12
- package/op-sqlite/driver.js.map +1 -1
- package/op-sqlite/migrator.cjs.map +1 -1
- package/op-sqlite/migrator.d.cts +2 -3
- package/op-sqlite/migrator.d.ts +2 -3
- package/op-sqlite/migrator.js.map +1 -1
- package/op-sqlite/session.cjs +4 -47
- package/op-sqlite/session.cjs.map +1 -1
- package/op-sqlite/session.d.cts +8 -14
- package/op-sqlite/session.d.ts +8 -14
- package/op-sqlite/session.js +4 -47
- package/op-sqlite/session.js.map +1 -1
- package/package.json +784 -99
- package/pg-core/db.cjs +5 -32
- package/pg-core/db.cjs.map +1 -1
- package/pg-core/db.d.cts +9 -16
- package/pg-core/db.d.ts +9 -16
- package/pg-core/db.js +4 -31
- package/pg-core/db.js.map +1 -1
- package/pg-core/dialect.cjs +488 -173
- package/pg-core/dialect.cjs.map +1 -1
- package/pg-core/dialect.d.cts +8 -27
- package/pg-core/dialect.d.ts +8 -27
- package/pg-core/dialect.js +495 -172
- package/pg-core/dialect.js.map +1 -1
- package/pg-core/query-builders/count.cjs.map +1 -1
- package/pg-core/query-builders/count.d.cts +1 -1
- package/pg-core/query-builders/count.d.ts +1 -1
- package/pg-core/query-builders/count.js.map +1 -1
- package/pg-core/query-builders/query.cjs +18 -15
- package/pg-core/query-builders/query.cjs.map +1 -1
- package/pg-core/query-builders/query.d.cts +6 -6
- package/pg-core/query-builders/query.d.ts +6 -6
- package/pg-core/query-builders/query.js +18 -15
- package/pg-core/query-builders/query.js.map +1 -1
- package/pg-core/session.cjs +2 -3
- package/pg-core/session.cjs.map +1 -1
- package/pg-core/session.d.cts +6 -9
- package/pg-core/session.d.ts +6 -9
- package/pg-core/session.js +2 -3
- package/pg-core/session.js.map +1 -1
- package/pg-core/table.cjs +2 -0
- package/pg-core/table.cjs.map +1 -1
- package/pg-core/table.js +2 -0
- package/pg-core/table.js.map +1 -1
- package/pg-proxy/driver.cjs +5 -21
- package/pg-proxy/driver.cjs.map +1 -1
- package/pg-proxy/driver.d.cts +2 -3
- package/pg-proxy/driver.d.ts +2 -3
- package/pg-proxy/driver.js +8 -11
- package/pg-proxy/driver.js.map +1 -1
- package/pg-proxy/migrator.cjs.map +1 -1
- package/pg-proxy/migrator.d.cts +1 -2
- package/pg-proxy/migrator.d.ts +1 -2
- package/pg-proxy/migrator.js.map +1 -1
- package/pg-proxy/session.cjs +2 -37
- package/pg-proxy/session.cjs.map +1 -1
- package/pg-proxy/session.d.cts +8 -13
- package/pg-proxy/session.d.ts +8 -13
- package/pg-proxy/session.js +2 -37
- package/pg-proxy/session.js.map +1 -1
- package/pglite/driver.cjs +7 -23
- package/pglite/driver.cjs.map +1 -1
- package/pglite/driver.d.cts +8 -9
- package/pglite/driver.d.ts +8 -9
- package/pglite/driver.js +10 -13
- package/pglite/driver.js.map +1 -1
- package/pglite/migrator.cjs.map +1 -1
- package/pglite/migrator.d.cts +1 -2
- package/pglite/migrator.d.ts +1 -2
- package/pglite/migrator.js.map +1 -1
- package/pglite/session.cjs +3 -34
- package/pglite/session.cjs.map +1 -1
- package/pglite/session.d.cts +8 -13
- package/pglite/session.d.ts +8 -13
- package/pglite/session.js +3 -34
- package/pglite/session.js.map +1 -1
- package/planetscale-serverless/driver.cjs +5 -22
- package/planetscale-serverless/driver.cjs.map +1 -1
- package/planetscale-serverless/driver.d.cts +6 -7
- package/planetscale-serverless/driver.d.ts +6 -7
- package/planetscale-serverless/driver.js +8 -12
- package/planetscale-serverless/driver.js.map +1 -1
- package/planetscale-serverless/migrator.cjs.map +1 -1
- package/planetscale-serverless/migrator.d.cts +1 -2
- package/planetscale-serverless/migrator.d.ts +1 -2
- package/planetscale-serverless/migrator.js.map +1 -1
- package/planetscale-serverless/session.cjs +5 -45
- package/planetscale-serverless/session.cjs.map +1 -1
- package/planetscale-serverless/session.d.cts +9 -14
- package/planetscale-serverless/session.d.ts +9 -14
- package/planetscale-serverless/session.js +5 -45
- package/planetscale-serverless/session.js.map +1 -1
- package/postgres-js/driver.cjs +5 -6
- package/postgres-js/driver.cjs.map +1 -1
- package/postgres-js/driver.d.cts +6 -7
- package/postgres-js/driver.d.ts +6 -7
- package/postgres-js/driver.js +8 -6
- package/postgres-js/driver.js.map +1 -1
- package/postgres-js/migrator.cjs.map +1 -1
- package/postgres-js/migrator.d.cts +1 -2
- package/postgres-js/migrator.d.ts +1 -2
- package/postgres-js/migrator.js.map +1 -1
- package/postgres-js/session.cjs +6 -51
- package/postgres-js/session.cjs.map +1 -1
- package/postgres-js/session.d.cts +9 -15
- package/postgres-js/session.d.ts +9 -15
- package/postgres-js/session.js +6 -51
- package/postgres-js/session.js.map +1 -1
- package/prisma/mysql/driver.cjs +1 -1
- package/prisma/mysql/driver.cjs.map +1 -1
- package/prisma/mysql/driver.js +1 -1
- package/prisma/mysql/driver.js.map +1 -1
- package/prisma/mysql/session.cjs +0 -3
- package/prisma/mysql/session.cjs.map +1 -1
- package/prisma/mysql/session.d.cts +1 -3
- package/prisma/mysql/session.d.ts +1 -3
- package/prisma/mysql/session.js +0 -3
- package/prisma/mysql/session.js.map +1 -1
- package/prisma/pg/driver.cjs +1 -1
- package/prisma/pg/driver.cjs.map +1 -1
- package/prisma/pg/driver.js +1 -1
- package/prisma/pg/driver.js.map +1 -1
- package/prisma/pg/session.cjs +0 -3
- package/prisma/pg/session.cjs.map +1 -1
- package/prisma/pg/session.d.cts +1 -3
- package/prisma/pg/session.d.ts +1 -3
- package/prisma/pg/session.js +0 -3
- package/prisma/pg/session.js.map +1 -1
- package/prisma/sqlite/driver.cjs +1 -1
- package/prisma/sqlite/driver.cjs.map +1 -1
- package/prisma/sqlite/driver.js +1 -1
- package/prisma/sqlite/driver.js.map +1 -1
- package/prisma/sqlite/session.cjs +0 -3
- package/prisma/sqlite/session.cjs.map +1 -1
- package/prisma/sqlite/session.d.cts +2 -4
- package/prisma/sqlite/session.d.ts +2 -4
- package/prisma/sqlite/session.js +0 -3
- package/prisma/sqlite/session.js.map +1 -1
- package/relations.cjs +245 -596
- package/relations.cjs.map +1 -1
- package/relations.d.cts +140 -292
- package/relations.d.ts +140 -292
- package/relations.js +240 -589
- package/relations.js.map +1 -1
- package/singlestore/driver.cjs +1 -1
- 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 -3
- package/singlestore/driver.js.map +1 -1
- package/singlestore/session.cjs.map +1 -1
- package/singlestore/session.d.cts +4 -4
- package/singlestore/session.d.ts +4 -4
- package/singlestore/session.js.map +1 -1
- package/singlestore-core/db.cjs.map +1 -1
- package/singlestore-core/db.d.cts +3 -3
- package/singlestore-core/db.d.ts +3 -3
- package/singlestore-core/db.js.map +1 -1
- package/singlestore-core/dialect.cjs +6 -16
- package/singlestore-core/dialect.cjs.map +1 -1
- package/singlestore-core/dialect.d.cts +6 -6
- package/singlestore-core/dialect.d.ts +6 -6
- package/singlestore-core/dialect.js +12 -6
- package/singlestore-core/dialect.js.map +1 -1
- package/singlestore-core/query-builders/query.cjs +2 -12
- package/singlestore-core/query-builders/query.cjs.map +1 -1
- package/singlestore-core/query-builders/query.d.cts +6 -6
- package/singlestore-core/query-builders/query.d.ts +6 -6
- package/singlestore-core/query-builders/query.js +4 -2
- package/singlestore-core/query-builders/query.js.map +1 -1
- package/singlestore-core/session.cjs.map +1 -1
- package/singlestore-core/session.d.cts +5 -5
- package/singlestore-core/session.d.ts +5 -5
- package/singlestore-core/session.js.map +1 -1
- package/singlestore-proxy/driver.cjs +1 -1
- package/singlestore-proxy/driver.cjs.map +1 -1
- package/singlestore-proxy/driver.js +3 -3
- package/singlestore-proxy/driver.js.map +1 -1
- package/singlestore-proxy/session.cjs.map +1 -1
- package/singlestore-proxy/session.d.cts +4 -4
- package/singlestore-proxy/session.d.ts +4 -4
- package/singlestore-proxy/session.js.map +1 -1
- package/sql/expressions/conditions.cjs.map +1 -1
- package/sql/expressions/conditions.d.cts +4 -4
- package/sql/expressions/conditions.d.ts +4 -4
- package/sql/expressions/conditions.js.map +1 -1
- package/sql/sql.cjs +0 -21
- package/sql/sql.cjs.map +1 -1
- package/sql/sql.d.cts +8 -8
- package/sql/sql.d.ts +8 -8
- package/sql/sql.js +1 -22
- package/sql/sql.js.map +1 -1
- package/sql-js/driver.cjs +5 -16
- package/sql-js/driver.cjs.map +1 -1
- package/sql-js/driver.d.cts +2 -3
- package/sql-js/driver.d.ts +2 -3
- package/sql-js/driver.js +8 -6
- package/sql-js/driver.js.map +1 -1
- package/sql-js/migrator.cjs.map +1 -1
- package/sql-js/migrator.d.cts +1 -2
- package/sql-js/migrator.d.ts +1 -2
- package/sql-js/migrator.js.map +1 -1
- package/sql-js/session.cjs +36 -71
- package/sql-js/session.cjs.map +1 -1
- package/sql-js/session.d.cts +13 -16
- package/sql-js/session.d.ts +13 -16
- package/sql-js/session.js +36 -71
- package/sql-js/session.js.map +1 -1
- package/sqlite-core/db.cjs +12 -39
- package/sqlite-core/db.cjs.map +1 -1
- package/sqlite-core/db.d.cts +8 -16
- package/sqlite-core/db.d.ts +8 -16
- package/sqlite-core/db.js +11 -38
- package/sqlite-core/db.js.map +1 -1
- package/sqlite-core/dialect.cjs +7 -186
- package/sqlite-core/dialect.cjs.map +1 -1
- package/sqlite-core/dialect.d.cts +9 -31
- package/sqlite-core/dialect.d.ts +9 -31
- package/sqlite-core/dialect.js +14 -185
- package/sqlite-core/dialect.js.map +1 -1
- package/sqlite-core/query-builders/count.cjs.map +1 -1
- package/sqlite-core/query-builders/count.d.cts +1 -1
- package/sqlite-core/query-builders/count.d.ts +1 -1
- package/sqlite-core/query-builders/count.js.map +1 -1
- package/sqlite-core/query-builders/delete.cjs.map +1 -1
- package/sqlite-core/query-builders/delete.d.cts +1 -1
- package/sqlite-core/query-builders/delete.d.ts +1 -1
- package/sqlite-core/query-builders/delete.js.map +1 -1
- package/sqlite-core/query-builders/insert.cjs.map +1 -1
- package/sqlite-core/query-builders/insert.d.cts +3 -3
- package/sqlite-core/query-builders/insert.d.ts +3 -3
- package/sqlite-core/query-builders/insert.js.map +1 -1
- package/sqlite-core/query-builders/query.cjs +35 -56
- package/sqlite-core/query-builders/query.cjs.map +1 -1
- package/sqlite-core/query-builders/query.d.cts +17 -18
- package/sqlite-core/query-builders/query.d.ts +17 -18
- package/sqlite-core/query-builders/query.js +35 -56
- package/sqlite-core/query-builders/query.js.map +1 -1
- package/sqlite-core/query-builders/select.cjs.map +1 -1
- package/sqlite-core/query-builders/select.d.cts +3 -3
- package/sqlite-core/query-builders/select.d.ts +3 -3
- package/sqlite-core/query-builders/select.js.map +1 -1
- package/sqlite-core/query-builders/update.cjs.map +1 -1
- package/sqlite-core/query-builders/update.d.cts +3 -3
- package/sqlite-core/query-builders/update.d.ts +3 -3
- package/sqlite-core/query-builders/update.js.map +1 -1
- package/sqlite-core/session.cjs +2 -6
- package/sqlite-core/session.cjs.map +1 -1
- package/sqlite-core/session.d.cts +7 -15
- package/sqlite-core/session.d.ts +7 -15
- package/sqlite-core/session.js +2 -6
- package/sqlite-core/session.js.map +1 -1
- package/sqlite-proxy/driver.cjs +5 -23
- package/sqlite-proxy/driver.cjs.map +1 -1
- package/sqlite-proxy/driver.d.cts +3 -4
- package/sqlite-proxy/driver.d.ts +3 -4
- package/sqlite-proxy/driver.js +5 -13
- package/sqlite-proxy/driver.js.map +1 -1
- package/sqlite-proxy/migrator.cjs.map +1 -1
- package/sqlite-proxy/migrator.d.cts +1 -2
- package/sqlite-proxy/migrator.d.ts +1 -2
- package/sqlite-proxy/migrator.js.map +1 -1
- package/sqlite-proxy/session.cjs +6 -50
- package/sqlite-proxy/session.cjs.map +1 -1
- package/sqlite-proxy/session.d.cts +8 -14
- package/sqlite-proxy/session.d.ts +8 -14
- package/sqlite-proxy/session.js +6 -50
- package/sqlite-proxy/session.js.map +1 -1
- package/table.cjs.map +1 -1
- package/table.d.cts +2 -2
- package/table.d.ts +2 -2
- package/table.js.map +1 -1
- package/tidb-serverless/driver.cjs +5 -22
- package/tidb-serverless/driver.cjs.map +1 -1
- package/tidb-serverless/driver.d.cts +6 -7
- package/tidb-serverless/driver.d.ts +6 -7
- package/tidb-serverless/driver.js +8 -12
- package/tidb-serverless/driver.js.map +1 -1
- package/tidb-serverless/migrator.cjs.map +1 -1
- package/tidb-serverless/migrator.d.cts +1 -2
- package/tidb-serverless/migrator.d.ts +1 -2
- package/tidb-serverless/migrator.js.map +1 -1
- package/tidb-serverless/session.cjs +5 -62
- package/tidb-serverless/session.cjs.map +1 -1
- package/tidb-serverless/session.d.cts +9 -14
- package/tidb-serverless/session.d.ts +9 -14
- package/tidb-serverless/session.js +5 -62
- package/tidb-serverless/session.js.map +1 -1
- package/utils.cjs +2 -2
- package/utils.cjs.map +1 -1
- package/utils.d.cts +1 -3
- package/utils.d.ts +1 -3
- package/utils.js +2 -2
- package/utils.js.map +1 -1
- package/vercel-postgres/driver.cjs +7 -23
- package/vercel-postgres/driver.cjs.map +1 -1
- package/vercel-postgres/driver.d.cts +8 -9
- package/vercel-postgres/driver.d.ts +8 -9
- package/vercel-postgres/driver.js +10 -13
- package/vercel-postgres/driver.js.map +1 -1
- package/vercel-postgres/migrator.cjs.map +1 -1
- package/vercel-postgres/migrator.d.cts +1 -2
- package/vercel-postgres/migrator.d.ts +1 -2
- package/vercel-postgres/migrator.js.map +1 -1
- package/vercel-postgres/session.cjs +4 -34
- package/vercel-postgres/session.cjs.map +1 -1
- package/vercel-postgres/session.d.cts +8 -13
- package/vercel-postgres/session.d.ts +8 -13
- package/vercel-postgres/session.js +4 -34
- package/vercel-postgres/session.js.map +1 -1
- package/version.cjs +1 -1
- package/version.d.cts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/xata-http/driver.cjs +5 -17
- package/xata-http/driver.cjs.map +1 -1
- package/xata-http/driver.d.cts +4 -5
- package/xata-http/driver.d.ts +4 -5
- package/xata-http/driver.js +5 -7
- package/xata-http/driver.js.map +1 -1
- package/xata-http/migrator.cjs.map +1 -1
- package/xata-http/migrator.d.cts +1 -2
- package/xata-http/migrator.d.ts +1 -2
- package/xata-http/migrator.js.map +1 -1
- package/xata-http/session.cjs +2 -30
- package/xata-http/session.cjs.map +1 -1
- package/xata-http/session.d.cts +8 -13
- package/xata-http/session.d.ts +8 -13
- package/xata-http/session.js +2 -30
- package/xata-http/session.js.map +1 -1
- package/_relations.cjs +0 -328
- package/_relations.cjs.map +0 -1
- package/_relations.d.cts +0 -215
- package/_relations.d.ts +0 -215
- package/_relations.js +0 -316
- package/_relations.js.map +0 -1
- package/mysql-core/query-builders/_query.cjs +0 -149
- package/mysql-core/query-builders/_query.cjs.map +0 -1
- package/mysql-core/query-builders/_query.d.cts +0 -44
- package/mysql-core/query-builders/_query.d.ts +0 -44
- package/mysql-core/query-builders/_query.js +0 -114
- package/mysql-core/query-builders/_query.js.map +0 -1
- package/pg-core/query-builders/_query.cjs.map +0 -1
- package/pg-core/query-builders/_query.d.cts +0 -47
- package/pg-core/query-builders/_query.d.ts +0 -47
- package/pg-core/query-builders/_query.js.map +0 -1
- package/sqlite-core/query-builders/_query.cjs +0 -187
- package/sqlite-core/query-builders/_query.cjs.map +0 -1
- package/sqlite-core/query-builders/_query.d.cts +0 -55
- package/sqlite-core/query-builders/_query.d.ts +0 -55
- package/sqlite-core/query-builders/_query.js +0 -151
- package/sqlite-core/query-builders/_query.js.map +0 -1
package/pg-core/dialect.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as V1 from "../_relations.js";
|
|
2
1
|
import { aliasedTable, aliasedTableColumn, mapColumnsInAliasedSQLToAlias, mapColumnsInSQLToAlias } from "../alias.js";
|
|
3
2
|
import { CasingCache } from "../casing.js";
|
|
4
3
|
import { Column } from "../column.js";
|
|
@@ -18,22 +17,20 @@ import {
|
|
|
18
17
|
} from "./columns/index.js";
|
|
19
18
|
import { PgTable } from "./table.js";
|
|
20
19
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
relationsOrderToSQL,
|
|
27
|
-
relationToSQL
|
|
20
|
+
getOperators,
|
|
21
|
+
getOrderByOperators,
|
|
22
|
+
Many,
|
|
23
|
+
normalizeRelation,
|
|
24
|
+
One
|
|
28
25
|
} from "../relations.js";
|
|
29
|
-
import { and, eq,
|
|
26
|
+
import { and, eq, View } from "../sql/index.js";
|
|
30
27
|
import {
|
|
31
28
|
Param,
|
|
32
29
|
SQL,
|
|
33
30
|
sql
|
|
34
31
|
} from "../sql/sql.js";
|
|
35
32
|
import { Subquery } from "../subquery.js";
|
|
36
|
-
import {
|
|
33
|
+
import { getTableName, getTableUniqueName, Table } from "../table.js";
|
|
37
34
|
import { orderSelectedFields } from "../utils.js";
|
|
38
35
|
import { ViewBaseConfig } from "../view-common.js";
|
|
39
36
|
import { PgViewBase } from "./view-base.js";
|
|
@@ -427,8 +424,488 @@ class PgDialect {
|
|
|
427
424
|
invokeSource
|
|
428
425
|
});
|
|
429
426
|
}
|
|
430
|
-
|
|
431
|
-
|
|
427
|
+
// buildRelationalQueryWithPK({
|
|
428
|
+
// fullSchema,
|
|
429
|
+
// schema,
|
|
430
|
+
// tableNamesMap,
|
|
431
|
+
// table,
|
|
432
|
+
// tableConfig,
|
|
433
|
+
// queryConfig: config,
|
|
434
|
+
// tableAlias,
|
|
435
|
+
// isRoot = false,
|
|
436
|
+
// joinOn,
|
|
437
|
+
// }: {
|
|
438
|
+
// fullSchema: Record<string, unknown>;
|
|
439
|
+
// schema: TablesRelationalConfig;
|
|
440
|
+
// tableNamesMap: Record<string, string>;
|
|
441
|
+
// table: PgTable;
|
|
442
|
+
// tableConfig: TableRelationalConfig;
|
|
443
|
+
// queryConfig: true | DBQueryConfig<'many', true>;
|
|
444
|
+
// tableAlias: string;
|
|
445
|
+
// isRoot?: boolean;
|
|
446
|
+
// joinOn?: SQL;
|
|
447
|
+
// }): BuildRelationalQueryResult<PgTable, PgColumn> {
|
|
448
|
+
// // For { "<relation>": true }, return a table with selection of all columns
|
|
449
|
+
// if (config === true) {
|
|
450
|
+
// const selectionEntries = Object.entries(tableConfig.columns);
|
|
451
|
+
// const selection: BuildRelationalQueryResult<PgTable, PgColumn>['selection'] = selectionEntries.map((
|
|
452
|
+
// [key, value],
|
|
453
|
+
// ) => ({
|
|
454
|
+
// dbKey: value.name,
|
|
455
|
+
// tsKey: key,
|
|
456
|
+
// field: value as PgColumn,
|
|
457
|
+
// relationTableTsKey: undefined,
|
|
458
|
+
// isJson: false,
|
|
459
|
+
// selection: [],
|
|
460
|
+
// }));
|
|
461
|
+
// return {
|
|
462
|
+
// tableTsKey: tableConfig.tsName,
|
|
463
|
+
// sql: table,
|
|
464
|
+
// selection,
|
|
465
|
+
// };
|
|
466
|
+
// }
|
|
467
|
+
// // let selection: BuildRelationalQueryResult<PgTable, PgColumn>['selection'] = [];
|
|
468
|
+
// // let selectionForBuild = selection;
|
|
469
|
+
// const aliasedColumns = Object.fromEntries(
|
|
470
|
+
// Object.entries(tableConfig.columns).map(([key, value]) => [key, aliasedTableColumn(value, tableAlias)]),
|
|
471
|
+
// );
|
|
472
|
+
// const aliasedRelations = Object.fromEntries(
|
|
473
|
+
// Object.entries(tableConfig.relations).map(([key, value]) => [key, aliasedRelation(value, tableAlias)]),
|
|
474
|
+
// );
|
|
475
|
+
// const aliasedFields = Object.assign({}, aliasedColumns, aliasedRelations);
|
|
476
|
+
// let where, hasUserDefinedWhere;
|
|
477
|
+
// if (config.where) {
|
|
478
|
+
// const whereSql = typeof config.where === 'function' ? config.where(aliasedFields, operators) : config.where;
|
|
479
|
+
// where = whereSql && mapColumnsInSQLToAlias(whereSql, tableAlias);
|
|
480
|
+
// hasUserDefinedWhere = !!where;
|
|
481
|
+
// }
|
|
482
|
+
// where = and(joinOn, where);
|
|
483
|
+
// // const fieldsSelection: { tsKey: string; value: PgColumn | SQL.Aliased; isExtra?: boolean }[] = [];
|
|
484
|
+
// let joins: Join[] = [];
|
|
485
|
+
// let selectedColumns: string[] = [];
|
|
486
|
+
// // Figure out which columns to select
|
|
487
|
+
// if (config.columns) {
|
|
488
|
+
// let isIncludeMode = false;
|
|
489
|
+
// for (const [field, value] of Object.entries(config.columns)) {
|
|
490
|
+
// if (value === undefined) {
|
|
491
|
+
// continue;
|
|
492
|
+
// }
|
|
493
|
+
// if (field in tableConfig.columns) {
|
|
494
|
+
// if (!isIncludeMode && value === true) {
|
|
495
|
+
// isIncludeMode = true;
|
|
496
|
+
// }
|
|
497
|
+
// selectedColumns.push(field);
|
|
498
|
+
// }
|
|
499
|
+
// }
|
|
500
|
+
// if (selectedColumns.length > 0) {
|
|
501
|
+
// selectedColumns = isIncludeMode
|
|
502
|
+
// ? selectedColumns.filter((c) => config.columns?.[c] === true)
|
|
503
|
+
// : Object.keys(tableConfig.columns).filter((key) => !selectedColumns.includes(key));
|
|
504
|
+
// }
|
|
505
|
+
// } else {
|
|
506
|
+
// // Select all columns if selection is not specified
|
|
507
|
+
// selectedColumns = Object.keys(tableConfig.columns);
|
|
508
|
+
// }
|
|
509
|
+
// // for (const field of selectedColumns) {
|
|
510
|
+
// // const column = tableConfig.columns[field]! as PgColumn;
|
|
511
|
+
// // fieldsSelection.push({ tsKey: field, value: column });
|
|
512
|
+
// // }
|
|
513
|
+
// let initiallySelectedRelations: {
|
|
514
|
+
// tsKey: string;
|
|
515
|
+
// queryConfig: true | DBQueryConfig<'many', false>;
|
|
516
|
+
// relation: Relation;
|
|
517
|
+
// }[] = [];
|
|
518
|
+
// // let selectedRelations: BuildRelationalQueryResult<PgTable, PgColumn>['selection'] = [];
|
|
519
|
+
// // Figure out which relations to select
|
|
520
|
+
// if (config.with) {
|
|
521
|
+
// initiallySelectedRelations = Object.entries(config.with)
|
|
522
|
+
// .filter((entry): entry is [typeof entry[0], NonNullable<typeof entry[1]>] => !!entry[1])
|
|
523
|
+
// .map(([tsKey, queryConfig]) => ({ tsKey, queryConfig, relation: tableConfig.relations[tsKey]! }));
|
|
524
|
+
// }
|
|
525
|
+
// const manyRelations = initiallySelectedRelations.filter((r) =>
|
|
526
|
+
// is(r.relation, Many)
|
|
527
|
+
// && (schema[tableNamesMap[r.relation.referencedTable[Table.Symbol.Name]]!]?.primaryKey.length ?? 0) > 0
|
|
528
|
+
// );
|
|
529
|
+
// // If this is the last Many relation (or there are no Many relations), we are on the innermost subquery level
|
|
530
|
+
// const isInnermostQuery = manyRelations.length < 2;
|
|
531
|
+
// const selectedExtras: {
|
|
532
|
+
// tsKey: string;
|
|
533
|
+
// value: SQL.Aliased;
|
|
534
|
+
// }[] = [];
|
|
535
|
+
// // Figure out which extras to select
|
|
536
|
+
// if (isInnermostQuery && config.extras) {
|
|
537
|
+
// const extras = typeof config.extras === 'function'
|
|
538
|
+
// ? config.extras(aliasedFields, { sql })
|
|
539
|
+
// : config.extras;
|
|
540
|
+
// for (const [tsKey, value] of Object.entries(extras)) {
|
|
541
|
+
// selectedExtras.push({
|
|
542
|
+
// tsKey,
|
|
543
|
+
// value: mapColumnsInAliasedSQLToAlias(value, tableAlias),
|
|
544
|
+
// });
|
|
545
|
+
// }
|
|
546
|
+
// }
|
|
547
|
+
// // Transform `fieldsSelection` into `selection`
|
|
548
|
+
// // `fieldsSelection` shouldn't be used after this point
|
|
549
|
+
// // for (const { tsKey, value, isExtra } of fieldsSelection) {
|
|
550
|
+
// // selection.push({
|
|
551
|
+
// // dbKey: is(value, SQL.Aliased) ? value.fieldAlias : tableConfig.columns[tsKey]!.name,
|
|
552
|
+
// // tsKey,
|
|
553
|
+
// // field: is(value, Column) ? aliasedTableColumn(value, tableAlias) : value,
|
|
554
|
+
// // relationTableTsKey: undefined,
|
|
555
|
+
// // isJson: false,
|
|
556
|
+
// // isExtra,
|
|
557
|
+
// // selection: [],
|
|
558
|
+
// // });
|
|
559
|
+
// // }
|
|
560
|
+
// let orderByOrig = typeof config.orderBy === 'function'
|
|
561
|
+
// ? config.orderBy(aliasedFields, orderByOperators)
|
|
562
|
+
// : config.orderBy ?? [];
|
|
563
|
+
// if (!Array.isArray(orderByOrig)) {
|
|
564
|
+
// orderByOrig = [orderByOrig];
|
|
565
|
+
// }
|
|
566
|
+
// const orderBy = orderByOrig.map((orderByValue) => {
|
|
567
|
+
// if (is(orderByValue, Column)) {
|
|
568
|
+
// return aliasedTableColumn(orderByValue, tableAlias) as PgColumn;
|
|
569
|
+
// }
|
|
570
|
+
// return mapColumnsInSQLToAlias(orderByValue, tableAlias);
|
|
571
|
+
// });
|
|
572
|
+
// const limit = isInnermostQuery ? config.limit : undefined;
|
|
573
|
+
// const offset = isInnermostQuery ? config.offset : undefined;
|
|
574
|
+
// // For non-root queries without additional config except columns, return a table with selection
|
|
575
|
+
// if (
|
|
576
|
+
// !isRoot
|
|
577
|
+
// && initiallySelectedRelations.length === 0
|
|
578
|
+
// && selectedExtras.length === 0
|
|
579
|
+
// && !where
|
|
580
|
+
// && orderBy.length === 0
|
|
581
|
+
// && limit === undefined
|
|
582
|
+
// && offset === undefined
|
|
583
|
+
// ) {
|
|
584
|
+
// return {
|
|
585
|
+
// tableTsKey: tableConfig.tsName,
|
|
586
|
+
// sql: table,
|
|
587
|
+
// selection: selectedColumns.map((key) => ({
|
|
588
|
+
// dbKey: tableConfig.columns[key]!.name,
|
|
589
|
+
// tsKey: key,
|
|
590
|
+
// field: tableConfig.columns[key] as PgColumn,
|
|
591
|
+
// relationTableTsKey: undefined,
|
|
592
|
+
// isJson: false,
|
|
593
|
+
// selection: [],
|
|
594
|
+
// })),
|
|
595
|
+
// };
|
|
596
|
+
// }
|
|
597
|
+
// const selectedRelationsWithoutPK:
|
|
598
|
+
// // Process all relations without primary keys, because they need to be joined differently and will all be on the same query level
|
|
599
|
+
// for (
|
|
600
|
+
// const {
|
|
601
|
+
// tsKey: selectedRelationTsKey,
|
|
602
|
+
// queryConfig: selectedRelationConfigValue,
|
|
603
|
+
// relation,
|
|
604
|
+
// } of initiallySelectedRelations
|
|
605
|
+
// ) {
|
|
606
|
+
// const normalizedRelation = normalizeRelation(schema, tableNamesMap, relation);
|
|
607
|
+
// const relationTableName = relation.referencedTable[Table.Symbol.Name];
|
|
608
|
+
// const relationTableTsName = tableNamesMap[relationTableName]!;
|
|
609
|
+
// const relationTable = schema[relationTableTsName]!;
|
|
610
|
+
// if (relationTable.primaryKey.length > 0) {
|
|
611
|
+
// continue;
|
|
612
|
+
// }
|
|
613
|
+
// const relationTableAlias = `${tableAlias}_${selectedRelationTsKey}`;
|
|
614
|
+
// const joinOn = and(
|
|
615
|
+
// ...normalizedRelation.fields.map((field, i) =>
|
|
616
|
+
// eq(
|
|
617
|
+
// aliasedTableColumn(normalizedRelation.references[i]!, relationTableAlias),
|
|
618
|
+
// aliasedTableColumn(field, tableAlias),
|
|
619
|
+
// )
|
|
620
|
+
// ),
|
|
621
|
+
// );
|
|
622
|
+
// const builtRelation = this.buildRelationalQueryWithoutPK({
|
|
623
|
+
// fullSchema,
|
|
624
|
+
// schema,
|
|
625
|
+
// tableNamesMap,
|
|
626
|
+
// table: fullSchema[relationTableTsName] as PgTable,
|
|
627
|
+
// tableConfig: schema[relationTableTsName]!,
|
|
628
|
+
// queryConfig: selectedRelationConfigValue,
|
|
629
|
+
// tableAlias: relationTableAlias,
|
|
630
|
+
// joinOn,
|
|
631
|
+
// nestedQueryRelation: relation,
|
|
632
|
+
// });
|
|
633
|
+
// const field = sql`${sql.identifier(relationTableAlias)}.${sql.identifier('data')}`.as(selectedRelationTsKey);
|
|
634
|
+
// joins.push({
|
|
635
|
+
// on: sql`true`,
|
|
636
|
+
// table: new Subquery(builtRelation.sql as SQL, {}, relationTableAlias),
|
|
637
|
+
// alias: relationTableAlias,
|
|
638
|
+
// joinType: 'left',
|
|
639
|
+
// lateral: true,
|
|
640
|
+
// });
|
|
641
|
+
// selectedRelations.push({
|
|
642
|
+
// dbKey: selectedRelationTsKey,
|
|
643
|
+
// tsKey: selectedRelationTsKey,
|
|
644
|
+
// field,
|
|
645
|
+
// relationTableTsKey: relationTableTsName,
|
|
646
|
+
// isJson: true,
|
|
647
|
+
// selection: builtRelation.selection,
|
|
648
|
+
// });
|
|
649
|
+
// }
|
|
650
|
+
// const oneRelations = initiallySelectedRelations.filter((r): r is typeof r & { relation: One } =>
|
|
651
|
+
// is(r.relation, One)
|
|
652
|
+
// );
|
|
653
|
+
// // Process all One relations with PKs, because they can all be joined on the same level
|
|
654
|
+
// for (
|
|
655
|
+
// const {
|
|
656
|
+
// tsKey: selectedRelationTsKey,
|
|
657
|
+
// queryConfig: selectedRelationConfigValue,
|
|
658
|
+
// relation,
|
|
659
|
+
// } of oneRelations
|
|
660
|
+
// ) {
|
|
661
|
+
// const normalizedRelation = normalizeRelation(schema, tableNamesMap, relation);
|
|
662
|
+
// const relationTableName = relation.referencedTable[Table.Symbol.Name];
|
|
663
|
+
// const relationTableTsName = tableNamesMap[relationTableName]!;
|
|
664
|
+
// const relationTableAlias = `${tableAlias}_${selectedRelationTsKey}`;
|
|
665
|
+
// const relationTable = schema[relationTableTsName]!;
|
|
666
|
+
// if (relationTable.primaryKey.length === 0) {
|
|
667
|
+
// continue;
|
|
668
|
+
// }
|
|
669
|
+
// const joinOn = and(
|
|
670
|
+
// ...normalizedRelation.fields.map((field, i) =>
|
|
671
|
+
// eq(
|
|
672
|
+
// aliasedTableColumn(normalizedRelation.references[i]!, relationTableAlias),
|
|
673
|
+
// aliasedTableColumn(field, tableAlias),
|
|
674
|
+
// )
|
|
675
|
+
// ),
|
|
676
|
+
// );
|
|
677
|
+
// const builtRelation = this.buildRelationalQueryWithPK({
|
|
678
|
+
// fullSchema,
|
|
679
|
+
// schema,
|
|
680
|
+
// tableNamesMap,
|
|
681
|
+
// table: fullSchema[relationTableTsName] as PgTable,
|
|
682
|
+
// tableConfig: schema[relationTableTsName]!,
|
|
683
|
+
// queryConfig: selectedRelationConfigValue,
|
|
684
|
+
// tableAlias: relationTableAlias,
|
|
685
|
+
// joinOn,
|
|
686
|
+
// });
|
|
687
|
+
// const field = sql`case when ${sql.identifier(relationTableAlias)} is null then null else json_build_array(${
|
|
688
|
+
// sql.join(
|
|
689
|
+
// builtRelation.selection.map(({ field }) =>
|
|
690
|
+
// is(field, SQL.Aliased)
|
|
691
|
+
// ? sql`${sql.identifier(relationTableAlias)}.${sql.identifier(field.fieldAlias)}`
|
|
692
|
+
// : is(field, Column)
|
|
693
|
+
// ? aliasedTableColumn(field, relationTableAlias)
|
|
694
|
+
// : field
|
|
695
|
+
// ),
|
|
696
|
+
// sql`, `,
|
|
697
|
+
// )
|
|
698
|
+
// }) end`.as(selectedRelationTsKey);
|
|
699
|
+
// const isLateralJoin = is(builtRelation.sql, SQL);
|
|
700
|
+
// joins.push({
|
|
701
|
+
// on: isLateralJoin ? sql`true` : joinOn,
|
|
702
|
+
// table: is(builtRelation.sql, SQL)
|
|
703
|
+
// ? new Subquery(builtRelation.sql, {}, relationTableAlias)
|
|
704
|
+
// : aliasedTable(builtRelation.sql, relationTableAlias),
|
|
705
|
+
// alias: relationTableAlias,
|
|
706
|
+
// joinType: 'left',
|
|
707
|
+
// lateral: is(builtRelation.sql, SQL),
|
|
708
|
+
// });
|
|
709
|
+
// selectedRelations.push({
|
|
710
|
+
// dbKey: selectedRelationTsKey,
|
|
711
|
+
// tsKey: selectedRelationTsKey,
|
|
712
|
+
// field,
|
|
713
|
+
// relationTableTsKey: relationTableTsName,
|
|
714
|
+
// isJson: true,
|
|
715
|
+
// selection: builtRelation.selection,
|
|
716
|
+
// });
|
|
717
|
+
// }
|
|
718
|
+
// let distinct: PgSelectConfig['distinct'];
|
|
719
|
+
// let tableFrom: PgTable | Subquery = table;
|
|
720
|
+
// // Process first Many relation - each one requires a nested subquery
|
|
721
|
+
// const manyRelation = manyRelations[0];
|
|
722
|
+
// if (manyRelation) {
|
|
723
|
+
// const {
|
|
724
|
+
// tsKey: selectedRelationTsKey,
|
|
725
|
+
// queryConfig: selectedRelationQueryConfig,
|
|
726
|
+
// relation,
|
|
727
|
+
// } = manyRelation;
|
|
728
|
+
// distinct = {
|
|
729
|
+
// on: tableConfig.primaryKey.map((c) => aliasedTableColumn(c as PgColumn, tableAlias)),
|
|
730
|
+
// };
|
|
731
|
+
// const normalizedRelation = normalizeRelation(schema, tableNamesMap, relation);
|
|
732
|
+
// const relationTableName = relation.referencedTable[Table.Symbol.Name];
|
|
733
|
+
// const relationTableTsName = tableNamesMap[relationTableName]!;
|
|
734
|
+
// const relationTableAlias = `${tableAlias}_${selectedRelationTsKey}`;
|
|
735
|
+
// const joinOn = and(
|
|
736
|
+
// ...normalizedRelation.fields.map((field, i) =>
|
|
737
|
+
// eq(
|
|
738
|
+
// aliasedTableColumn(normalizedRelation.references[i]!, relationTableAlias),
|
|
739
|
+
// aliasedTableColumn(field, tableAlias),
|
|
740
|
+
// )
|
|
741
|
+
// ),
|
|
742
|
+
// );
|
|
743
|
+
// const builtRelationJoin = this.buildRelationalQueryWithPK({
|
|
744
|
+
// fullSchema,
|
|
745
|
+
// schema,
|
|
746
|
+
// tableNamesMap,
|
|
747
|
+
// table: fullSchema[relationTableTsName] as PgTable,
|
|
748
|
+
// tableConfig: schema[relationTableTsName]!,
|
|
749
|
+
// queryConfig: selectedRelationQueryConfig,
|
|
750
|
+
// tableAlias: relationTableAlias,
|
|
751
|
+
// joinOn,
|
|
752
|
+
// });
|
|
753
|
+
// const builtRelationSelectionField = sql`case when ${
|
|
754
|
+
// sql.identifier(relationTableAlias)
|
|
755
|
+
// } is null then '[]' else json_agg(json_build_array(${
|
|
756
|
+
// sql.join(
|
|
757
|
+
// builtRelationJoin.selection.map(({ field }) =>
|
|
758
|
+
// is(field, SQL.Aliased)
|
|
759
|
+
// ? sql`${sql.identifier(relationTableAlias)}.${sql.identifier(field.fieldAlias)}`
|
|
760
|
+
// : is(field, Column)
|
|
761
|
+
// ? aliasedTableColumn(field, relationTableAlias)
|
|
762
|
+
// : field
|
|
763
|
+
// ),
|
|
764
|
+
// sql`, `,
|
|
765
|
+
// )
|
|
766
|
+
// })) over (partition by ${sql.join(distinct.on, sql`, `)}) end`.as(selectedRelationTsKey);
|
|
767
|
+
// const isLateralJoin = is(builtRelationJoin.sql, SQL);
|
|
768
|
+
// joins.push({
|
|
769
|
+
// on: isLateralJoin ? sql`true` : joinOn,
|
|
770
|
+
// table: isLateralJoin
|
|
771
|
+
// ? new Subquery(builtRelationJoin.sql as SQL, {}, relationTableAlias)
|
|
772
|
+
// : aliasedTable(builtRelationJoin.sql as PgTable, relationTableAlias),
|
|
773
|
+
// alias: relationTableAlias,
|
|
774
|
+
// joinType: 'left',
|
|
775
|
+
// lateral: isLateralJoin,
|
|
776
|
+
// });
|
|
777
|
+
// // Build the "from" subquery with the remaining Many relations
|
|
778
|
+
// const builtTableFrom = this.buildRelationalQueryWithPK({
|
|
779
|
+
// fullSchema,
|
|
780
|
+
// schema,
|
|
781
|
+
// tableNamesMap,
|
|
782
|
+
// table,
|
|
783
|
+
// tableConfig,
|
|
784
|
+
// queryConfig: {
|
|
785
|
+
// ...config,
|
|
786
|
+
// where: undefined,
|
|
787
|
+
// orderBy: undefined,
|
|
788
|
+
// limit: undefined,
|
|
789
|
+
// offset: undefined,
|
|
790
|
+
// with: manyRelations.slice(1).reduce<NonNullable<typeof config['with']>>(
|
|
791
|
+
// (result, { tsKey, queryConfig: configValue }) => {
|
|
792
|
+
// result[tsKey] = configValue;
|
|
793
|
+
// return result;
|
|
794
|
+
// },
|
|
795
|
+
// {},
|
|
796
|
+
// ),
|
|
797
|
+
// },
|
|
798
|
+
// tableAlias,
|
|
799
|
+
// });
|
|
800
|
+
// selectedRelations.push({
|
|
801
|
+
// dbKey: selectedRelationTsKey,
|
|
802
|
+
// tsKey: selectedRelationTsKey,
|
|
803
|
+
// field: builtRelationSelectionField,
|
|
804
|
+
// relationTableTsKey: relationTableTsName,
|
|
805
|
+
// isJson: true,
|
|
806
|
+
// selection: builtRelationJoin.selection,
|
|
807
|
+
// });
|
|
808
|
+
// // selection = builtTableFrom.selection.map((item) =>
|
|
809
|
+
// // is(item.field, SQL.Aliased)
|
|
810
|
+
// // ? { ...item, field: sql`${sql.identifier(tableAlias)}.${sql.identifier(item.field.fieldAlias)}` }
|
|
811
|
+
// // : item
|
|
812
|
+
// // );
|
|
813
|
+
// // selectionForBuild = [{
|
|
814
|
+
// // dbKey: '*',
|
|
815
|
+
// // tsKey: '*',
|
|
816
|
+
// // field: sql`${sql.identifier(tableAlias)}.*`,
|
|
817
|
+
// // selection: [],
|
|
818
|
+
// // isJson: false,
|
|
819
|
+
// // relationTableTsKey: undefined,
|
|
820
|
+
// // }];
|
|
821
|
+
// // const newSelectionItem: (typeof selection)[number] = {
|
|
822
|
+
// // dbKey: selectedRelationTsKey,
|
|
823
|
+
// // tsKey: selectedRelationTsKey,
|
|
824
|
+
// // field,
|
|
825
|
+
// // relationTableTsKey: relationTableTsName,
|
|
826
|
+
// // isJson: true,
|
|
827
|
+
// // selection: builtRelationJoin.selection,
|
|
828
|
+
// // };
|
|
829
|
+
// // selection.push(newSelectionItem);
|
|
830
|
+
// // selectionForBuild.push(newSelectionItem);
|
|
831
|
+
// tableFrom = is(builtTableFrom.sql, PgTable)
|
|
832
|
+
// ? builtTableFrom.sql
|
|
833
|
+
// : new Subquery(builtTableFrom.sql, {}, tableAlias);
|
|
834
|
+
// }
|
|
835
|
+
// if (selectedColumns.length === 0 && selectedRelations.length === 0 && selectedExtras.length === 0) {
|
|
836
|
+
// throw new DrizzleError(`No fields selected for table "${tableConfig.tsName}" ("${tableAlias}")`);
|
|
837
|
+
// }
|
|
838
|
+
// let selection: BuildRelationalQueryResult<PgTable, PgColumn>['selection'];
|
|
839
|
+
// function prepareSelectedColumns() {
|
|
840
|
+
// return selectedColumns.map((key) => ({
|
|
841
|
+
// dbKey: tableConfig.columns[key]!.name,
|
|
842
|
+
// tsKey: key,
|
|
843
|
+
// field: tableConfig.columns[key] as PgColumn,
|
|
844
|
+
// relationTableTsKey: undefined,
|
|
845
|
+
// isJson: false,
|
|
846
|
+
// selection: [],
|
|
847
|
+
// }));
|
|
848
|
+
// }
|
|
849
|
+
// function prepareSelectedExtras() {
|
|
850
|
+
// return selectedExtras.map((item) => ({
|
|
851
|
+
// dbKey: item.value.fieldAlias,
|
|
852
|
+
// tsKey: item.tsKey,
|
|
853
|
+
// field: item.value,
|
|
854
|
+
// relationTableTsKey: undefined,
|
|
855
|
+
// isJson: false,
|
|
856
|
+
// selection: [],
|
|
857
|
+
// }));
|
|
858
|
+
// }
|
|
859
|
+
// if (isRoot) {
|
|
860
|
+
// selection = [
|
|
861
|
+
// ...prepareSelectedColumns(),
|
|
862
|
+
// ...prepareSelectedExtras(),
|
|
863
|
+
// ];
|
|
864
|
+
// }
|
|
865
|
+
// if (hasUserDefinedWhere || orderBy.length > 0) {
|
|
866
|
+
// tableFrom = new Subquery(
|
|
867
|
+
// this.buildSelectQuery({
|
|
868
|
+
// table: is(tableFrom, PgTable) ? aliasedTable(tableFrom, tableAlias) : tableFrom,
|
|
869
|
+
// fields: {},
|
|
870
|
+
// fieldsFlat: selectionForBuild.map(({ field }) => ({
|
|
871
|
+
// path: [],
|
|
872
|
+
// field: is(field, Column) ? aliasedTableColumn(field, tableAlias) : field,
|
|
873
|
+
// })),
|
|
874
|
+
// joins,
|
|
875
|
+
// distinct,
|
|
876
|
+
// }),
|
|
877
|
+
// {},
|
|
878
|
+
// tableAlias,
|
|
879
|
+
// );
|
|
880
|
+
// selectionForBuild = selection.map((item) =>
|
|
881
|
+
// is(item.field, SQL.Aliased)
|
|
882
|
+
// ? { ...item, field: sql`${sql.identifier(tableAlias)}.${sql.identifier(item.field.fieldAlias)}` }
|
|
883
|
+
// : item
|
|
884
|
+
// );
|
|
885
|
+
// joins = [];
|
|
886
|
+
// distinct = undefined;
|
|
887
|
+
// }
|
|
888
|
+
// const result = this.buildSelectQuery({
|
|
889
|
+
// table: is(tableFrom, PgTable) ? aliasedTable(tableFrom, tableAlias) : tableFrom,
|
|
890
|
+
// fields: {},
|
|
891
|
+
// fieldsFlat: selectionForBuild.map(({ field }) => ({
|
|
892
|
+
// path: [],
|
|
893
|
+
// field: is(field, Column) ? aliasedTableColumn(field, tableAlias) : field,
|
|
894
|
+
// })),
|
|
895
|
+
// where,
|
|
896
|
+
// limit,
|
|
897
|
+
// offset,
|
|
898
|
+
// joins,
|
|
899
|
+
// orderBy,
|
|
900
|
+
// distinct,
|
|
901
|
+
// });
|
|
902
|
+
// return {
|
|
903
|
+
// tableTsKey: tableConfig.tsName,
|
|
904
|
+
// sql: result,
|
|
905
|
+
// selection,
|
|
906
|
+
// };
|
|
907
|
+
// }
|
|
908
|
+
buildRelationalQueryWithoutPK({
|
|
432
909
|
fullSchema,
|
|
433
910
|
schema,
|
|
434
911
|
tableNamesMap,
|
|
@@ -457,7 +934,7 @@ class PgDialect {
|
|
|
457
934
|
Object.entries(tableConfig.columns).map(([key, value]) => [key, aliasedTableColumn(value, tableAlias)])
|
|
458
935
|
);
|
|
459
936
|
if (config.where) {
|
|
460
|
-
const whereSql = typeof config.where === "function" ? config.where(aliasedColumns,
|
|
937
|
+
const whereSql = typeof config.where === "function" ? config.where(aliasedColumns, getOperators()) : config.where;
|
|
461
938
|
where = whereSql && mapColumnsInSQLToAlias(whereSql, tableAlias);
|
|
462
939
|
}
|
|
463
940
|
const fieldsSelection = [];
|
|
@@ -509,7 +986,7 @@ class PgDialect {
|
|
|
509
986
|
selection: []
|
|
510
987
|
});
|
|
511
988
|
}
|
|
512
|
-
let orderByOrig = typeof config.orderBy === "function" ? config.orderBy(aliasedColumns,
|
|
989
|
+
let orderByOrig = typeof config.orderBy === "function" ? config.orderBy(aliasedColumns, getOrderByOperators()) : config.orderBy ?? [];
|
|
513
990
|
if (!Array.isArray(orderByOrig)) {
|
|
514
991
|
orderByOrig = [orderByOrig];
|
|
515
992
|
}
|
|
@@ -526,7 +1003,7 @@ class PgDialect {
|
|
|
526
1003
|
queryConfig: selectedRelationConfigValue,
|
|
527
1004
|
relation
|
|
528
1005
|
} of selectedRelations) {
|
|
529
|
-
const normalizedRelation =
|
|
1006
|
+
const normalizedRelation = normalizeRelation(schema, tableNamesMap, relation);
|
|
530
1007
|
const relationTableName = getTableUniqueName(relation.referencedTable);
|
|
531
1008
|
const relationTableTsName = tableNamesMap[relationTableName];
|
|
532
1009
|
const relationTableAlias = `${tableAlias}_${selectedRelationTsKey}`;
|
|
@@ -538,13 +1015,13 @@ class PgDialect {
|
|
|
538
1015
|
)
|
|
539
1016
|
)
|
|
540
1017
|
);
|
|
541
|
-
const builtRelation = this.
|
|
1018
|
+
const builtRelation = this.buildRelationalQueryWithoutPK({
|
|
542
1019
|
fullSchema,
|
|
543
1020
|
schema,
|
|
544
1021
|
tableNamesMap,
|
|
545
1022
|
table: fullSchema[relationTableTsName],
|
|
546
1023
|
tableConfig: schema[relationTableTsName],
|
|
547
|
-
queryConfig: is(relation,
|
|
1024
|
+
queryConfig: is(relation, One) ? selectedRelationConfigValue === true ? { limit: 1 } : { ...selectedRelationConfigValue, limit: 1 } : selectedRelationConfigValue,
|
|
548
1025
|
tableAlias: relationTableAlias,
|
|
549
1026
|
joinOn: joinOn2,
|
|
550
1027
|
nestedQueryRelation: relation
|
|
@@ -579,7 +1056,7 @@ class PgDialect {
|
|
|
579
1056
|
),
|
|
580
1057
|
sql`, `
|
|
581
1058
|
)})`;
|
|
582
|
-
if (is(nestedQueryRelation,
|
|
1059
|
+
if (is(nestedQueryRelation, Many)) {
|
|
583
1060
|
field = sql`coalesce(json_agg(${field}${orderBy.length > 0 ? sql` order by ${sql.join(orderBy, sql`, `)}` : void 0}), '[]'::json)`;
|
|
584
1061
|
}
|
|
585
1062
|
const nestedSelection = [{
|
|
@@ -648,160 +1125,6 @@ class PgDialect {
|
|
|
648
1125
|
selection
|
|
649
1126
|
};
|
|
650
1127
|
}
|
|
651
|
-
nestedSelectionerror() {
|
|
652
|
-
throw new DrizzleError({
|
|
653
|
-
message: `Views with nested selections are not supported by the relational query builder`
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
buildRqbColumn(column, key) {
|
|
657
|
-
return sql`${is(column, Column) ? sql.identifier(column.name) : is(column, SQL.Aliased) ? sql.identifier(column.fieldAlias) : isSQLWrapper(column) ? sql.identifier(key) : this.nestedSelectionerror()} as ${sql.identifier(key)}`;
|
|
658
|
-
}
|
|
659
|
-
unwrapAllColumns = (table, selection) => {
|
|
660
|
-
return sql.join(
|
|
661
|
-
Object.entries(table[Columns]).map(([k, v]) => {
|
|
662
|
-
selection.push({
|
|
663
|
-
key: k,
|
|
664
|
-
field: v
|
|
665
|
-
});
|
|
666
|
-
return sql`${table}.${this.buildRqbColumn(v, k)}`;
|
|
667
|
-
}),
|
|
668
|
-
sql`, `
|
|
669
|
-
);
|
|
670
|
-
};
|
|
671
|
-
buildColumns = (table, selection, config) => config?.columns ? (() => {
|
|
672
|
-
const entries = Object.entries(config.columns);
|
|
673
|
-
const columnContainer = table[Columns];
|
|
674
|
-
const columnIdentifiers = [];
|
|
675
|
-
let colSelectionMode;
|
|
676
|
-
for (const [k, v] of entries) {
|
|
677
|
-
if (v === void 0)
|
|
678
|
-
continue;
|
|
679
|
-
colSelectionMode = colSelectionMode || v;
|
|
680
|
-
if (v) {
|
|
681
|
-
const column = columnContainer[k];
|
|
682
|
-
columnIdentifiers.push(
|
|
683
|
-
sql`${table}.${this.buildRqbColumn(column, k)}`
|
|
684
|
-
);
|
|
685
|
-
selection.push({
|
|
686
|
-
key: k,
|
|
687
|
-
field: column
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
if (colSelectionMode === false) {
|
|
692
|
-
for (const [k, v] of Object.entries(columnContainer)) {
|
|
693
|
-
if (config.columns[k] === false)
|
|
694
|
-
continue;
|
|
695
|
-
columnIdentifiers.push(sql`${table}.${this.buildRqbColumn(v, k)}`);
|
|
696
|
-
selection.push({
|
|
697
|
-
key: k,
|
|
698
|
-
field: v
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
return columnIdentifiers.length ? sql.join(columnIdentifiers, sql`, `) : void 0;
|
|
703
|
-
})() : this.unwrapAllColumns(table, selection);
|
|
704
|
-
buildRelationalQuery({
|
|
705
|
-
tables,
|
|
706
|
-
schema,
|
|
707
|
-
tableNamesMap,
|
|
708
|
-
table,
|
|
709
|
-
tableConfig,
|
|
710
|
-
queryConfig: config,
|
|
711
|
-
relationWhere,
|
|
712
|
-
mode,
|
|
713
|
-
errorPath,
|
|
714
|
-
depth,
|
|
715
|
-
throughJoin
|
|
716
|
-
}) {
|
|
717
|
-
const selection = [];
|
|
718
|
-
const isSingle = mode === "first";
|
|
719
|
-
const params = config === true ? void 0 : config;
|
|
720
|
-
const currentPath = errorPath ?? "";
|
|
721
|
-
const currentDepth = depth ?? 0;
|
|
722
|
-
if (!currentDepth)
|
|
723
|
-
table = aliasedTable(table, `d${currentDepth}`);
|
|
724
|
-
const limit = isSingle ? 1 : params?.limit;
|
|
725
|
-
const offset = params?.offset;
|
|
726
|
-
const where = params?.where && relationWhere ? and(relationsFilterToSQL(table, params.where), relationWhere) : params?.where ? relationsFilterToSQL(table, params.where) : relationWhere;
|
|
727
|
-
const order = params?.orderBy ? relationsOrderToSQL(table, params.orderBy) : void 0;
|
|
728
|
-
const columns = this.buildColumns(table, selection, params);
|
|
729
|
-
const extras = params?.extras ? relationExtrasToSQL(table, params.extras) : void 0;
|
|
730
|
-
if (extras)
|
|
731
|
-
selection.push(...extras.selection);
|
|
732
|
-
const selectionArr = columns ? [columns] : [];
|
|
733
|
-
const joins = params ? (() => {
|
|
734
|
-
const { with: joins2 } = params;
|
|
735
|
-
if (!joins2)
|
|
736
|
-
return;
|
|
737
|
-
const withEntries = Object.entries(joins2).filter(([_, v]) => v);
|
|
738
|
-
if (!withEntries.length)
|
|
739
|
-
return;
|
|
740
|
-
return sql.join(
|
|
741
|
-
withEntries.map(([k, join]) => {
|
|
742
|
-
if (is(tableConfig.relations[k], AggregatedField)) {
|
|
743
|
-
const relation2 = tableConfig.relations[k];
|
|
744
|
-
relation2.onTable(table);
|
|
745
|
-
const query2 = relation2.getSQL();
|
|
746
|
-
selection.push({
|
|
747
|
-
key: k,
|
|
748
|
-
field: relation2
|
|
749
|
-
});
|
|
750
|
-
selectionArr.push(sql`${sql.identifier(k)}.${sql.identifier("r")} as ${sql.identifier(k)}`);
|
|
751
|
-
return sql`left join lateral(${query2}) as ${sql.identifier(k)} on true`;
|
|
752
|
-
}
|
|
753
|
-
const relation = tableConfig.relations[k];
|
|
754
|
-
const isSingle2 = is(relation, One);
|
|
755
|
-
const targetTable = aliasedTable(relation.targetTable, `d${currentDepth + 1}`);
|
|
756
|
-
const throughTable = relation.throughTable ? aliasedTable(relation.throughTable, `tr${currentDepth}`) : void 0;
|
|
757
|
-
const { filter, joinCondition } = relationToSQL(
|
|
758
|
-
relation,
|
|
759
|
-
table,
|
|
760
|
-
targetTable,
|
|
761
|
-
throughTable
|
|
762
|
-
);
|
|
763
|
-
selectionArr.push(sql`${sql.identifier(k)}.${sql.identifier("r")} as ${sql.identifier(k)}`);
|
|
764
|
-
const throughJoin2 = throughTable ? sql` inner join ${getTableAsAliasSQL(throughTable)} on ${joinCondition}` : void 0;
|
|
765
|
-
const innerQuery = this.buildRelationalQuery({
|
|
766
|
-
table: targetTable,
|
|
767
|
-
mode: isSingle2 ? "first" : "many",
|
|
768
|
-
schema,
|
|
769
|
-
queryConfig: join,
|
|
770
|
-
tableConfig: schema[tableNamesMap[getTableUniqueName(relation.targetTable)]],
|
|
771
|
-
tableNamesMap,
|
|
772
|
-
tables,
|
|
773
|
-
relationWhere: filter,
|
|
774
|
-
errorPath: `${currentPath.length ? `${currentPath}.` : ""}${k}`,
|
|
775
|
-
depth: currentDepth + 1,
|
|
776
|
-
throughJoin: throughJoin2
|
|
777
|
-
});
|
|
778
|
-
selection.push({
|
|
779
|
-
field: targetTable,
|
|
780
|
-
key: k,
|
|
781
|
-
selection: innerQuery.selection,
|
|
782
|
-
isArray: !isSingle2,
|
|
783
|
-
isOptional: (relation.optional ?? false) || join !== true && !!join.where
|
|
784
|
-
});
|
|
785
|
-
const joinQuery = sql`left join lateral(select ${isSingle2 ? sql`row_to_json(${sql.identifier("t")}.*) ${sql.identifier("r")}` : sql`coalesce(json_agg(row_to_json(${sql.identifier("t")}.*)), '[]') as ${sql.identifier("r")}`} from (${innerQuery.sql}) as ${sql.identifier("t")}) as ${sql.identifier(k)} on true`;
|
|
786
|
-
return joinQuery;
|
|
787
|
-
}),
|
|
788
|
-
sql` `
|
|
789
|
-
);
|
|
790
|
-
})() : void 0;
|
|
791
|
-
if (extras?.sql)
|
|
792
|
-
selectionArr.push(extras.sql);
|
|
793
|
-
if (!selectionArr.length) {
|
|
794
|
-
throw new DrizzleError({
|
|
795
|
-
message: `No fields selected for table "${tableConfig.tsName}"${currentPath ? ` ("${currentPath}")` : ""}`
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
const selectionSet = sql.join(selectionArr.filter((e) => e !== void 0), sql`, `);
|
|
799
|
-
const query = sql`select ${selectionSet} from ${getTableAsAliasSQL(table)}${throughJoin}${sql` ${joins}`.if(joins)}${sql` where ${where}`.if(where)}${sql` order by ${order}`.if(order)}${sql` limit ${limit}`.if(limit !== void 0)}${sql` offset ${offset}`.if(offset !== void 0)}`;
|
|
800
|
-
return {
|
|
801
|
-
sql: query,
|
|
802
|
-
selection
|
|
803
|
-
};
|
|
804
|
-
}
|
|
805
1128
|
}
|
|
806
1129
|
export {
|
|
807
1130
|
PgDialect
|