@erfanium/drizzle-orm 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/_relations.cjs +1 -1
- package/_relations.d.cts +196 -174
- package/_relations.d.ts +196 -174
- package/_relations.js +1 -1
- package/alias.cjs +2 -2
- package/alias.d.cts +44 -47
- package/alias.d.ts +44 -47
- package/alias.js +2 -2
- package/arktype/column.cjs +1 -1
- package/arktype/column.d.cts +12 -20
- package/arktype/column.d.ts +12 -20
- package/arktype/column.js +1 -1
- package/arktype/column.types.d.cts +9 -13
- package/arktype/column.types.d.ts +9 -13
- package/arktype/index.d.cts +5 -6
- package/arktype/index.d.ts +5 -6
- package/arktype/schema.cjs +1 -1
- package/arktype/schema.d.cts +4 -9
- package/arktype/schema.d.ts +4 -9
- package/arktype/schema.js +1 -1
- package/arktype/schema.types.d.cts +18 -23
- package/arktype/schema.types.d.ts +18 -23
- package/arktype/schema.types.internal.d.cts +23 -21
- package/arktype/schema.types.internal.d.ts +23 -21
- package/aws-data-api/common/index.d.cts +3 -9
- package/aws-data-api/common/index.d.ts +3 -9
- package/aws-data-api/pg/codecs.d.cts +1 -9
- package/aws-data-api/pg/codecs.d.ts +1 -9
- package/aws-data-api/pg/driver.cjs +1 -1
- package/aws-data-api/pg/driver.d.cts +36 -39
- package/aws-data-api/pg/driver.d.ts +36 -39
- package/aws-data-api/pg/driver.js +1 -1
- package/aws-data-api/pg/index.cjs +1 -1
- package/aws-data-api/pg/index.d.cts +3 -4
- package/aws-data-api/pg/index.d.ts +3 -4
- package/aws-data-api/pg/index.js +1 -1
- package/aws-data-api/pg/migrator.d.cts +4 -10
- package/aws-data-api/pg/migrator.d.ts +4 -10
- package/aws-data-api/pg/session.cjs +1 -1
- package/aws-data-api/pg/session.d.cts +40 -45
- package/aws-data-api/pg/session.d.ts +40 -45
- package/aws-data-api/pg/session.js +1 -1
- package/batch.d.cts +6 -9
- package/batch.d.ts +6 -9
- package/better-sqlite3/driver.d.cts +27 -25
- package/better-sqlite3/driver.d.ts +27 -25
- package/better-sqlite3/index.d.cts +2 -3
- package/better-sqlite3/index.d.ts +2 -3
- package/better-sqlite3/migrator.d.cts +4 -10
- package/better-sqlite3/migrator.d.ts +4 -10
- package/better-sqlite3/session.cjs +1 -1
- package/better-sqlite3/session.d.cts +31 -35
- package/better-sqlite3/session.d.ts +31 -35
- package/better-sqlite3/session.js +1 -1
- package/bun-sql/driver.d.cts +86 -63
- package/bun-sql/driver.d.ts +86 -63
- package/bun-sql/index.d.cts +2 -3
- package/bun-sql/index.d.ts +2 -3
- package/bun-sql/migrator.d.cts +10 -16
- package/bun-sql/migrator.d.ts +10 -16
- package/bun-sql/mysql/codecs.d.cts +1 -9
- package/bun-sql/mysql/codecs.d.ts +1 -9
- package/bun-sql/mysql/driver.d.cts +27 -25
- package/bun-sql/mysql/driver.d.ts +27 -25
- package/bun-sql/mysql/index.d.cts +3 -4
- package/bun-sql/mysql/index.d.ts +3 -4
- package/bun-sql/mysql/migrator.d.cts +4 -10
- package/bun-sql/mysql/migrator.d.ts +4 -10
- package/bun-sql/mysql/session.cjs +1 -1
- package/bun-sql/mysql/session.d.cts +34 -39
- package/bun-sql/mysql/session.d.ts +34 -39
- package/bun-sql/mysql/session.js +1 -1
- package/bun-sql/postgres/codecs.d.cts +1 -9
- package/bun-sql/postgres/codecs.d.ts +1 -9
- package/bun-sql/postgres/driver.cjs +1 -1
- package/bun-sql/postgres/driver.d.cts +27 -25
- package/bun-sql/postgres/driver.d.ts +27 -25
- package/bun-sql/postgres/driver.js +1 -1
- package/bun-sql/postgres/index.cjs +1 -1
- package/bun-sql/postgres/index.d.cts +3 -4
- package/bun-sql/postgres/index.d.ts +3 -4
- package/bun-sql/postgres/index.js +1 -1
- package/bun-sql/postgres/migrator.d.cts +4 -10
- package/bun-sql/postgres/migrator.d.ts +4 -10
- package/bun-sql/postgres/session.cjs +1 -1
- package/bun-sql/postgres/session.d.cts +35 -40
- package/bun-sql/postgres/session.d.ts +35 -40
- package/bun-sql/postgres/session.js +1 -1
- package/bun-sql/session.d.cts +1 -2
- package/bun-sql/session.d.ts +1 -2
- package/bun-sql/sqlite/driver.d.cts +27 -25
- package/bun-sql/sqlite/driver.d.ts +27 -25
- package/bun-sql/sqlite/index.d.cts +2 -3
- package/bun-sql/sqlite/index.d.ts +2 -3
- package/bun-sql/sqlite/migrator.d.cts +4 -10
- package/bun-sql/sqlite/migrator.d.ts +4 -10
- package/bun-sql/sqlite/session.cjs +1 -1
- package/bun-sql/sqlite/session.d.cts +34 -38
- package/bun-sql/sqlite/session.d.ts +34 -38
- package/bun-sql/sqlite/session.js +1 -1
- package/bun-sqlite/driver.d.cts +46 -43
- package/bun-sqlite/driver.d.ts +46 -43
- package/bun-sqlite/index.d.cts +2 -3
- package/bun-sqlite/index.d.ts +2 -3
- package/bun-sqlite/migrator.d.cts +5 -10
- package/bun-sqlite/migrator.d.ts +5 -10
- package/bun-sqlite/session.cjs +1 -1
- package/bun-sqlite/session.d.cts +33 -37
- package/bun-sqlite/session.d.ts +33 -37
- package/bun-sqlite/session.js +1 -1
- package/cache/core/cache-effect.d.cts +56 -61
- package/cache/core/cache-effect.d.ts +56 -61
- package/cache/core/cache-effect.js +2 -2
- package/cache/core/cache-effect.js.map +1 -1
- package/cache/core/cache.d.cts +54 -59
- package/cache/core/cache.d.ts +54 -59
- package/cache/core/index.d.cts +1 -2
- package/cache/core/index.d.ts +1 -2
- package/cache/core/types.d.cts +31 -35
- package/cache/core/types.d.ts +31 -35
- package/cache/upstash/cache.d.cts +57 -66
- package/cache/upstash/cache.d.ts +57 -66
- package/cache/upstash/index.d.cts +1 -2
- package/cache/upstash/index.d.ts +1 -2
- package/casing.d.cts +4 -8
- package/casing.d.ts +4 -8
- package/cockroach/driver.d.cts +38 -35
- package/cockroach/driver.d.ts +38 -35
- package/cockroach/index.d.cts +2 -3
- package/cockroach/index.d.ts +2 -3
- package/cockroach/migrator.d.cts +3 -9
- package/cockroach/migrator.d.ts +3 -9
- package/cockroach/session.cjs +1 -1
- package/cockroach/session.d.cts +44 -47
- package/cockroach/session.d.ts +44 -47
- package/cockroach/session.js +4 -4
- package/cockroach/session.js.map +1 -1
- package/cockroach-core/alias.d.cts +4 -9
- package/cockroach-core/alias.d.ts +4 -9
- package/cockroach-core/casing.d.cts +11 -18
- package/cockroach-core/casing.d.ts +11 -18
- package/cockroach-core/checks.d.cts +16 -21
- package/cockroach-core/checks.d.ts +16 -21
- package/cockroach-core/columns/all.d.cts +51 -56
- package/cockroach-core/columns/all.d.ts +51 -56
- package/cockroach-core/columns/bigint.d.cts +30 -35
- package/cockroach-core/columns/bigint.d.ts +30 -35
- package/cockroach-core/columns/bit.d.cts +22 -27
- package/cockroach-core/columns/bit.d.ts +22 -27
- package/cockroach-core/columns/bool.d.cts +14 -19
- package/cockroach-core/columns/bool.d.ts +14 -19
- package/cockroach-core/columns/char.d.cts +25 -30
- package/cockroach-core/columns/char.d.ts +25 -30
- package/cockroach-core/columns/common.cjs +1 -1
- package/cockroach-core/columns/common.d.cts +87 -90
- package/cockroach-core/columns/common.d.ts +87 -90
- package/cockroach-core/columns/common.js +1 -1
- package/cockroach-core/columns/custom.d.cts +247 -252
- package/cockroach-core/columns/custom.d.ts +247 -252
- package/cockroach-core/columns/date.common.d.cts +6 -12
- package/cockroach-core/columns/date.common.d.ts +6 -12
- package/cockroach-core/columns/date.d.cts +30 -35
- package/cockroach-core/columns/date.d.ts +30 -35
- package/cockroach-core/columns/decimal.d.cts +65 -70
- package/cockroach-core/columns/decimal.d.ts +65 -70
- package/cockroach-core/columns/enum.d.cts +50 -55
- package/cockroach-core/columns/enum.d.ts +50 -55
- package/cockroach-core/columns/float.d.cts +15 -20
- package/cockroach-core/columns/float.d.ts +15 -20
- package/cockroach-core/columns/geometry.d.cts +49 -54
- package/cockroach-core/columns/geometry.d.ts +49 -54
- package/cockroach-core/columns/index.cjs +1 -1
- package/cockroach-core/columns/index.d.cts +25 -26
- package/cockroach-core/columns/index.d.ts +25 -26
- package/cockroach-core/columns/index.js +1 -1
- package/cockroach-core/columns/inet.d.cts +13 -18
- package/cockroach-core/columns/inet.d.ts +13 -18
- package/cockroach-core/columns/int.common.d.cts +9 -14
- package/cockroach-core/columns/int.common.d.ts +9 -14
- package/cockroach-core/columns/integer.d.cts +15 -20
- package/cockroach-core/columns/integer.d.ts +15 -20
- package/cockroach-core/columns/interval.d.cts +22 -27
- package/cockroach-core/columns/interval.d.ts +22 -27
- package/cockroach-core/columns/jsonb.d.cts +17 -22
- package/cockroach-core/columns/jsonb.d.ts +17 -22
- package/cockroach-core/columns/real.d.cts +17 -22
- package/cockroach-core/columns/real.d.ts +17 -22
- package/cockroach-core/columns/smallint.d.cts +16 -21
- package/cockroach-core/columns/smallint.d.ts +16 -21
- package/cockroach-core/columns/string.d.cts +29 -34
- package/cockroach-core/columns/string.d.ts +29 -34
- package/cockroach-core/columns/time.d.cts +26 -31
- package/cockroach-core/columns/time.d.ts +26 -31
- package/cockroach-core/columns/timestamp.d.cts +44 -49
- package/cockroach-core/columns/timestamp.d.ts +44 -49
- package/cockroach-core/columns/utils.d.cts +3 -7
- package/cockroach-core/columns/utils.d.ts +3 -7
- package/cockroach-core/columns/uuid.d.cts +17 -22
- package/cockroach-core/columns/uuid.d.ts +17 -22
- package/cockroach-core/columns/varbit.d.cts +18 -23
- package/cockroach-core/columns/varbit.d.ts +18 -23
- package/cockroach-core/columns/varchar.d.cts +24 -29
- package/cockroach-core/columns/varchar.d.ts +24 -29
- package/cockroach-core/columns/vector.d.cts +20 -25
- package/cockroach-core/columns/vector.d.ts +20 -25
- package/cockroach-core/db.cjs +1 -1
- package/cockroach-core/db.d.cts +277 -280
- package/cockroach-core/db.d.ts +277 -280
- package/cockroach-core/db.js +1 -1
- package/cockroach-core/dialect.cjs +6 -6
- package/cockroach-core/dialect.d.cts +62 -124
- package/cockroach-core/dialect.d.ts +62 -124
- package/cockroach-core/dialect.js +5 -5
- package/cockroach-core/expressions.d.cts +7 -15
- package/cockroach-core/expressions.d.ts +7 -15
- package/cockroach-core/foreign-keys.d.cts +49 -48
- package/cockroach-core/foreign-keys.d.ts +49 -48
- package/cockroach-core/index.cjs +14 -14
- package/cockroach-core/index.d.cts +21 -52
- package/cockroach-core/index.d.ts +21 -52
- package/cockroach-core/index.js +14 -14
- package/cockroach-core/indexes.d.cts +69 -61
- package/cockroach-core/indexes.d.ts +69 -61
- package/cockroach-core/policies.d.cts +22 -27
- package/cockroach-core/policies.d.ts +22 -27
- package/cockroach-core/primary-keys.d.cts +19 -24
- package/cockroach-core/primary-keys.d.ts +19 -24
- package/cockroach-core/query-builders/count.d.cts +30 -33
- package/cockroach-core/query-builders/count.d.ts +30 -33
- package/cockroach-core/query-builders/delete.cjs +1 -1
- package/cockroach-core/query-builders/delete.d.cts +98 -103
- package/cockroach-core/query-builders/delete.d.ts +98 -103
- package/cockroach-core/query-builders/delete.js +1 -1
- package/cockroach-core/query-builders/index.d.cts +7 -8
- package/cockroach-core/query-builders/index.d.ts +7 -8
- package/cockroach-core/query-builders/insert.cjs +1 -1
- package/cockroach-core/query-builders/insert.d.cts +168 -166
- package/cockroach-core/query-builders/insert.d.ts +168 -166
- package/cockroach-core/query-builders/insert.js +1 -1
- package/cockroach-core/query-builders/query-builder.d.cts +35 -39
- package/cockroach-core/query-builders/query-builder.d.ts +35 -39
- package/cockroach-core/query-builders/query.d.cts +44 -49
- package/cockroach-core/query-builders/query.d.ts +44 -49
- package/cockroach-core/query-builders/raw.d.cts +21 -25
- package/cockroach-core/query-builders/raw.d.ts +21 -25
- package/cockroach-core/query-builders/refresh-materialized-view.d.cts +25 -30
- package/cockroach-core/query-builders/refresh-materialized-view.d.ts +25 -30
- package/cockroach-core/query-builders/select.cjs +3 -3
- package/cockroach-core/query-builders/select.d.cts +601 -612
- package/cockroach-core/query-builders/select.d.ts +601 -612
- package/cockroach-core/query-builders/select.js +3 -3
- package/cockroach-core/query-builders/select.types.d.cts +124 -126
- package/cockroach-core/query-builders/select.types.d.ts +124 -126
- package/cockroach-core/query-builders/update.cjs +2 -2
- package/cockroach-core/query-builders/update.d.cts +161 -155
- package/cockroach-core/query-builders/update.d.ts +161 -155
- package/cockroach-core/query-builders/update.js +2 -2
- package/cockroach-core/roles.d.cts +10 -15
- package/cockroach-core/roles.d.ts +10 -15
- package/cockroach-core/schema.cjs +2 -2
- package/cockroach-core/schema.d.cts +25 -30
- package/cockroach-core/schema.d.ts +25 -30
- package/cockroach-core/schema.js +2 -2
- package/cockroach-core/sequence.d.cts +15 -20
- package/cockroach-core/sequence.d.ts +15 -20
- package/cockroach-core/session.d.cts +54 -59
- package/cockroach-core/session.d.ts +54 -59
- package/cockroach-core/subquery.d.cts +16 -21
- package/cockroach-core/subquery.d.ts +16 -21
- package/cockroach-core/table.d.cts +38 -42
- package/cockroach-core/table.d.ts +38 -42
- package/cockroach-core/unique-constraint.d.cts +20 -25
- package/cockroach-core/unique-constraint.d.ts +20 -25
- package/cockroach-core/utils/array.d.cts +3 -7
- package/cockroach-core/utils/array.d.ts +3 -7
- package/cockroach-core/utils/index.d.cts +1 -2
- package/cockroach-core/utils/index.d.ts +1 -2
- package/cockroach-core/utils.cjs +3 -3
- package/cockroach-core/utils.d.cts +44 -48
- package/cockroach-core/utils.d.ts +44 -48
- package/cockroach-core/utils.js +3 -3
- package/cockroach-core/view-base.d.cts +7 -12
- package/cockroach-core/view-base.d.ts +7 -12
- package/cockroach-core/view.cjs +1 -1
- package/cockroach-core/view.d.cts +97 -107
- package/cockroach-core/view.d.ts +97 -107
- package/cockroach-core/view.js +1 -1
- package/codecs.d.cts +58 -62
- package/codecs.d.ts +58 -62
- package/column-builder.d.cts +212 -214
- package/column-builder.d.ts +212 -214
- package/column-common.d.cts +1 -5
- package/column-common.d.ts +1 -5
- package/column.cjs +1 -1
- package/column.d.cts +55 -58
- package/column.d.ts +55 -58
- package/column.js +1 -1
- package/d1/driver.d.cts +14 -19
- package/d1/driver.d.ts +14 -19
- package/d1/index.d.cts +2 -3
- package/d1/index.d.ts +2 -3
- package/d1/migrator.d.cts +4 -9
- package/d1/migrator.d.ts +4 -9
- package/d1/session.cjs +2 -2
- package/d1/session.d.cts +45 -49
- package/d1/session.d.ts +45 -49
- package/d1/session.js +2 -2
- package/durable-sqlite/driver.d.cts +9 -14
- package/durable-sqlite/driver.d.ts +9 -14
- package/durable-sqlite/index.d.cts +2 -3
- package/durable-sqlite/index.d.ts +2 -3
- package/durable-sqlite/migrator.d.cts +7 -11
- package/durable-sqlite/migrator.d.ts +7 -11
- package/durable-sqlite/session.d.cts +30 -34
- package/durable-sqlite/session.d.ts +30 -34
- package/effect-core/defaults.cjs +1 -1
- package/effect-core/defaults.d.cts +4 -9
- package/effect-core/defaults.d.ts +4 -9
- package/effect-core/defaults.js +1 -1
- package/effect-core/errors.cjs +2 -1
- package/effect-core/errors.cjs.map +1 -1
- package/effect-core/errors.d.cts +27 -32
- package/effect-core/errors.d.ts +27 -32
- package/effect-core/errors.js +12 -11
- package/effect-core/errors.js.map +1 -1
- package/effect-core/index.cjs +2 -2
- package/effect-core/index.d.cts +3 -4
- package/effect-core/index.d.ts +3 -4
- package/effect-core/index.js +2 -2
- package/effect-core/logger.d.cts +60 -64
- package/effect-core/logger.d.ts +60 -64
- package/effect-core/query-effect.d.cts +7 -12
- package/effect-core/query-effect.d.ts +7 -12
- package/effect-d1/driver.cjs +1 -1
- package/effect-d1/driver.d.cts +18 -23
- package/effect-d1/driver.d.ts +18 -23
- package/effect-d1/driver.js +1 -1
- package/effect-d1/index.d.cts +3 -4
- package/effect-d1/index.d.ts +3 -4
- package/effect-d1/session.d.cts +35 -40
- package/effect-d1/session.d.ts +35 -40
- package/effect-libsql/driver.cjs +1 -1
- package/effect-libsql/driver.d.cts +17 -22
- package/effect-libsql/driver.d.ts +17 -22
- package/effect-libsql/driver.js +1 -1
- package/effect-libsql/index.d.cts +3 -4
- package/effect-libsql/index.d.ts +3 -4
- package/effect-libsql/migrator.d.cts +4 -12
- package/effect-libsql/migrator.d.ts +4 -12
- package/effect-libsql/session.d.cts +35 -40
- package/effect-libsql/session.d.ts +35 -40
- package/effect-mysql2/codecs.d.cts +1 -9
- package/effect-mysql2/codecs.d.ts +1 -9
- package/effect-mysql2/driver.cjs +2 -2
- package/effect-mysql2/driver.d.cts +17 -22
- package/effect-mysql2/driver.d.ts +17 -22
- package/effect-mysql2/driver.js +2 -2
- package/effect-mysql2/index.cjs +1 -1
- package/effect-mysql2/index.d.cts +4 -5
- package/effect-mysql2/index.d.ts +4 -5
- package/effect-mysql2/index.js +1 -1
- package/effect-mysql2/migrator.d.cts +4 -12
- package/effect-mysql2/migrator.d.ts +4 -12
- package/effect-mysql2/session.d.cts +37 -42
- package/effect-mysql2/session.d.ts +37 -42
- package/effect-pglite/codecs.d.cts +1 -9
- package/effect-pglite/codecs.d.ts +1 -9
- package/effect-pglite/driver.cjs +3 -3
- package/effect-pglite/driver.d.cts +17 -22
- package/effect-pglite/driver.d.ts +17 -22
- package/effect-pglite/driver.js +3 -3
- package/effect-pglite/index.cjs +1 -1
- package/effect-pglite/index.d.cts +4 -5
- package/effect-pglite/index.d.ts +4 -5
- package/effect-pglite/index.js +1 -1
- package/effect-pglite/migrator.d.cts +4 -12
- package/effect-pglite/migrator.d.ts +4 -12
- package/effect-pglite/session.d.cts +37 -42
- package/effect-pglite/session.d.ts +37 -42
- package/effect-postgres/codecs.d.cts +1 -9
- package/effect-postgres/codecs.d.ts +1 -9
- package/effect-postgres/driver.cjs +3 -3
- package/effect-postgres/driver.d.cts +17 -22
- package/effect-postgres/driver.d.ts +17 -22
- package/effect-postgres/driver.js +3 -3
- package/effect-postgres/index.cjs +1 -1
- package/effect-postgres/index.d.cts +4 -5
- package/effect-postgres/index.d.ts +4 -5
- package/effect-postgres/index.js +1 -1
- package/effect-postgres/migrator.d.cts +4 -12
- package/effect-postgres/migrator.d.ts +4 -12
- package/effect-postgres/session.d.cts +37 -42
- package/effect-postgres/session.d.ts +37 -42
- package/effect-schema/column.d.cts +9 -14
- package/effect-schema/column.d.ts +9 -14
- package/effect-schema/column.types.d.cts +23 -27
- package/effect-schema/column.types.d.ts +23 -27
- package/effect-schema/index.d.cts +5 -6
- package/effect-schema/index.d.ts +5 -6
- package/effect-schema/schema.cjs +1 -1
- package/effect-schema/schema.d.cts +4 -9
- package/effect-schema/schema.d.ts +4 -9
- package/effect-schema/schema.js +1 -1
- package/effect-schema/schema.types.d.cts +19 -24
- package/effect-schema/schema.types.d.ts +19 -24
- package/effect-schema/schema.types.internal.d.cts +26 -24
- package/effect-schema/schema.types.internal.d.ts +26 -24
- package/effect-sqlite-bun/driver.cjs +1 -1
- package/effect-sqlite-bun/driver.d.cts +17 -22
- package/effect-sqlite-bun/driver.d.ts +17 -22
- package/effect-sqlite-bun/driver.js +1 -1
- package/effect-sqlite-bun/index.d.cts +3 -4
- package/effect-sqlite-bun/index.d.ts +3 -4
- package/effect-sqlite-bun/migrator.d.cts +4 -12
- package/effect-sqlite-bun/migrator.d.ts +4 -12
- package/effect-sqlite-bun/session.d.cts +35 -40
- package/effect-sqlite-bun/session.d.ts +35 -40
- package/effect-sqlite-do/driver.cjs +1 -1
- package/effect-sqlite-do/driver.d.cts +20 -24
- package/effect-sqlite-do/driver.d.ts +20 -24
- package/effect-sqlite-do/driver.js +1 -1
- package/effect-sqlite-do/index.d.cts +3 -4
- package/effect-sqlite-do/index.d.ts +3 -4
- package/effect-sqlite-do/migrator.d.cts +6 -13
- package/effect-sqlite-do/migrator.d.ts +6 -13
- package/effect-sqlite-do/session.d.cts +36 -41
- package/effect-sqlite-do/session.d.ts +36 -41
- package/effect-sqlite-node/driver.cjs +1 -1
- package/effect-sqlite-node/driver.d.cts +17 -22
- package/effect-sqlite-node/driver.d.ts +17 -22
- package/effect-sqlite-node/driver.js +1 -1
- package/effect-sqlite-node/index.d.cts +3 -4
- package/effect-sqlite-node/index.d.ts +3 -4
- package/effect-sqlite-node/migrator.d.cts +4 -12
- package/effect-sqlite-node/migrator.d.ts +4 -12
- package/effect-sqlite-node/session.d.cts +35 -40
- package/effect-sqlite-node/session.d.ts +35 -40
- package/effect-sqlite-wasm/driver.cjs +2 -2
- package/effect-sqlite-wasm/driver.d.cts +17 -22
- package/effect-sqlite-wasm/driver.d.ts +17 -22
- package/effect-sqlite-wasm/driver.js +2 -2
- package/effect-sqlite-wasm/index.d.cts +3 -4
- package/effect-sqlite-wasm/index.d.ts +3 -4
- package/effect-sqlite-wasm/migrator.d.cts +6 -13
- package/effect-sqlite-wasm/migrator.d.ts +6 -13
- package/effect-sqlite-wasm/session.d.cts +35 -40
- package/effect-sqlite-wasm/session.d.ts +35 -40
- package/entity.d.cts +6 -10
- package/entity.d.ts +6 -10
- package/errors.cjs +28 -1
- package/errors.cjs.map +1 -1
- package/errors.d.cts +24 -24
- package/errors.d.ts +24 -24
- package/errors.js +28 -2
- package/errors.js.map +1 -1
- package/expo-sqlite/driver.d.cts +10 -15
- package/expo-sqlite/driver.d.ts +10 -15
- package/expo-sqlite/index.cjs +1 -1
- package/expo-sqlite/index.d.cts +3 -4
- package/expo-sqlite/index.d.ts +3 -4
- package/expo-sqlite/index.js +1 -1
- package/expo-sqlite/migrator.d.cts +17 -22
- package/expo-sqlite/migrator.d.ts +17 -22
- package/expo-sqlite/query.cjs +1 -1
- package/expo-sqlite/query.d.cts +6 -11
- package/expo-sqlite/query.d.ts +6 -11
- package/expo-sqlite/query.js +1 -1
- package/expo-sqlite/session.cjs +1 -1
- package/expo-sqlite/session.d.cts +31 -35
- package/expo-sqlite/session.d.ts +31 -35
- package/expo-sqlite/session.js +1 -1
- package/index.cjs +8 -7
- package/index.d.cts +14 -19
- package/index.d.ts +14 -19
- package/index.js +9 -9
- package/libsql/driver-core.d.cts +8 -13
- package/libsql/driver-core.d.ts +8 -13
- package/libsql/driver.d.cts +22 -19
- package/libsql/driver.d.ts +22 -19
- package/libsql/http/index.d.cts +21 -19
- package/libsql/http/index.d.ts +21 -19
- package/libsql/index.d.cts +2 -4
- package/libsql/index.d.ts +2 -4
- package/libsql/migrator.d.cts +6 -11
- package/libsql/migrator.d.ts +6 -11
- package/libsql/node/index.d.cts +21 -19
- package/libsql/node/index.d.ts +21 -19
- package/libsql/session.cjs +1 -1
- package/libsql/session.d.cts +38 -42
- package/libsql/session.d.ts +38 -42
- package/libsql/session.js +1 -1
- package/libsql/sqlite3/index.d.cts +21 -19
- package/libsql/sqlite3/index.d.ts +21 -19
- package/libsql/wasm/index.d.cts +21 -19
- package/libsql/wasm/index.d.ts +21 -19
- package/libsql/web/index.d.cts +21 -19
- package/libsql/web/index.d.ts +21 -19
- package/libsql/ws/index.d.cts +21 -19
- package/libsql/ws/index.d.ts +21 -19
- package/logger.d.cts +18 -23
- package/logger.d.ts +18 -23
- package/migrator.d.cts +25 -29
- package/migrator.d.ts +25 -29
- package/migrator.utils.d.cts +10 -15
- package/migrator.utils.d.ts +10 -15
- package/mssql-core/alias.d.cts +4 -9
- package/mssql-core/alias.d.ts +4 -9
- package/mssql-core/casing.d.cts +9 -16
- package/mssql-core/casing.d.ts +9 -16
- package/mssql-core/checks.d.cts +16 -21
- package/mssql-core/checks.d.ts +16 -21
- package/mssql-core/columns/all.d.cts +44 -49
- package/mssql-core/columns/all.d.ts +44 -49
- package/mssql-core/columns/bigint.d.cts +20 -24
- package/mssql-core/columns/bigint.d.ts +20 -24
- package/mssql-core/columns/binary.d.cts +18 -23
- package/mssql-core/columns/binary.d.ts +18 -23
- package/mssql-core/columns/bit.d.cts +14 -19
- package/mssql-core/columns/bit.d.ts +14 -19
- package/mssql-core/columns/char.d.cts +24 -29
- package/mssql-core/columns/char.d.ts +24 -29
- package/mssql-core/columns/common.d.cts +50 -53
- package/mssql-core/columns/common.d.ts +50 -53
- package/mssql-core/columns/custom.d.cts +247 -252
- package/mssql-core/columns/custom.d.ts +247 -252
- package/mssql-core/columns/date.common.d.cts +10 -16
- package/mssql-core/columns/date.common.d.ts +10 -16
- package/mssql-core/columns/date.d.cts +32 -37
- package/mssql-core/columns/date.d.ts +32 -37
- package/mssql-core/columns/datetime.d.cts +31 -36
- package/mssql-core/columns/datetime.d.ts +31 -36
- package/mssql-core/columns/datetime2.d.cts +32 -36
- package/mssql-core/columns/datetime2.d.ts +32 -36
- package/mssql-core/columns/datetimeoffset.d.cts +33 -37
- package/mssql-core/columns/datetimeoffset.d.ts +33 -37
- package/mssql-core/columns/decimal.d.cts +48 -53
- package/mssql-core/columns/decimal.d.ts +48 -53
- package/mssql-core/columns/float.d.cts +17 -22
- package/mssql-core/columns/float.d.ts +17 -22
- package/mssql-core/columns/index.d.cts +21 -22
- package/mssql-core/columns/index.d.ts +21 -22
- package/mssql-core/columns/int.d.cts +13 -18
- package/mssql-core/columns/int.d.ts +13 -18
- package/mssql-core/columns/numeric.d.cts +48 -53
- package/mssql-core/columns/numeric.d.ts +48 -53
- package/mssql-core/columns/real.d.cts +14 -19
- package/mssql-core/columns/real.d.ts +14 -19
- package/mssql-core/columns/smallint.d.cts +14 -19
- package/mssql-core/columns/smallint.d.ts +14 -19
- package/mssql-core/columns/text.d.cts +30 -35
- package/mssql-core/columns/text.d.ts +30 -35
- package/mssql-core/columns/time.d.cts +30 -35
- package/mssql-core/columns/time.d.ts +30 -35
- package/mssql-core/columns/tinyint.d.cts +14 -19
- package/mssql-core/columns/tinyint.d.ts +14 -19
- package/mssql-core/columns/varbinary.d.cts +17 -22
- package/mssql-core/columns/varbinary.d.ts +17 -22
- package/mssql-core/columns/varchar.d.cts +46 -51
- package/mssql-core/columns/varchar.d.ts +46 -51
- package/mssql-core/db.cjs +1 -1
- package/mssql-core/db.d.cts +224 -231
- package/mssql-core/db.d.ts +224 -231
- package/mssql-core/db.js +1 -1
- package/mssql-core/dialect.cjs +5 -5
- package/mssql-core/dialect.d.cts +56 -108
- package/mssql-core/dialect.d.ts +56 -108
- package/mssql-core/dialect.js +5 -5
- package/mssql-core/expressions.d.cts +7 -15
- package/mssql-core/expressions.d.ts +7 -15
- package/mssql-core/foreign-keys.d.cts +45 -47
- package/mssql-core/foreign-keys.d.ts +45 -47
- package/mssql-core/index.cjs +10 -10
- package/mssql-core/index.d.cts +18 -44
- package/mssql-core/index.d.ts +18 -44
- package/mssql-core/index.js +10 -10
- package/mssql-core/indexes.d.cts +42 -45
- package/mssql-core/indexes.d.ts +42 -45
- package/mssql-core/primary-keys.d.cts +19 -24
- package/mssql-core/primary-keys.d.ts +19 -24
- package/mssql-core/query-builders/delete.d.cts +92 -96
- package/mssql-core/query-builders/delete.d.ts +92 -96
- package/mssql-core/query-builders/index.d.cts +6 -7
- package/mssql-core/query-builders/index.d.ts +6 -7
- package/mssql-core/query-builders/insert.d.cts +74 -76
- package/mssql-core/query-builders/insert.d.ts +74 -76
- package/mssql-core/query-builders/query-builder.d.cts +29 -34
- package/mssql-core/query-builders/query-builder.d.ts +29 -34
- package/mssql-core/query-builders/query.d.cts +40 -45
- package/mssql-core/query-builders/query.d.ts +40 -45
- package/mssql-core/query-builders/select.cjs +2 -2
- package/mssql-core/query-builders/select.d.cts +444 -455
- package/mssql-core/query-builders/select.d.ts +444 -455
- package/mssql-core/query-builders/select.js +2 -2
- package/mssql-core/query-builders/select.types.d.cts +129 -131
- package/mssql-core/query-builders/select.types.d.ts +129 -131
- package/mssql-core/query-builders/update.d.cts +137 -136
- package/mssql-core/query-builders/update.d.ts +137 -136
- package/mssql-core/schema.d.cts +14 -19
- package/mssql-core/schema.d.ts +14 -19
- package/mssql-core/session.d.cts +57 -62
- package/mssql-core/session.d.ts +57 -62
- package/mssql-core/subquery.d.cts +16 -21
- package/mssql-core/subquery.d.ts +16 -21
- package/mssql-core/table.d.cts +37 -42
- package/mssql-core/table.d.ts +37 -42
- package/mssql-core/unique-constraint.d.cts +21 -26
- package/mssql-core/unique-constraint.d.ts +21 -26
- package/mssql-core/utils.cjs +3 -3
- package/mssql-core/utils.d.cts +29 -35
- package/mssql-core/utils.d.ts +29 -35
- package/mssql-core/utils.js +3 -3
- package/mssql-core/view-base.d.cts +8 -12
- package/mssql-core/view-base.d.ts +8 -12
- package/mssql-core/view-common.d.cts +1 -5
- package/mssql-core/view-common.d.ts +1 -5
- package/mssql-core/view.cjs +1 -1
- package/mssql-core/view.d.cts +58 -66
- package/mssql-core/view.d.ts +58 -66
- package/mssql-core/view.js +1 -1
- package/mysql-core/alias.d.cts +4 -9
- package/mysql-core/alias.d.ts +4 -9
- package/mysql-core/async/count.d.cts +20 -29
- package/mysql-core/async/count.d.ts +20 -29
- package/mysql-core/async/db.cjs +1 -1
- package/mysql-core/async/db.d.cts +260 -264
- package/mysql-core/async/db.d.ts +260 -264
- package/mysql-core/async/db.js +1 -1
- package/mysql-core/async/delete.d.cts +23 -27
- package/mysql-core/async/delete.d.ts +23 -27
- package/mysql-core/async/index.d.cts +9 -10
- package/mysql-core/async/index.d.ts +9 -10
- package/mysql-core/async/insert.d.cts +24 -28
- package/mysql-core/async/insert.d.ts +24 -28
- package/mysql-core/async/query.d.cts +17 -21
- package/mysql-core/async/query.d.ts +17 -21
- package/mysql-core/async/raw.d.cts +25 -29
- package/mysql-core/async/raw.d.ts +25 -29
- package/mysql-core/async/select.d.cts +26 -30
- package/mysql-core/async/select.d.ts +26 -30
- package/mysql-core/async/session.cjs +2 -2
- package/mysql-core/async/session.d.cts +45 -50
- package/mysql-core/async/session.d.ts +45 -50
- package/mysql-core/async/session.js +2 -2
- package/mysql-core/async/update.d.cts +23 -27
- package/mysql-core/async/update.d.ts +23 -27
- package/mysql-core/casing.d.cts +9 -16
- package/mysql-core/casing.d.ts +9 -16
- package/mysql-core/checks.d.cts +16 -21
- package/mysql-core/checks.d.ts +16 -21
- package/mysql-core/codecs.d.cts +2802 -2808
- package/mysql-core/codecs.d.ts +2802 -2808
- package/mysql-core/columns/all.d.cts +58 -63
- package/mysql-core/columns/all.d.ts +58 -63
- package/mysql-core/columns/bigint.d.cts +43 -48
- package/mysql-core/columns/bigint.d.ts +43 -48
- package/mysql-core/columns/binary.d.cts +18 -23
- package/mysql-core/columns/binary.d.ts +18 -23
- package/mysql-core/columns/blob.d.cts +41 -46
- package/mysql-core/columns/blob.d.ts +41 -46
- package/mysql-core/columns/boolean.d.cts +13 -18
- package/mysql-core/columns/boolean.d.ts +13 -18
- package/mysql-core/columns/char.d.cts +26 -31
- package/mysql-core/columns/char.d.ts +26 -31
- package/mysql-core/columns/common.d.cts +40 -43
- package/mysql-core/columns/common.d.ts +40 -43
- package/mysql-core/columns/custom.d.cts +255 -260
- package/mysql-core/columns/custom.d.ts +255 -260
- package/mysql-core/columns/date.common.d.cts +18 -23
- package/mysql-core/columns/date.common.d.ts +18 -23
- package/mysql-core/columns/date.d.cts +33 -38
- package/mysql-core/columns/date.d.ts +33 -38
- package/mysql-core/columns/datetime.d.cts +39 -44
- package/mysql-core/columns/datetime.d.ts +39 -44
- package/mysql-core/columns/decimal.d.cts +49 -54
- package/mysql-core/columns/decimal.d.ts +49 -54
- package/mysql-core/columns/double.d.cts +22 -27
- package/mysql-core/columns/double.d.ts +22 -27
- package/mysql-core/columns/enum.d.cts +34 -39
- package/mysql-core/columns/enum.d.ts +34 -39
- package/mysql-core/columns/float.d.cts +22 -27
- package/mysql-core/columns/float.d.ts +22 -27
- package/mysql-core/columns/index.d.cts +26 -27
- package/mysql-core/columns/index.d.ts +26 -27
- package/mysql-core/columns/int.d.cts +17 -22
- package/mysql-core/columns/int.d.ts +17 -22
- package/mysql-core/columns/json.d.cts +14 -19
- package/mysql-core/columns/json.d.ts +14 -19
- package/mysql-core/columns/mediumint.d.cts +16 -21
- package/mysql-core/columns/mediumint.d.ts +16 -21
- package/mysql-core/columns/real.d.cts +19 -24
- package/mysql-core/columns/real.d.ts +19 -24
- package/mysql-core/columns/serial.d.cts +17 -22
- package/mysql-core/columns/serial.d.ts +17 -22
- package/mysql-core/columns/smallint.d.cts +16 -21
- package/mysql-core/columns/smallint.d.ts +16 -21
- package/mysql-core/columns/string.common.d.cts +16 -20
- package/mysql-core/columns/string.common.d.ts +16 -20
- package/mysql-core/columns/text.d.cts +32 -37
- package/mysql-core/columns/text.d.ts +32 -37
- package/mysql-core/columns/time.d.cts +17 -22
- package/mysql-core/columns/time.d.ts +17 -22
- package/mysql-core/columns/timestamp.d.cts +32 -37
- package/mysql-core/columns/timestamp.d.ts +32 -37
- package/mysql-core/columns/tinyint.d.cts +16 -21
- package/mysql-core/columns/tinyint.d.ts +16 -21
- package/mysql-core/columns/varbinary.d.cts +15 -20
- package/mysql-core/columns/varbinary.d.ts +15 -20
- package/mysql-core/columns/varchar.d.cts +20 -25
- package/mysql-core/columns/varchar.d.ts +20 -25
- package/mysql-core/columns/year.d.cts +13 -18
- package/mysql-core/columns/year.d.ts +13 -18
- package/mysql-core/dialect.cjs +4 -4
- package/mysql-core/dialect.d.cts +76 -144
- package/mysql-core/dialect.d.ts +76 -144
- package/mysql-core/dialect.js +4 -4
- package/mysql-core/effect/count.d.cts +21 -31
- package/mysql-core/effect/count.d.ts +21 -31
- package/mysql-core/effect/db.cjs +5 -5
- package/mysql-core/effect/db.d.cts +264 -267
- package/mysql-core/effect/db.d.ts +264 -267
- package/mysql-core/effect/db.js +5 -5
- package/mysql-core/effect/delete.d.cts +22 -26
- package/mysql-core/effect/delete.d.ts +22 -26
- package/mysql-core/effect/index.cjs +3 -3
- package/mysql-core/effect/index.d.cts +10 -11
- package/mysql-core/effect/index.d.ts +10 -11
- package/mysql-core/effect/index.js +3 -3
- package/mysql-core/effect/insert.d.cts +23 -27
- package/mysql-core/effect/insert.d.ts +23 -27
- package/mysql-core/effect/query.d.cts +18 -23
- package/mysql-core/effect/query.d.ts +18 -23
- package/mysql-core/effect/raw.d.cts +21 -25
- package/mysql-core/effect/raw.d.ts +21 -25
- package/mysql-core/effect/select.d.cts +25 -29
- package/mysql-core/effect/select.d.ts +25 -29
- package/mysql-core/effect/session.cjs +3 -3
- package/mysql-core/effect/session.d.cts +50 -55
- package/mysql-core/effect/session.d.ts +50 -55
- package/mysql-core/effect/session.js +2 -2
- package/mysql-core/effect/update.d.cts +22 -26
- package/mysql-core/effect/update.d.ts +22 -26
- package/mysql-core/effect/utils.d.cts +3 -8
- package/mysql-core/effect/utils.d.ts +3 -8
- package/mysql-core/expressions.d.cts +7 -15
- package/mysql-core/expressions.d.ts +7 -15
- package/mysql-core/foreign-keys.d.cts +45 -47
- package/mysql-core/foreign-keys.d.ts +45 -47
- package/mysql-core/index.cjs +5 -5
- package/mysql-core/index.d.cts +18 -57
- package/mysql-core/index.d.ts +18 -57
- package/mysql-core/index.js +5 -5
- package/mysql-core/indexes.d.cts +52 -55
- package/mysql-core/indexes.d.ts +52 -55
- package/mysql-core/primary-keys.d.cts +17 -22
- package/mysql-core/primary-keys.d.ts +17 -22
- package/mysql-core/query-builders/count.d.cts +21 -26
- package/mysql-core/query-builders/count.d.ts +21 -26
- package/mysql-core/query-builders/delete.d.cts +88 -92
- package/mysql-core/query-builders/delete.d.ts +88 -92
- package/mysql-core/query-builders/index.d.cts +6 -7
- package/mysql-core/query-builders/index.d.ts +6 -7
- package/mysql-core/query-builders/insert.d.cts +134 -127
- package/mysql-core/query-builders/insert.d.ts +134 -127
- package/mysql-core/query-builders/query-builder.cjs +1 -1
- package/mysql-core/query-builders/query-builder.d.cts +27 -31
- package/mysql-core/query-builders/query-builder.d.ts +27 -31
- package/mysql-core/query-builders/query-builder.js +1 -1
- package/mysql-core/query-builders/query.d.cts +51 -56
- package/mysql-core/query-builders/query.d.ts +51 -56
- package/mysql-core/query-builders/raw.d.cts +19 -23
- package/mysql-core/query-builders/raw.d.ts +19 -23
- package/mysql-core/query-builders/select.cjs +2 -2
- package/mysql-core/query-builders/select.d.cts +630 -645
- package/mysql-core/query-builders/select.d.ts +630 -645
- package/mysql-core/query-builders/select.js +2 -2
- package/mysql-core/query-builders/select.types.d.cts +121 -123
- package/mysql-core/query-builders/select.types.d.ts +121 -123
- package/mysql-core/query-builders/update.d.cts +111 -113
- package/mysql-core/query-builders/update.d.ts +111 -113
- package/mysql-core/schema.d.cts +14 -19
- package/mysql-core/schema.d.ts +14 -19
- package/mysql-core/session.d.cts +46 -51
- package/mysql-core/session.d.ts +46 -51
- package/mysql-core/subquery.d.cts +16 -21
- package/mysql-core/subquery.d.ts +16 -21
- package/mysql-core/table.d.cts +91 -96
- package/mysql-core/table.d.ts +91 -96
- package/mysql-core/unique-constraint.d.cts +21 -26
- package/mysql-core/unique-constraint.d.ts +21 -26
- package/mysql-core/utils.cjs +3 -3
- package/mysql-core/utils.d.cts +40 -47
- package/mysql-core/utils.d.ts +40 -47
- package/mysql-core/utils.js +3 -3
- package/mysql-core/view-base.d.cts +8 -12
- package/mysql-core/view-base.d.ts +8 -12
- package/mysql-core/view-common.d.cts +1 -5
- package/mysql-core/view-common.d.ts +1 -5
- package/mysql-core/view.d.cts +58 -66
- package/mysql-core/view.d.ts +58 -66
- package/mysql-proxy/driver.d.cts +13 -18
- package/mysql-proxy/driver.d.ts +13 -18
- package/mysql-proxy/index.d.cts +2 -3
- package/mysql-proxy/index.d.ts +2 -3
- package/mysql-proxy/migrator.d.cts +5 -10
- package/mysql-proxy/migrator.d.ts +5 -10
- package/mysql-proxy/session.cjs +1 -1
- package/mysql-proxy/session.d.cts +30 -35
- package/mysql-proxy/session.d.ts +30 -35
- package/mysql-proxy/session.js +1 -1
- package/mysql2/codecs.d.cts +1 -9
- package/mysql2/codecs.d.ts +1 -9
- package/mysql2/driver.cjs +1 -1
- package/mysql2/driver.d.cts +34 -31
- package/mysql2/driver.d.ts +34 -31
- package/mysql2/driver.js +1 -1
- package/mysql2/index.cjs +1 -1
- package/mysql2/index.d.cts +3 -4
- package/mysql2/index.d.ts +3 -4
- package/mysql2/index.js +1 -1
- package/mysql2/migrator.d.cts +4 -10
- package/mysql2/migrator.d.ts +4 -10
- package/mysql2/session.cjs +2 -2
- package/mysql2/session.d.cts +35 -40
- package/mysql2/session.d.ts +35 -40
- package/mysql2/session.js +2 -2
- package/neon/index.cjs +1 -1
- package/neon/index.d.cts +2 -3
- package/neon/index.d.ts +2 -3
- package/neon/index.js +1 -1
- package/neon/neon-auth.d.cts +111 -117
- package/neon/neon-auth.d.ts +111 -117
- package/neon/rls.d.cts +11 -17
- package/neon/rls.d.ts +11 -17
- package/neon-http/codecs.d.cts +1 -9
- package/neon-http/codecs.d.ts +1 -9
- package/neon-http/driver.cjs +1 -1
- package/neon-http/driver.d.cts +32 -30
- package/neon-http/driver.d.ts +32 -30
- package/neon-http/driver.js +1 -1
- package/neon-http/index.cjs +1 -1
- package/neon-http/index.d.cts +3 -4
- package/neon-http/index.d.ts +3 -4
- package/neon-http/index.js +1 -1
- package/neon-http/migrator.d.cts +4 -9
- package/neon-http/migrator.d.ts +4 -9
- package/neon-http/session.cjs +1 -1
- package/neon-http/session.d.cts +34 -39
- package/neon-http/session.d.ts +34 -39
- package/neon-http/session.js +1 -1
- package/neon-serverless/codecs.d.cts +1 -9
- package/neon-serverless/codecs.d.ts +1 -9
- package/neon-serverless/driver.cjs +1 -1
- package/neon-serverless/driver.d.cts +33 -31
- package/neon-serverless/driver.d.ts +33 -31
- package/neon-serverless/driver.js +1 -1
- package/neon-serverless/index.cjs +1 -1
- package/neon-serverless/index.d.cts +3 -4
- package/neon-serverless/index.d.ts +3 -4
- package/neon-serverless/index.js +1 -1
- package/neon-serverless/migrator.d.cts +4 -10
- package/neon-serverless/migrator.d.ts +4 -10
- package/neon-serverless/session.cjs +2 -2
- package/neon-serverless/session.d.cts +33 -38
- package/neon-serverless/session.d.ts +33 -38
- package/neon-serverless/session.js +2 -2
- package/netlify-db/codecs.d.cts +2 -10
- package/netlify-db/codecs.d.ts +2 -10
- package/netlify-db/driver.cjs +1 -1
- package/netlify-db/driver.d.cts +64 -62
- package/netlify-db/driver.d.ts +64 -62
- package/netlify-db/driver.js +1 -1
- package/netlify-db/index.cjs +1 -1
- package/netlify-db/index.d.cts +3 -4
- package/netlify-db/index.d.ts +3 -4
- package/netlify-db/index.js +1 -1
- package/netlify-db/migrator.d.cts +5 -11
- package/netlify-db/migrator.d.ts +5 -11
- package/netlify-db/session.cjs +2 -2
- package/netlify-db/session.d.cts +50 -55
- package/netlify-db/session.d.ts +50 -55
- package/netlify-db/session.js +2 -2
- package/node-mssql/driver.cjs +1 -1
- package/node-mssql/driver.d.cts +43 -39
- package/node-mssql/driver.d.ts +43 -39
- package/node-mssql/driver.js +1 -1
- package/node-mssql/index.d.cts +2 -3
- package/node-mssql/index.d.ts +2 -3
- package/node-mssql/migrator.d.cts +3 -9
- package/node-mssql/migrator.d.ts +3 -9
- package/node-mssql/pool.d.cts +7 -12
- package/node-mssql/pool.d.ts +7 -12
- package/node-mssql/session.d.cts +45 -50
- package/node-mssql/session.d.ts +45 -50
- package/node-postgres/codecs.d.cts +1 -9
- package/node-postgres/codecs.d.ts +1 -9
- package/node-postgres/driver.cjs +1 -1
- package/node-postgres/driver.d.cts +25 -23
- package/node-postgres/driver.d.ts +25 -23
- package/node-postgres/driver.js +1 -1
- package/node-postgres/index.cjs +1 -1
- package/node-postgres/index.d.cts +3 -4
- package/node-postgres/index.d.ts +3 -4
- package/node-postgres/index.js +1 -1
- package/node-postgres/migrator.d.cts +4 -10
- package/node-postgres/migrator.d.ts +4 -10
- package/node-postgres/session.cjs +1 -1
- package/node-postgres/session.d.cts +36 -38
- package/node-postgres/session.d.ts +36 -38
- package/node-postgres/session.js +3 -3
- package/node-postgres/session.js.map +1 -1
- package/node-sqlite/driver.d.cts +27 -25
- package/node-sqlite/driver.d.ts +27 -25
- package/node-sqlite/index.d.cts +2 -3
- package/node-sqlite/index.d.ts +2 -3
- package/node-sqlite/migrator.d.cts +4 -10
- package/node-sqlite/migrator.d.ts +4 -10
- package/node-sqlite/session.cjs +1 -1
- package/node-sqlite/session.d.cts +31 -35
- package/node-sqlite/session.d.ts +31 -35
- package/node-sqlite/session.js +1 -1
- package/op-sqlite/driver.d.cts +10 -15
- package/op-sqlite/driver.d.ts +10 -15
- package/op-sqlite/index.d.cts +2 -3
- package/op-sqlite/index.d.ts +2 -3
- package/op-sqlite/migrator.d.cts +10 -15
- package/op-sqlite/migrator.d.ts +10 -15
- package/op-sqlite/session.cjs +1 -1
- package/op-sqlite/session.d.cts +34 -38
- package/op-sqlite/session.d.ts +34 -38
- package/op-sqlite/session.js +1 -1
- package/operations.d.cts +18 -22
- package/operations.d.ts +18 -22
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +4951 -4951
- package/package.json.d.cts +0 -1
- package/package.json.d.ts +0 -1
- package/pg-core/alias.d.cts +4 -9
- package/pg-core/alias.d.ts +4 -9
- package/pg-core/array.d.cts +3 -7
- package/pg-core/array.d.ts +3 -7
- package/pg-core/async/count.d.cts +20 -29
- package/pg-core/async/count.d.ts +20 -29
- package/pg-core/async/db.cjs +1 -1
- package/pg-core/async/db.d.cts +285 -288
- package/pg-core/async/db.d.ts +285 -288
- package/pg-core/async/db.js +1 -1
- package/pg-core/async/delete.cjs +1 -1
- package/pg-core/async/delete.d.cts +23 -27
- package/pg-core/async/delete.d.ts +23 -27
- package/pg-core/async/delete.js +1 -1
- package/pg-core/async/index.d.cts +10 -11
- package/pg-core/async/index.d.ts +10 -11
- package/pg-core/async/insert.cjs +1 -1
- package/pg-core/async/insert.d.cts +23 -26
- package/pg-core/async/insert.d.ts +23 -26
- package/pg-core/async/insert.js +1 -1
- package/pg-core/async/query.cjs +1 -1
- package/pg-core/async/query.d.cts +18 -22
- package/pg-core/async/query.d.ts +18 -22
- package/pg-core/async/query.js +1 -1
- package/pg-core/async/raw.d.cts +24 -28
- package/pg-core/async/raw.d.ts +24 -28
- package/pg-core/async/refresh-materialized-view.cjs +1 -1
- package/pg-core/async/refresh-materialized-view.d.cts +15 -19
- package/pg-core/async/refresh-materialized-view.d.ts +15 -19
- package/pg-core/async/refresh-materialized-view.js +1 -1
- package/pg-core/async/select.cjs +1 -1
- package/pg-core/async/select.d.cts +30 -34
- package/pg-core/async/select.d.ts +30 -34
- package/pg-core/async/select.js +1 -1
- package/pg-core/async/session.cjs +4 -4
- package/pg-core/async/session.d.cts +46 -50
- package/pg-core/async/session.d.ts +46 -50
- package/pg-core/async/session.js +4 -4
- package/pg-core/async/update.cjs +1 -1
- package/pg-core/async/update.d.cts +25 -29
- package/pg-core/async/update.d.ts +25 -29
- package/pg-core/async/update.js +1 -1
- package/pg-core/casing.d.cts +11 -18
- package/pg-core/casing.d.ts +11 -18
- package/pg-core/checks.d.cts +16 -21
- package/pg-core/checks.d.ts +16 -21
- package/pg-core/codecs.d.cts +895 -901
- package/pg-core/codecs.d.ts +895 -901
- package/pg-core/columns/all.d.cts +66 -71
- package/pg-core/columns/all.d.ts +66 -71
- package/pg-core/columns/bigint.d.cts +34 -39
- package/pg-core/columns/bigint.d.ts +34 -39
- package/pg-core/columns/bigserial.d.cts +28 -33
- package/pg-core/columns/bigserial.d.ts +28 -33
- package/pg-core/columns/boolean.d.cts +12 -17
- package/pg-core/columns/boolean.d.ts +12 -17
- package/pg-core/columns/bytea.d.cts +12 -17
- package/pg-core/columns/bytea.d.ts +12 -17
- package/pg-core/columns/char.d.cts +37 -41
- package/pg-core/columns/char.d.ts +37 -41
- package/pg-core/columns/cidr.d.cts +12 -17
- package/pg-core/columns/cidr.d.ts +12 -17
- package/pg-core/columns/common.cjs +1 -1
- package/pg-core/columns/common.d.cts +297 -297
- package/pg-core/columns/common.d.ts +297 -297
- package/pg-core/columns/common.js +1 -1
- package/pg-core/columns/custom.d.cts +252 -257
- package/pg-core/columns/custom.d.ts +252 -257
- package/pg-core/columns/date.common.d.cts +10 -14
- package/pg-core/columns/date.common.d.ts +10 -14
- package/pg-core/columns/date.d.cts +28 -33
- package/pg-core/columns/date.d.ts +28 -33
- package/pg-core/columns/double-precision.d.cts +12 -17
- package/pg-core/columns/double-precision.d.ts +12 -17
- package/pg-core/columns/enum.d.cts +45 -50
- package/pg-core/columns/enum.d.ts +45 -50
- package/pg-core/columns/index.cjs +1 -1
- package/pg-core/columns/index.d.cts +35 -36
- package/pg-core/columns/index.d.ts +35 -36
- package/pg-core/columns/index.js +1 -1
- package/pg-core/columns/inet.d.cts +12 -17
- package/pg-core/columns/inet.d.ts +12 -17
- package/pg-core/columns/int.common.d.cts +20 -24
- package/pg-core/columns/int.common.d.ts +20 -24
- package/pg-core/columns/integer.d.cts +13 -18
- package/pg-core/columns/integer.d.ts +13 -18
- package/pg-core/columns/interval.d.cts +22 -27
- package/pg-core/columns/interval.d.ts +22 -27
- package/pg-core/columns/json.d.cts +14 -19
- package/pg-core/columns/json.d.ts +14 -19
- package/pg-core/columns/jsonb.d.cts +14 -19
- package/pg-core/columns/jsonb.d.ts +14 -19
- package/pg-core/columns/line.d.cts +37 -42
- package/pg-core/columns/line.d.ts +37 -42
- package/pg-core/columns/macaddr.d.cts +12 -17
- package/pg-core/columns/macaddr.d.ts +12 -17
- package/pg-core/columns/macaddr8.d.cts +12 -17
- package/pg-core/columns/macaddr8.d.ts +12 -17
- package/pg-core/columns/numeric.d.cts +61 -66
- package/pg-core/columns/numeric.d.ts +61 -66
- package/pg-core/columns/point.d.cts +35 -40
- package/pg-core/columns/point.d.ts +35 -40
- package/pg-core/columns/postgis_extension/geometry.d.cts +44 -48
- package/pg-core/columns/postgis_extension/geometry.d.ts +44 -48
- package/pg-core/columns/postgis_extension/utils.d.cts +3 -7
- package/pg-core/columns/postgis_extension/utils.d.ts +3 -7
- package/pg-core/columns/real.d.cts +15 -20
- package/pg-core/columns/real.d.ts +15 -20
- package/pg-core/columns/serial.d.cts +14 -19
- package/pg-core/columns/serial.d.ts +14 -19
- package/pg-core/columns/smallint.d.cts +13 -18
- package/pg-core/columns/smallint.d.ts +13 -18
- package/pg-core/columns/smallserial.d.cts +14 -19
- package/pg-core/columns/smallserial.d.ts +14 -19
- package/pg-core/columns/text.d.cts +27 -31
- package/pg-core/columns/text.d.ts +27 -31
- package/pg-core/columns/time.d.cts +26 -31
- package/pg-core/columns/time.d.ts +26 -31
- package/pg-core/columns/timestamp.d.cts +42 -47
- package/pg-core/columns/timestamp.d.ts +42 -47
- package/pg-core/columns/uuid.d.cts +16 -21
- package/pg-core/columns/uuid.d.ts +16 -21
- package/pg-core/columns/varchar.d.cts +35 -39
- package/pg-core/columns/varchar.d.ts +35 -39
- package/pg-core/columns/vector_extension/bit.d.cts +17 -22
- package/pg-core/columns/vector_extension/bit.d.ts +17 -22
- package/pg-core/columns/vector_extension/halfvec.d.cts +18 -23
- package/pg-core/columns/vector_extension/halfvec.d.ts +18 -23
- package/pg-core/columns/vector_extension/sparsevec.d.cts +19 -23
- package/pg-core/columns/vector_extension/sparsevec.d.ts +19 -23
- package/pg-core/columns/vector_extension/vector.d.cts +18 -23
- package/pg-core/columns/vector_extension/vector.d.ts +18 -23
- package/pg-core/dialect.cjs +3 -3
- package/pg-core/dialect.d.cts +71 -144
- package/pg-core/dialect.d.ts +71 -144
- package/pg-core/dialect.js +3 -3
- package/pg-core/effect/count.d.cts +21 -31
- package/pg-core/effect/count.d.ts +21 -31
- package/pg-core/effect/db.cjs +3 -3
- package/pg-core/effect/db.d.cts +288 -291
- package/pg-core/effect/db.d.ts +288 -291
- package/pg-core/effect/db.js +3 -3
- package/pg-core/effect/delete.d.cts +24 -28
- package/pg-core/effect/delete.d.ts +24 -28
- package/pg-core/effect/index.cjs +4 -4
- package/pg-core/effect/index.d.cts +11 -12
- package/pg-core/effect/index.d.ts +11 -12
- package/pg-core/effect/index.js +4 -4
- package/pg-core/effect/insert.cjs +1 -1
- package/pg-core/effect/insert.d.cts +24 -27
- package/pg-core/effect/insert.d.ts +24 -27
- package/pg-core/effect/insert.js +1 -1
- package/pg-core/effect/query.d.cts +19 -24
- package/pg-core/effect/query.d.ts +19 -24
- package/pg-core/effect/raw.d.cts +25 -30
- package/pg-core/effect/raw.d.ts +25 -30
- package/pg-core/effect/refresh-materialized-view.d.cts +16 -20
- package/pg-core/effect/refresh-materialized-view.d.ts +16 -20
- package/pg-core/effect/select.d.cts +31 -35
- package/pg-core/effect/select.d.ts +31 -35
- package/pg-core/effect/session.cjs +3 -3
- package/pg-core/effect/session.d.cts +50 -54
- package/pg-core/effect/session.d.ts +50 -54
- package/pg-core/effect/session.js +2 -2
- package/pg-core/effect/update.d.cts +26 -30
- package/pg-core/effect/update.d.ts +26 -30
- package/pg-core/effect/utils.d.cts +3 -8
- package/pg-core/effect/utils.d.ts +3 -8
- package/pg-core/expressions.d.cts +7 -15
- package/pg-core/expressions.d.ts +7 -15
- package/pg-core/foreign-keys.d.cts +44 -46
- package/pg-core/foreign-keys.d.ts +44 -46
- package/pg-core/index.cjs +5 -5
- package/pg-core/index.d.cts +22 -72
- package/pg-core/index.d.ts +22 -72
- package/pg-core/index.js +5 -5
- package/pg-core/indexes.d.cts +75 -76
- package/pg-core/indexes.d.ts +75 -76
- package/pg-core/policies.d.cts +22 -27
- package/pg-core/policies.d.ts +22 -27
- package/pg-core/primary-keys.d.cts +21 -26
- package/pg-core/primary-keys.d.ts +21 -26
- package/pg-core/query-builders/count.d.cts +21 -26
- package/pg-core/query-builders/count.d.ts +21 -26
- package/pg-core/query-builders/delete.d.cts +118 -123
- package/pg-core/query-builders/delete.d.ts +118 -123
- package/pg-core/query-builders/index.d.cts +7 -8
- package/pg-core/query-builders/index.d.ts +7 -8
- package/pg-core/query-builders/insert.d.cts +196 -194
- package/pg-core/query-builders/insert.d.ts +196 -194
- package/pg-core/query-builders/query-builder.d.cts +35 -39
- package/pg-core/query-builders/query-builder.d.ts +35 -39
- package/pg-core/query-builders/query.d.cts +52 -57
- package/pg-core/query-builders/query.d.ts +52 -57
- package/pg-core/query-builders/raw.d.cts +19 -23
- package/pg-core/query-builders/raw.d.ts +19 -23
- package/pg-core/query-builders/refresh-materialized-view.d.cts +22 -27
- package/pg-core/query-builders/refresh-materialized-view.d.ts +22 -27
- package/pg-core/query-builders/select.cjs +2 -2
- package/pg-core/query-builders/select.d.cts +625 -629
- package/pg-core/query-builders/select.d.ts +625 -629
- package/pg-core/query-builders/select.js +2 -2
- package/pg-core/query-builders/select.types.d.cts +118 -120
- package/pg-core/query-builders/select.types.d.ts +118 -120
- package/pg-core/query-builders/update.cjs +2 -2
- package/pg-core/query-builders/update.d.cts +191 -185
- package/pg-core/query-builders/update.d.ts +191 -185
- package/pg-core/query-builders/update.js +2 -2
- package/pg-core/roles.d.cts +11 -16
- package/pg-core/roles.d.ts +11 -16
- package/pg-core/schema.cjs +1 -1
- package/pg-core/schema.d.cts +25 -30
- package/pg-core/schema.d.ts +25 -30
- package/pg-core/schema.js +1 -1
- package/pg-core/sequence.d.cts +16 -21
- package/pg-core/sequence.d.ts +16 -21
- package/pg-core/session.d.cts +34 -39
- package/pg-core/session.d.ts +34 -39
- package/pg-core/subquery.d.cts +16 -21
- package/pg-core/subquery.d.ts +16 -21
- package/pg-core/table.d.cts +96 -99
- package/pg-core/table.d.ts +96 -99
- package/pg-core/unique-constraint.d.cts +23 -28
- package/pg-core/unique-constraint.d.ts +23 -28
- package/pg-core/utils.cjs +2 -2
- package/pg-core/utils.d.cts +49 -56
- package/pg-core/utils.d.ts +49 -56
- package/pg-core/utils.js +2 -2
- package/pg-core/view-base.d.cts +7 -12
- package/pg-core/view-base.d.ts +7 -12
- package/pg-core/view-common.d.cts +2 -6
- package/pg-core/view-common.d.ts +2 -6
- package/pg-core/view.d.cts +141 -152
- package/pg-core/view.d.ts +141 -152
- package/pg-proxy/driver.d.cts +11 -16
- package/pg-proxy/driver.d.ts +11 -16
- package/pg-proxy/index.d.cts +2 -3
- package/pg-proxy/index.d.ts +2 -3
- package/pg-proxy/migrator.d.cts +7 -12
- package/pg-proxy/migrator.d.ts +7 -12
- package/pg-proxy/session.cjs +1 -1
- package/pg-proxy/session.d.cts +31 -36
- package/pg-proxy/session.d.ts +31 -36
- package/pg-proxy/session.js +1 -1
- package/pglite/codecs.d.cts +1 -9
- package/pglite/codecs.d.ts +1 -9
- package/pglite/driver.cjs +2 -2
- package/pglite/driver.d.cts +27 -25
- package/pglite/driver.d.ts +27 -25
- package/pglite/driver.js +2 -2
- package/pglite/index.cjs +1 -1
- package/pglite/index.d.cts +3 -4
- package/pglite/index.d.ts +3 -4
- package/pglite/index.js +1 -1
- package/pglite/migrator.d.cts +4 -10
- package/pglite/migrator.d.ts +4 -10
- package/pglite/session.cjs +2 -2
- package/pglite/session.d.cts +34 -38
- package/pglite/session.d.ts +34 -38
- package/pglite/session.js +2 -2
- package/planetscale-serverless/codecs.d.cts +1 -9
- package/planetscale-serverless/codecs.d.ts +1 -9
- package/planetscale-serverless/driver.cjs +2 -2
- package/planetscale-serverless/driver.d.cts +26 -23
- package/planetscale-serverless/driver.d.ts +26 -23
- package/planetscale-serverless/driver.js +2 -2
- package/planetscale-serverless/index.cjs +1 -1
- package/planetscale-serverless/index.d.cts +3 -4
- package/planetscale-serverless/index.d.ts +3 -4
- package/planetscale-serverless/index.js +1 -1
- package/planetscale-serverless/migrator.d.cts +4 -10
- package/planetscale-serverless/migrator.d.ts +4 -10
- package/planetscale-serverless/session.cjs +1 -1
- package/planetscale-serverless/session.d.cts +36 -41
- package/planetscale-serverless/session.d.ts +36 -41
- package/planetscale-serverless/session.js +1 -1
- package/postgres-js/codecs.d.cts +1 -9
- package/postgres-js/codecs.d.ts +1 -9
- package/postgres-js/driver.cjs +1 -1
- package/postgres-js/driver.d.cts +27 -25
- package/postgres-js/driver.d.ts +27 -25
- package/postgres-js/driver.js +1 -1
- package/postgres-js/index.cjs +1 -1
- package/postgres-js/index.d.cts +3 -4
- package/postgres-js/index.d.ts +3 -4
- package/postgres-js/index.js +1 -1
- package/postgres-js/migrator.d.cts +4 -10
- package/postgres-js/migrator.d.ts +4 -10
- package/postgres-js/session.cjs +1 -1
- package/postgres-js/session.d.cts +37 -41
- package/postgres-js/session.d.ts +37 -41
- package/postgres-js/session.js +1 -1
- package/primary-key.d.cts +9 -14
- package/primary-key.d.ts +9 -14
- package/query-builders/query-builder.d.cts +10 -15
- package/query-builders/query-builder.d.ts +10 -15
- package/query-builders/select.types.d.cts +61 -41
- package/query-builders/select.types.d.ts +61 -41
- package/query-name-generator.d.cts +1 -5
- package/query-name-generator.d.ts +1 -5
- package/query-promise.d.cts +8 -13
- package/query-promise.d.ts +8 -13
- package/relations.cjs +3 -3
- package/relations.d.cts +387 -357
- package/relations.d.ts +387 -357
- package/relations.js +3 -3
- package/runnable-query.d.cts +6 -11
- package/runnable-query.d.ts +6 -11
- package/selection-proxy.cjs +1 -1
- package/selection-proxy.d.cts +8 -13
- package/selection-proxy.d.ts +8 -13
- package/selection-proxy.js +1 -1
- package/session.d.cts +3 -8
- package/session.d.ts +3 -8
- package/singlestore/driver.cjs +2 -2
- package/singlestore/driver.d.cts +47 -43
- package/singlestore/driver.d.ts +47 -43
- package/singlestore/driver.js +2 -2
- package/singlestore/index.d.cts +2 -3
- package/singlestore/index.d.ts +2 -3
- package/singlestore/migrator.d.cts +4 -10
- package/singlestore/migrator.d.ts +4 -10
- package/singlestore/session.cjs +3 -3
- package/singlestore/session.d.cts +65 -70
- package/singlestore/session.d.ts +65 -70
- package/singlestore/session.js +3 -3
- package/singlestore-core/alias.d.cts +3 -8
- package/singlestore-core/alias.d.ts +3 -8
- package/singlestore-core/casing.d.cts +7 -13
- package/singlestore-core/casing.d.ts +7 -13
- package/singlestore-core/columns/all.d.cts +55 -60
- package/singlestore-core/columns/all.d.ts +55 -60
- package/singlestore-core/columns/bigint.d.cts +44 -49
- package/singlestore-core/columns/bigint.d.ts +44 -49
- package/singlestore-core/columns/binary.d.cts +19 -24
- package/singlestore-core/columns/binary.d.ts +19 -24
- package/singlestore-core/columns/boolean.d.cts +14 -19
- package/singlestore-core/columns/boolean.d.ts +14 -19
- package/singlestore-core/columns/char.d.cts +26 -31
- package/singlestore-core/columns/char.d.ts +26 -31
- package/singlestore-core/columns/common.d.cts +31 -34
- package/singlestore-core/columns/common.d.ts +31 -34
- package/singlestore-core/columns/custom.d.cts +249 -254
- package/singlestore-core/columns/custom.d.ts +249 -254
- package/singlestore-core/columns/date.common.d.cts +13 -18
- package/singlestore-core/columns/date.common.d.ts +13 -18
- package/singlestore-core/columns/date.d.cts +34 -39
- package/singlestore-core/columns/date.d.ts +34 -39
- package/singlestore-core/columns/datetime.d.cts +44 -49
- package/singlestore-core/columns/datetime.d.ts +44 -49
- package/singlestore-core/columns/decimal.d.cts +52 -57
- package/singlestore-core/columns/decimal.d.ts +52 -57
- package/singlestore-core/columns/double.d.cts +22 -27
- package/singlestore-core/columns/double.d.ts +22 -27
- package/singlestore-core/columns/enum.d.cts +24 -29
- package/singlestore-core/columns/enum.d.ts +24 -29
- package/singlestore-core/columns/float.d.cts +23 -28
- package/singlestore-core/columns/float.d.ts +23 -28
- package/singlestore-core/columns/index.d.cts +26 -27
- package/singlestore-core/columns/index.d.ts +26 -27
- package/singlestore-core/columns/int.d.cts +18 -23
- package/singlestore-core/columns/int.d.ts +18 -23
- package/singlestore-core/columns/json.d.cts +14 -19
- package/singlestore-core/columns/json.d.ts +14 -19
- package/singlestore-core/columns/mediumint.d.cts +17 -22
- package/singlestore-core/columns/mediumint.d.ts +17 -22
- package/singlestore-core/columns/real.d.cts +19 -24
- package/singlestore-core/columns/real.d.ts +19 -24
- package/singlestore-core/columns/serial.d.cts +18 -23
- package/singlestore-core/columns/serial.d.ts +18 -23
- package/singlestore-core/columns/smallint.d.cts +17 -22
- package/singlestore-core/columns/smallint.d.ts +17 -22
- package/singlestore-core/columns/text.d.cts +32 -37
- package/singlestore-core/columns/text.d.ts +32 -37
- package/singlestore-core/columns/time.d.cts +13 -18
- package/singlestore-core/columns/time.d.ts +13 -18
- package/singlestore-core/columns/timestamp.d.cts +31 -37
- package/singlestore-core/columns/timestamp.d.ts +31 -37
- package/singlestore-core/columns/tinyint.d.cts +17 -22
- package/singlestore-core/columns/tinyint.d.ts +17 -22
- package/singlestore-core/columns/varbinary.d.cts +16 -21
- package/singlestore-core/columns/varbinary.d.ts +16 -21
- package/singlestore-core/columns/varchar.d.cts +20 -25
- package/singlestore-core/columns/varchar.d.ts +20 -25
- package/singlestore-core/columns/vector.d.cts +44 -48
- package/singlestore-core/columns/vector.d.ts +44 -48
- package/singlestore-core/columns/year.d.cts +14 -19
- package/singlestore-core/columns/year.d.ts +14 -19
- package/singlestore-core/db.cjs +3 -3
- package/singlestore-core/db.d.cts +233 -239
- package/singlestore-core/db.d.ts +233 -239
- package/singlestore-core/db.js +3 -3
- package/singlestore-core/dialect.cjs +6 -6
- package/singlestore-core/dialect.d.cts +83 -150
- package/singlestore-core/dialect.d.ts +83 -150
- package/singlestore-core/dialect.js +5 -5
- package/singlestore-core/expressions.d.cts +9 -17
- package/singlestore-core/expressions.d.ts +9 -17
- package/singlestore-core/index.cjs +6 -6
- package/singlestore-core/index.d.cts +14 -45
- package/singlestore-core/index.d.ts +14 -45
- package/singlestore-core/index.js +6 -6
- package/singlestore-core/indexes.d.cts +55 -55
- package/singlestore-core/indexes.d.ts +55 -55
- package/singlestore-core/primary-keys.d.cts +21 -26
- package/singlestore-core/primary-keys.d.ts +21 -26
- package/singlestore-core/query-builders/_query.d.cts +40 -45
- package/singlestore-core/query-builders/_query.d.ts +40 -45
- package/singlestore-core/query-builders/count.d.cts +24 -29
- package/singlestore-core/query-builders/count.d.ts +24 -29
- package/singlestore-core/query-builders/delete.d.cts +77 -81
- package/singlestore-core/query-builders/delete.d.ts +77 -81
- package/singlestore-core/query-builders/index.cjs +2 -2
- package/singlestore-core/query-builders/index.d.cts +6 -7
- package/singlestore-core/query-builders/index.d.ts +6 -7
- package/singlestore-core/query-builders/index.js +2 -2
- package/singlestore-core/query-builders/insert.d.cts +100 -98
- package/singlestore-core/query-builders/insert.d.ts +100 -98
- package/singlestore-core/query-builders/query-builder.d.cts +27 -31
- package/singlestore-core/query-builders/query-builder.d.ts +27 -31
- package/singlestore-core/query-builders/query.d.cts +37 -42
- package/singlestore-core/query-builders/query.d.ts +37 -42
- package/singlestore-core/query-builders/select.cjs +1 -1
- package/singlestore-core/query-builders/select.d.cts +533 -544
- package/singlestore-core/query-builders/select.d.ts +533 -544
- package/singlestore-core/query-builders/select.js +1 -1
- package/singlestore-core/query-builders/select.types.d.cts +121 -123
- package/singlestore-core/query-builders/select.types.d.ts +121 -123
- package/singlestore-core/query-builders/update.d.cts +98 -101
- package/singlestore-core/query-builders/update.d.ts +98 -101
- package/singlestore-core/schema.d.cts +12 -17
- package/singlestore-core/schema.d.ts +12 -17
- package/singlestore-core/session.d.cts +69 -74
- package/singlestore-core/session.d.ts +69 -74
- package/singlestore-core/subquery.d.cts +16 -21
- package/singlestore-core/subquery.d.ts +16 -21
- package/singlestore-core/table.d.cts +89 -94
- package/singlestore-core/table.d.ts +89 -94
- package/singlestore-core/unique-constraint.d.cts +22 -27
- package/singlestore-core/unique-constraint.d.ts +22 -27
- package/singlestore-core/utils.cjs +2 -2
- package/singlestore-core/utils.d.cts +15 -21
- package/singlestore-core/utils.d.ts +15 -21
- package/singlestore-core/utils.js +2 -2
- package/singlestore-core/view-base.d.cts +8 -12
- package/singlestore-core/view-base.d.ts +8 -12
- package/singlestore-core/view-common.d.cts +1 -5
- package/singlestore-core/view-common.d.ts +1 -5
- package/singlestore-core/view.d.cts +56 -64
- package/singlestore-core/view.d.ts +56 -64
- package/singlestore-proxy/driver.d.cts +12 -17
- package/singlestore-proxy/driver.d.ts +12 -17
- package/singlestore-proxy/index.d.cts +2 -3
- package/singlestore-proxy/index.d.ts +2 -3
- package/singlestore-proxy/migrator.d.cts +5 -10
- package/singlestore-proxy/migrator.d.ts +5 -10
- package/singlestore-proxy/session.cjs +2 -2
- package/singlestore-proxy/session.d.cts +54 -58
- package/singlestore-proxy/session.d.ts +54 -58
- package/singlestore-proxy/session.js +3 -3
- package/singlestore-proxy/session.js.map +1 -1
- package/sql/expressions/conditions.d.cts +45 -50
- package/sql/expressions/conditions.d.ts +45 -50
- package/sql/expressions/index.d.cts +2 -3
- package/sql/expressions/index.d.ts +2 -3
- package/sql/expressions/select.d.cts +4 -9
- package/sql/expressions/select.d.ts +4 -9
- package/sql/functions/aggregate.d.cts +10 -15
- package/sql/functions/aggregate.d.ts +10 -15
- package/sql/functions/index.d.cts +2 -3
- package/sql/functions/index.d.ts +2 -3
- package/sql/functions/vector.d.cts +9 -14
- package/sql/functions/vector.d.ts +9 -14
- package/sql/index.d.cts +3 -6
- package/sql/index.d.ts +3 -6
- package/sql/sql.d.cts +204 -212
- package/sql/sql.d.ts +204 -212
- package/sql-js/driver.d.cts +10 -15
- package/sql-js/driver.d.ts +10 -15
- package/sql-js/index.d.cts +2 -3
- package/sql-js/index.d.ts +2 -3
- package/sql-js/migrator.d.cts +4 -10
- package/sql-js/migrator.d.ts +4 -10
- package/sql-js/session.d.cts +31 -35
- package/sql-js/session.d.ts +31 -35
- package/sqlite-cloud/driver.d.cts +28 -26
- package/sqlite-cloud/driver.d.ts +28 -26
- package/sqlite-cloud/index.d.cts +2 -3
- package/sqlite-cloud/index.d.ts +2 -3
- package/sqlite-cloud/migrator.d.cts +4 -9
- package/sqlite-cloud/migrator.d.ts +4 -9
- package/sqlite-cloud/session.cjs +2 -2
- package/sqlite-cloud/session.d.cts +34 -38
- package/sqlite-cloud/session.d.ts +34 -38
- package/sqlite-cloud/session.js +2 -2
- package/sqlite-core/alias.d.cts +4 -9
- package/sqlite-core/alias.d.ts +4 -9
- package/sqlite-core/async/count.d.cts +24 -28
- package/sqlite-core/async/count.d.ts +24 -28
- package/sqlite-core/async/db.cjs +1 -1
- package/sqlite-core/async/db.d.cts +257 -260
- package/sqlite-core/async/db.d.ts +257 -260
- package/sqlite-core/async/db.js +1 -1
- package/sqlite-core/async/delete.d.cts +38 -42
- package/sqlite-core/async/delete.d.ts +38 -42
- package/sqlite-core/async/index.d.cts +9 -10
- package/sqlite-core/async/index.d.ts +9 -10
- package/sqlite-core/async/insert.d.cts +41 -44
- package/sqlite-core/async/insert.d.ts +41 -44
- package/sqlite-core/async/query.d.cts +32 -36
- package/sqlite-core/async/query.d.ts +32 -36
- package/sqlite-core/async/raw.d.cts +18 -22
- package/sqlite-core/async/raw.d.ts +18 -22
- package/sqlite-core/async/select.d.cts +40 -45
- package/sqlite-core/async/select.d.ts +40 -45
- package/sqlite-core/async/session.cjs +1 -1
- package/sqlite-core/async/session.d.cts +67 -72
- package/sqlite-core/async/session.d.ts +67 -72
- package/sqlite-core/async/session.js +1 -1
- package/sqlite-core/async/update.d.cts +42 -46
- package/sqlite-core/async/update.d.ts +42 -46
- package/sqlite-core/casing.d.cts +6 -13
- package/sqlite-core/casing.d.ts +6 -13
- package/sqlite-core/checks.d.cts +20 -25
- package/sqlite-core/checks.d.ts +20 -25
- package/sqlite-core/columns/all.d.cts +14 -19
- package/sqlite-core/columns/all.d.ts +14 -19
- package/sqlite-core/columns/blob.d.cts +41 -45
- package/sqlite-core/columns/blob.d.ts +41 -45
- package/sqlite-core/columns/common.d.cts +30 -33
- package/sqlite-core/columns/common.d.ts +30 -33
- package/sqlite-core/columns/custom.d.cts +249 -254
- package/sqlite-core/columns/custom.d.ts +249 -254
- package/sqlite-core/columns/index.d.cts +7 -8
- package/sqlite-core/columns/index.d.ts +7 -8
- package/sqlite-core/columns/integer.d.cts +69 -74
- package/sqlite-core/columns/integer.d.ts +69 -74
- package/sqlite-core/columns/numeric.d.cts +40 -45
- package/sqlite-core/columns/numeric.d.ts +40 -45
- package/sqlite-core/columns/real.d.cts +13 -18
- package/sqlite-core/columns/real.d.ts +13 -18
- package/sqlite-core/columns/text.d.cts +44 -49
- package/sqlite-core/columns/text.d.ts +44 -49
- package/sqlite-core/dialect.cjs +3 -3
- package/sqlite-core/dialect.d.cts +66 -132
- package/sqlite-core/dialect.d.ts +66 -132
- package/sqlite-core/dialect.js +3 -3
- package/sqlite-core/effect/count.d.cts +20 -24
- package/sqlite-core/effect/count.d.ts +20 -24
- package/sqlite-core/effect/db.cjs +2 -2
- package/sqlite-core/effect/db.d.cts +257 -260
- package/sqlite-core/effect/db.d.ts +257 -260
- package/sqlite-core/effect/db.js +2 -2
- package/sqlite-core/effect/delete.d.cts +32 -35
- package/sqlite-core/effect/delete.d.ts +32 -35
- package/sqlite-core/effect/index.cjs +6 -6
- package/sqlite-core/effect/index.d.cts +10 -11
- package/sqlite-core/effect/index.d.ts +10 -11
- package/sqlite-core/effect/index.js +6 -6
- package/sqlite-core/effect/insert.d.cts +33 -36
- package/sqlite-core/effect/insert.d.ts +33 -36
- package/sqlite-core/effect/query.d.cts +21 -25
- package/sqlite-core/effect/query.d.ts +21 -25
- package/sqlite-core/effect/raw.d.cts +18 -22
- package/sqlite-core/effect/raw.d.ts +18 -22
- package/sqlite-core/effect/select.d.cts +32 -36
- package/sqlite-core/effect/select.d.ts +32 -36
- package/sqlite-core/effect/session.cjs +4 -4
- package/sqlite-core/effect/session.d.cts +54 -59
- package/sqlite-core/effect/session.d.ts +54 -59
- package/sqlite-core/effect/session.js +3 -3
- package/sqlite-core/effect/update.d.cts +35 -38
- package/sqlite-core/effect/update.d.ts +35 -38
- package/sqlite-core/effect/utils.d.cts +3 -8
- package/sqlite-core/effect/utils.d.ts +3 -8
- package/sqlite-core/expressions.d.cts +8 -16
- package/sqlite-core/expressions.d.ts +8 -16
- package/sqlite-core/foreign-keys.d.cts +46 -48
- package/sqlite-core/foreign-keys.d.ts +46 -48
- package/sqlite-core/index.cjs +4 -4
- package/sqlite-core/index.d.cts +16 -36
- package/sqlite-core/index.d.ts +16 -36
- package/sqlite-core/index.js +4 -4
- package/sqlite-core/indexes.d.cts +38 -43
- package/sqlite-core/indexes.d.ts +38 -43
- package/sqlite-core/primary-keys.d.cts +24 -29
- package/sqlite-core/primary-keys.d.ts +24 -29
- package/sqlite-core/query-builders/count.d.cts +26 -30
- package/sqlite-core/query-builders/count.d.ts +26 -30
- package/sqlite-core/query-builders/delete.d.cts +116 -121
- package/sqlite-core/query-builders/delete.d.ts +116 -121
- package/sqlite-core/query-builders/index.d.cts +6 -7
- package/sqlite-core/query-builders/index.d.ts +6 -7
- package/sqlite-core/query-builders/insert.d.cts +196 -193
- package/sqlite-core/query-builders/insert.d.ts +196 -193
- package/sqlite-core/query-builders/query-builder.cjs +1 -1
- package/sqlite-core/query-builders/query-builder.d.cts +27 -31
- package/sqlite-core/query-builders/query-builder.d.ts +27 -31
- package/sqlite-core/query-builders/query-builder.js +1 -1
- package/sqlite-core/query-builders/query.d.cts +53 -58
- package/sqlite-core/query-builders/query.d.ts +53 -58
- package/sqlite-core/query-builders/raw.d.cts +19 -23
- package/sqlite-core/query-builders/raw.d.ts +19 -23
- package/sqlite-core/query-builders/select.cjs +2 -2
- package/sqlite-core/query-builders/select.d.cts +465 -477
- package/sqlite-core/query-builders/select.d.ts +465 -477
- package/sqlite-core/query-builders/select.js +2 -2
- package/sqlite-core/query-builders/select.types.d.cts +105 -107
- package/sqlite-core/query-builders/select.types.d.ts +105 -107
- package/sqlite-core/query-builders/update.cjs +2 -2
- package/sqlite-core/query-builders/update.d.cts +155 -158
- package/sqlite-core/query-builders/update.d.ts +155 -158
- package/sqlite-core/query-builders/update.js +2 -2
- package/sqlite-core/session.d.cts +39 -44
- package/sqlite-core/session.d.ts +39 -44
- package/sqlite-core/subquery.d.cts +16 -21
- package/sqlite-core/subquery.d.ts +16 -21
- package/sqlite-core/table.d.cts +89 -94
- package/sqlite-core/table.d.ts +89 -94
- package/sqlite-core/unique-constraint.d.cts +21 -26
- package/sqlite-core/unique-constraint.d.ts +21 -26
- package/sqlite-core/utils.cjs +3 -3
- package/sqlite-core/utils.d.cts +31 -38
- package/sqlite-core/utils.d.ts +31 -38
- package/sqlite-core/utils.js +3 -3
- package/sqlite-core/view-base.d.cts +8 -12
- package/sqlite-core/view-base.d.ts +8 -12
- package/sqlite-core/view-common.d.cts +1 -5
- package/sqlite-core/view-common.d.ts +1 -5
- package/sqlite-core/view.d.cts +52 -59
- package/sqlite-core/view.d.ts +52 -59
- package/sqlite-proxy/driver.d.cts +21 -26
- package/sqlite-proxy/driver.d.ts +21 -26
- package/sqlite-proxy/index.d.cts +2 -3
- package/sqlite-proxy/index.d.ts +2 -3
- package/sqlite-proxy/migrator.d.cts +7 -12
- package/sqlite-proxy/migrator.d.ts +7 -12
- package/sqlite-proxy/session.cjs +1 -1
- package/sqlite-proxy/session.d.cts +37 -42
- package/sqlite-proxy/session.d.ts +37 -42
- package/sqlite-proxy/session.js +1 -1
- package/subquery.d.cts +18 -22
- package/subquery.d.ts +18 -22
- package/supabase/index.d.cts +1 -2
- package/supabase/index.d.ts +1 -2
- package/supabase/rls.d.cts +184 -192
- package/supabase/rls.d.ts +184 -192
- package/table.d.cts +49 -48
- package/table.d.ts +49 -48
- package/table.utils.d.cts +1 -1
- package/table.utils.d.ts +1 -1
- package/tidb-serverless/codecs.d.cts +1 -9
- package/tidb-serverless/codecs.d.ts +1 -9
- package/tidb-serverless/driver.cjs +2 -2
- package/tidb-serverless/driver.d.cts +25 -23
- package/tidb-serverless/driver.d.ts +25 -23
- package/tidb-serverless/driver.js +2 -2
- package/tidb-serverless/index.cjs +1 -1
- package/tidb-serverless/index.d.cts +3 -4
- package/tidb-serverless/index.d.ts +3 -4
- package/tidb-serverless/index.js +1 -1
- package/tidb-serverless/migrator.d.cts +4 -10
- package/tidb-serverless/migrator.d.ts +4 -10
- package/tidb-serverless/session.cjs +1 -1
- package/tidb-serverless/session.d.cts +36 -41
- package/tidb-serverless/session.d.ts +36 -41
- package/tidb-serverless/session.js +1 -1
- package/tracing-utils.d.cts +1 -5
- package/tracing-utils.d.ts +1 -5
- package/tracing.d.cts +1 -5
- package/tracing.d.ts +1 -5
- package/tursodatabase/database.d.cts +24 -22
- package/tursodatabase/database.d.ts +24 -22
- package/tursodatabase/driver-core.d.cts +7 -12
- package/tursodatabase/driver-core.d.ts +7 -12
- package/tursodatabase/index.d.cts +2 -3
- package/tursodatabase/index.d.ts +2 -3
- package/tursodatabase/migrator.d.cts +4 -10
- package/tursodatabase/migrator.d.ts +4 -10
- package/tursodatabase/session.cjs +1 -1
- package/tursodatabase/session.d.cts +35 -39
- package/tursodatabase/session.d.ts +35 -39
- package/tursodatabase/session.js +1 -1
- package/tursodatabase/wasm-migrator.d.cts +7 -12
- package/tursodatabase/wasm-migrator.d.ts +7 -12
- package/tursodatabase/wasm.d.cts +24 -22
- package/tursodatabase/wasm.d.ts +24 -22
- package/tursodatabase-serverless/driver.cjs +1 -1
- package/tursodatabase-serverless/driver.d.cts +25 -23
- package/tursodatabase-serverless/driver.d.ts +25 -23
- package/tursodatabase-serverless/driver.js +1 -1
- package/tursodatabase-serverless/index.d.cts +2 -3
- package/tursodatabase-serverless/index.d.ts +2 -3
- package/tursodatabase-serverless/migrator.d.cts +4 -10
- package/tursodatabase-serverless/migrator.d.ts +4 -10
- package/tursodatabase-serverless/session.cjs +1 -1
- package/tursodatabase-serverless/session.d.cts +34 -38
- package/tursodatabase-serverless/session.d.ts +34 -38
- package/tursodatabase-serverless/session.js +1 -1
- package/tursodatabase-sync/driver.cjs +1 -1
- package/tursodatabase-sync/driver.d.cts +25 -23
- package/tursodatabase-sync/driver.d.ts +25 -23
- package/tursodatabase-sync/driver.js +1 -1
- package/tursodatabase-sync/index.d.cts +2 -3
- package/tursodatabase-sync/index.d.ts +2 -3
- package/tursodatabase-sync/migrator.d.cts +4 -10
- package/tursodatabase-sync/migrator.d.ts +4 -10
- package/tursodatabase-sync/session.cjs +1 -1
- package/tursodatabase-sync/session.d.cts +34 -38
- package/tursodatabase-sync/session.d.ts +34 -38
- package/tursodatabase-sync/session.js +1 -1
- package/typebox/column.d.cts +25 -29
- package/typebox/column.d.ts +25 -29
- package/typebox/column.js +13 -13
- package/typebox/column.js.map +1 -1
- package/typebox/column.types.d.cts +19 -23
- package/typebox/column.types.d.ts +19 -23
- package/typebox/index.d.cts +5 -6
- package/typebox/index.d.ts +5 -6
- package/typebox/schema.cjs +1 -1
- package/typebox/schema.d.cts +14 -18
- package/typebox/schema.d.ts +14 -18
- package/typebox/schema.js +7 -7
- package/typebox/schema.js.map +1 -1
- package/typebox/schema.types.d.cts +20 -25
- package/typebox/schema.types.d.ts +20 -25
- package/typebox/schema.types.internal.d.cts +23 -21
- package/typebox/schema.types.internal.d.ts +23 -21
- package/typebox-legacy/column.d.cts +11 -17
- package/typebox-legacy/column.d.ts +11 -17
- package/typebox-legacy/column.types.d.cts +32 -34
- package/typebox-legacy/column.types.d.ts +32 -34
- package/typebox-legacy/index.d.cts +5 -6
- package/typebox-legacy/index.d.ts +5 -6
- package/typebox-legacy/schema.cjs +1 -1
- package/typebox-legacy/schema.d.cts +14 -20
- package/typebox-legacy/schema.d.ts +14 -20
- package/typebox-legacy/schema.js +1 -1
- package/typebox-legacy/schema.types.d.cts +21 -26
- package/typebox-legacy/schema.types.d.ts +21 -26
- package/typebox-legacy/schema.types.internal.d.cts +23 -21
- package/typebox-legacy/schema.types.internal.d.ts +23 -21
- package/up-migrations/cockroach.d.cts +4 -9
- package/up-migrations/cockroach.d.ts +4 -9
- package/up-migrations/effect-mysql.d.cts +6 -11
- package/up-migrations/effect-mysql.d.ts +6 -11
- package/up-migrations/effect-pg.d.cts +6 -11
- package/up-migrations/effect-pg.d.ts +6 -11
- package/up-migrations/effect-sqlite.d.cts +6 -11
- package/up-migrations/effect-sqlite.d.ts +6 -11
- package/up-migrations/mssql.d.cts +4 -9
- package/up-migrations/mssql.d.ts +4 -9
- package/up-migrations/mysql-proxy.d.cts +6 -11
- package/up-migrations/mysql-proxy.d.ts +6 -11
- package/up-migrations/mysql.d.cts +4 -9
- package/up-migrations/mysql.d.ts +4 -9
- package/up-migrations/pg-proxy.d.cts +5 -10
- package/up-migrations/pg-proxy.d.ts +5 -10
- package/up-migrations/pg.d.cts +5 -10
- package/up-migrations/pg.d.ts +5 -10
- package/up-migrations/singlestore-proxy.d.cts +5 -10
- package/up-migrations/singlestore-proxy.d.ts +5 -10
- package/up-migrations/singlestore.d.cts +4 -9
- package/up-migrations/singlestore.d.ts +4 -9
- package/up-migrations/sqlite-proxy.d.cts +6 -11
- package/up-migrations/sqlite-proxy.d.ts +6 -11
- package/up-migrations/sqlite.d.cts +7 -12
- package/up-migrations/sqlite.d.ts +7 -12
- package/up-migrations/utils.d.cts +18 -22
- package/up-migrations/utils.d.ts +18 -22
- package/utils.cjs +1 -1
- package/utils.d.cts +123 -111
- package/utils.d.ts +123 -111
- package/utils.js +1 -1
- package/valibot/column.d.cts +11 -16
- package/valibot/column.d.ts +11 -16
- package/valibot/column.types.d.cts +42 -25
- package/valibot/column.types.d.ts +42 -25
- package/valibot/index.d.cts +5 -6
- package/valibot/index.d.ts +5 -6
- package/valibot/schema.cjs +1 -1
- package/valibot/schema.d.cts +4 -9
- package/valibot/schema.d.ts +4 -9
- package/valibot/schema.js +1 -1
- package/valibot/schema.types.d.cts +19 -24
- package/valibot/schema.types.d.ts +19 -24
- package/valibot/schema.types.internal.d.cts +23 -21
- package/valibot/schema.types.internal.d.ts +23 -21
- package/vercel-postgres/codecs.d.cts +1 -9
- package/vercel-postgres/codecs.d.ts +1 -9
- package/vercel-postgres/driver.cjs +1 -1
- package/vercel-postgres/driver.d.cts +23 -21
- package/vercel-postgres/driver.d.ts +23 -21
- package/vercel-postgres/driver.js +1 -1
- package/vercel-postgres/index.cjs +1 -1
- package/vercel-postgres/index.d.cts +3 -4
- package/vercel-postgres/index.d.ts +3 -4
- package/vercel-postgres/index.js +1 -1
- package/vercel-postgres/migrator.d.cts +4 -10
- package/vercel-postgres/migrator.d.ts +4 -10
- package/vercel-postgres/session.cjs +2 -2
- package/vercel-postgres/session.d.cts +33 -38
- package/vercel-postgres/session.d.ts +33 -38
- package/vercel-postgres/session.js +2 -2
- package/version.d.cts +2 -7
- package/version.d.ts +2 -7
- package/view-common.d.cts +1 -5
- package/view-common.d.ts +1 -5
- package/xata-http/codecs.d.cts +1 -9
- package/xata-http/codecs.d.ts +1 -9
- package/xata-http/driver.cjs +1 -1
- package/xata-http/driver.d.cts +9 -14
- package/xata-http/driver.d.ts +9 -14
- package/xata-http/driver.js +1 -1
- package/xata-http/index.cjs +1 -1
- package/xata-http/index.d.cts +3 -4
- package/xata-http/index.d.ts +3 -4
- package/xata-http/index.js +1 -1
- package/xata-http/migrator.d.cts +7 -13
- package/xata-http/migrator.d.ts +7 -13
- package/xata-http/session.cjs +1 -1
- package/xata-http/session.d.cts +34 -39
- package/xata-http/session.d.ts +34 -39
- package/xata-http/session.js +1 -1
- package/zod/column.d.cts +10 -15
- package/zod/column.d.ts +10 -15
- package/zod/column.types.d.cts +19 -21
- package/zod/column.types.d.ts +19 -21
- package/zod/index.d.cts +5 -6
- package/zod/index.d.ts +5 -6
- package/zod/schema.cjs +1 -1
- package/zod/schema.d.cts +8 -13
- package/zod/schema.d.ts +8 -13
- package/zod/schema.js +1 -1
- package/zod/schema.types.d.cts +25 -28
- package/zod/schema.types.d.ts +25 -28
- package/zod/schema.types.internal.d.cts +26 -24
- package/zod/schema.types.internal.d.ts +26 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","names":["SingleStoreTransaction","PreparedQueryBase"],"sources":["../../src/singlestore-proxy/session.ts"],"sourcesContent":["import type { FieldPacket, ResultSetHeader } from 'mysql2/promise';\nimport type * as V1 from '~/_relations.ts';\nimport { Column } from '~/column.ts';\nimport { entityKind, is } from '~/entity.ts';\nimport type { Logger } from '~/logger.ts';\nimport { NoopLogger } from '~/logger.ts';\nimport {\n\ttype AnyRelations,\n\tmakeJitRqbMapper,\n\ttype RelationalQueryMapperConfig,\n\ttype RelationalRowsMapper,\n} from '~/relations.ts';\nimport type { SingleStoreDialect } from '~/singlestore-core/dialect.ts';\nimport { SingleStoreTransaction } from '~/singlestore-core/index.ts';\nimport type { SelectedFieldsOrdered } from '~/singlestore-core/query-builders/select.types.ts';\nimport type {\n\tPreparedQueryKind,\n\tSingleStorePreparedQueryConfig,\n\tSingleStorePreparedQueryHKT,\n\tSingleStoreQueryResultHKT,\n\tSingleStoreTransactionConfig,\n} from '~/singlestore-core/session.ts';\nimport { SingleStorePreparedQuery as PreparedQueryBase, SingleStoreSession } from '~/singlestore-core/session.ts';\nimport type { Query, SQL } from '~/sql/sql.ts';\nimport { fillPlaceholders } from '~/sql/sql.ts';\nimport { type Assume, makeJitQueryMapper, mapResultRow, type RowsMapper } from '~/utils.ts';\nimport type { RemoteCallback } from './driver.ts';\n\nexport type SingleStoreRawQueryResult = [ResultSetHeader, FieldPacket[]];\n\nexport interface SingleStoreRemoteSessionOptions {\n\tlogger?: Logger;\n\tuseJitMappers?: boolean;\n}\n\nexport class SingleStoreRemoteSession<\n\tTFullSchema extends Record<string, unknown>,\n\tTRelations extends AnyRelations,\n\tTSchema extends V1.TablesRelationalConfig,\n> extends SingleStoreSession<\n\tSingleStoreRemoteQueryResultHKT,\n\tSingleStoreRemotePreparedQueryHKT,\n\tTFullSchema,\n\tTRelations,\n\tTSchema\n> {\n\tstatic override readonly [entityKind]: string = 'SingleStoreRemoteSession';\n\n\tprivate logger: Logger;\n\n\tconstructor(\n\t\tprivate client: RemoteCallback,\n\t\tdialect: SingleStoreDialect,\n\t\tprivate relations: TRelations,\n\t\tprivate schema: V1.RelationalSchemaConfig<TSchema> | undefined,\n\t\tprivate options: SingleStoreRemoteSessionOptions,\n\t) {\n\t\tsuper(dialect);\n\t\tthis.logger = options.logger ?? new NoopLogger();\n\t}\n\n\tprepareQuery<T extends SingleStorePreparedQueryConfig>(\n\t\tquery: Query,\n\t\tfields: SelectedFieldsOrdered | undefined,\n\t\tcustomResultMapper?: (rows: unknown[][]) => T['execute'],\n\t\tgeneratedIds?: Record<string, unknown>[],\n\t\treturningIds?: SelectedFieldsOrdered,\n\t): PreparedQueryKind<SingleStoreRemotePreparedQueryHKT, T> {\n\t\treturn new PreparedQuery(\n\t\t\tthis.client,\n\t\t\tquery.sql,\n\t\t\tquery.params,\n\t\t\tthis.logger,\n\t\t\tfields,\n\t\t\tthis.options.useJitMappers,\n\t\t\tcustomResultMapper,\n\t\t\tgeneratedIds,\n\t\t\treturningIds,\n\t\t) as PreparedQueryKind<SingleStoreRemotePreparedQueryHKT, T>;\n\t}\n\n\tprepareRelationalQuery<T extends SingleStorePreparedQueryConfig>(\n\t\tquery: Query,\n\t\tfields: SelectedFieldsOrdered | undefined,\n\t\tcustomResultMapper: (rows: Record<string, unknown>[]) => T['execute'],\n\t\tconfig: RelationalQueryMapperConfig,\n\t\tgeneratedIds?: Record<string, unknown>[],\n\t\treturningIds?: SelectedFieldsOrdered,\n\t): PreparedQueryKind<SingleStoreRemotePreparedQueryHKT, T> {\n\t\treturn new PreparedQuery(\n\t\t\tthis.client,\n\t\t\tquery.sql,\n\t\t\tquery.params,\n\t\t\tthis.logger,\n\t\t\tfields,\n\t\t\tthis.options.useJitMappers,\n\t\t\tcustomResultMapper,\n\t\t\tgeneratedIds,\n\t\t\treturningIds,\n\t\t\ttrue,\n\t\t\tconfig,\n\t\t) as any;\n\t}\n\n\toverride all<T = unknown>(query: SQL): Promise<T[]> {\n\t\tconst querySql = this.dialect.sqlToQuery(query);\n\t\tthis.logger.logQuery(querySql.sql, querySql.params);\n\t\treturn this.client(querySql.sql, querySql.params, 'all').then(({ rows }) => rows) as Promise<T[]>;\n\t}\n\n\toverride async transaction<T>(\n\t\t_transaction: (tx: SingleStoreProxyTransaction<TFullSchema, TRelations, TSchema>) => Promise<T>,\n\t\t_config?: SingleStoreTransactionConfig,\n\t): Promise<T> {\n\t\tthrow new Error('Transactions are not supported by the SingleStore Proxy driver');\n\t}\n}\n\nexport class SingleStoreProxyTransaction<\n\tTFullSchema extends Record<string, unknown>,\n\tTRelations extends AnyRelations,\n\tTSchema extends V1.TablesRelationalConfig,\n> extends SingleStoreTransaction<\n\tSingleStoreRemoteQueryResultHKT,\n\tSingleStoreRemotePreparedQueryHKT,\n\tTFullSchema,\n\tTRelations,\n\tTSchema\n> {\n\tstatic override readonly [entityKind]: string = 'SingleStoreProxyTransaction';\n\n\toverride async transaction<T>(\n\t\t_transaction: (tx: SingleStoreProxyTransaction<TFullSchema, TRelations, TSchema>) => Promise<T>,\n\t): Promise<T> {\n\t\tthrow new Error('Transactions are not supported by the SingleStore Proxy driver');\n\t}\n}\n\nexport class PreparedQuery<T extends SingleStorePreparedQueryConfig, TIsRqbV2 extends boolean = false>\n\textends PreparedQueryBase<T>\n{\n\tstatic override readonly [entityKind]: string = 'SingleStoreProxyPreparedQuery';\n\tprivate jitMapper?: RowsMapper<T['execute']> | RelationalRowsMapper<T['execute']>;\n\n\tconstructor(\n\t\tprivate client: RemoteCallback,\n\t\tprivate queryString: string,\n\t\tprivate params: unknown[],\n\t\tprivate logger: Logger,\n\t\tprivate fields: SelectedFieldsOrdered | undefined,\n\t\tprivate useJitMappers: boolean | undefined,\n\t\tprivate customResultMapper?: (\n\t\t\trows: TIsRqbV2 extends true ? Record<string, unknown>[] : unknown[][],\n\t\t) => T['execute'],\n\t\t// Keys that were used in $default and the value that was generated for them\n\t\tprivate generatedIds?: Record<string, unknown>[],\n\t\t// Keys that should be returned, it has the column with all properries + key from object\n\t\tprivate returningIds?: SelectedFieldsOrdered,\n\t\tprivate isRqbV2Query?: TIsRqbV2,\n\t\tprivate rqbConfig?: RelationalQueryMapperConfig,\n\t) {\n\t\tsuper();\n\t}\n\n\tasync execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\tif (this.isRqbV2Query) return this.executeRqbV2(placeholderValues);\n\n\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\tconst { fields, client, queryString, logger, joinsNotNullableMap, customResultMapper, returningIds, generatedIds } =\n\t\t\tthis;\n\n\t\tlogger.logQuery(queryString, params);\n\n\t\tif (!fields && !customResultMapper) {\n\t\t\tconst { rows: data } = await client(queryString, params, 'execute');\n\n\t\t\tconst insertId = data[0].insertId as number;\n\t\t\tconst affectedRows = data[0].affectedRows;\n\n\t\t\tif (returningIds) {\n\t\t\t\tconst returningResponse = [];\n\t\t\t\tlet j = 0;\n\t\t\t\tfor (let i = insertId; i < insertId + affectedRows; i++) {\n\t\t\t\t\tfor (const column of returningIds) {\n\t\t\t\t\t\tconst key = returningIds[0]!.path[0]!;\n\t\t\t\t\t\tif (is(column.field, Column)) {\n\t\t\t\t\t\t\t// @ts-ignore\n\t\t\t\t\t\t\tif (column.field.primary && column.field.autoIncrement) {\n\t\t\t\t\t\t\t\treturningResponse.push({ [key]: i });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (column.field.defaultFn && generatedIds) {\n\t\t\t\t\t\t\t\t// generatedIds[rowIdx][key]\n\t\t\t\t\t\t\t\treturningResponse.push({ [key]: generatedIds[j]![key] });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t\t}\n\n\t\t\t\treturn returningResponse;\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\tconst { rows } = await client(queryString, params, 'all');\n\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper(rows);\n\t\t}\n\n\t\treturn this.useJitMappers\n\t\t\t? (this.jitMapper = this.jitMapper as RowsMapper<T['execute']>\n\t\t\t\t?? makeJitQueryMapper<T['execute']>(fields!, joinsNotNullableMap))(rows)\n\t\t\t: rows.map((row) => mapResultRow(fields!, row, joinsNotNullableMap));\n\t}\n\n\tprivate async executeRqbV2(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\tconst { client, queryString, logger, customResultMapper } = this;\n\n\t\tlogger.logQuery(queryString, params);\n\n\t\tconst { rows: res } = await client(queryString, params, 'execute');\n\t\tconst rows = res[0];\n\n\t\treturn this.useJitMappers\n\t\t\t? (this.jitMapper = this.jitMapper as RelationalRowsMapper<T['execute']>\n\t\t\t\t?? makeJitRqbMapper<T['execute']>(this.rqbConfig!))(rows)\n\t\t\t: customResultMapper!(rows);\n\t}\n\n\toverride iterator(\n\t\t_placeholderValues: Record<string, unknown> = {},\n\t): AsyncGenerator<T['iterator']> {\n\t\tthrow new Error('Streaming is not supported by the SingleStore Proxy driver');\n\t}\n}\n\nexport interface SingleStoreRemoteQueryResultHKT extends SingleStoreQueryResultHKT {\n\ttype: SingleStoreRawQueryResult;\n}\n\nexport interface SingleStoreRemotePreparedQueryHKT extends SingleStorePreparedQueryHKT {\n\ttype: PreparedQuery<Assume<this['config'], SingleStorePreparedQueryConfig>>;\n}\n"],"mappings":";;;;;;;;;;AAmCA,IAAa,2BAAb,cAIU,mBAMR;CACD,QAA0B,cAAsB;CAEhD,AAAQ;CAER,YACC,AAAQ,QACR,SACA,AAAQ,WACR,AAAQ,QACR,AAAQ,SACP;AACD,QAAM,QAAQ;EANN;EAEA;EACA;EACA;AAGR,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;;CAGjD,aACC,OACA,QACA,oBACA,cACA,cAC0D;AAC1D,SAAO,IAAI,cACV,KAAK,QACL,MAAM,KACN,MAAM,QACN,KAAK,QACL,QACA,KAAK,QAAQ,eACb,oBACA,cACA,aACA;;CAGF,uBACC,OACA,QACA,oBACA,QACA,cACA,cAC0D;AAC1D,SAAO,IAAI,cACV,KAAK,QACL,MAAM,KACN,MAAM,QACN,KAAK,QACL,QACA,KAAK,QAAQ,eACb,oBACA,cACA,cACA,MACA,OACA;;CAGF,AAAS,IAAiB,OAA0B;EACnD,MAAM,WAAW,KAAK,QAAQ,WAAW,MAAM;AAC/C,OAAK,OAAO,SAAS,SAAS,KAAK,SAAS,OAAO;AACnD,SAAO,KAAK,OAAO,SAAS,KAAK,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,WAAW,KAAK;;CAGlF,MAAe,YACd,cACA,SACa;AACb,QAAM,IAAI,MAAM,iEAAiE;;;AAInF,IAAa,8BAAb,cAIUA,yBAMR;CACD,QAA0B,cAAsB;CAEhD,MAAe,YACd,cACa;AACb,QAAM,IAAI,MAAM,iEAAiE;;;AAInF,IAAa,gBAAb,cACSC,yBACT;CACC,QAA0B,cAAsB;CAChD,AAAQ;CAER,YACC,AAAQ,QACR,AAAQ,aACR,AAAQ,QACR,AAAQ,QACR,AAAQ,QACR,AAAQ,eACR,AAAQ,oBAIR,AAAQ,cAER,AAAQ,cACR,AAAQ,cACR,AAAQ,WACP;AACD,SAAO;EAhBC;EACA;EACA;EACA;EACA;EACA;EACA;EAIA;EAEA;EACA;EACA;;CAKT,MAAM,QAAQ,oBAAyD,EAAE,EAAyB;AACjG,MAAI,KAAK,aAAc,QAAO,KAAK,aAAa,kBAAkB;EAElE,MAAM,SAAS,iBAAiB,KAAK,QAAQ,kBAAkB;EAE/D,MAAM,EAAE,QAAQ,QAAQ,aAAa,QAAQ,qBAAqB,oBAAoB,cAAc,iBACnG;AAED,SAAO,SAAS,aAAa,OAAO;AAEpC,MAAI,CAAC,UAAU,CAAC,oBAAoB;GACnC,MAAM,EAAE,MAAM,SAAS,MAAM,OAAO,aAAa,QAAQ,UAAU;GAEnE,MAAM,WAAW,KAAK,GAAG;GACzB,MAAM,eAAe,KAAK,GAAG;AAE7B,OAAI,cAAc;IACjB,MAAM,oBAAoB,EAAE;IAC5B,IAAI,IAAI;AACR,SAAK,IAAI,IAAI,UAAU,IAAI,WAAW,cAAc,KAAK;AACxD,UAAK,MAAM,UAAU,cAAc;MAClC,MAAM,MAAM,aAAa,GAAI,KAAK;AAClC,UAAI,GAAG,OAAO,OAAO,OAAO,EAAE;AAE7B,WAAI,OAAO,MAAM,WAAW,OAAO,MAAM,cACxC,mBAAkB,KAAK,GAAG,MAAM,GAAG,CAAC;AAErC,WAAI,OAAO,MAAM,aAAa,aAE7B,mBAAkB,KAAK,GAAG,MAAM,aAAa,GAAI,MAAM,CAAC;;;AAI3D;;AAGD,WAAO;;AAGR,UAAO;;EAGR,MAAM,EAAE,SAAS,MAAM,OAAO,aAAa,QAAQ,MAAM;AAEzD,MAAI,mBACH,QAAO,mBAAmB,KAAK;AAGhC,SAAO,KAAK,iBACR,KAAK,YAAY,KAAK,aACrB,mBAAiC,QAAS,oBAAoB,EAAE,KAAK,GACvE,KAAK,KAAK,QAAQ,aAAa,QAAS,KAAK,oBAAoB,CAAC;;CAGtE,MAAc,aAAa,oBAAyD,EAAE,EAAyB;EAC9G,MAAM,SAAS,iBAAiB,KAAK,QAAQ,kBAAkB;EAE/D,MAAM,EAAE,QAAQ,aAAa,QAAQ,uBAAuB;AAE5D,SAAO,SAAS,aAAa,OAAO;EAEpC,MAAM,EAAE,MAAM,QAAQ,MAAM,OAAO,aAAa,QAAQ,UAAU;EAClE,MAAM,OAAO,IAAI;AAEjB,SAAO,KAAK,iBACR,KAAK,YAAY,KAAK,aACrB,iBAA+B,KAAK,UAAW,EAAE,KAAK,GACxD,mBAAoB,KAAK;;CAG7B,AAAS,SACR,qBAA8C,EAAE,EAChB;AAChC,QAAM,IAAI,MAAM,6DAA6D"}
|
|
1
|
+
{"version":3,"file":"session.js","names":["PreparedQueryBase"],"sources":["../../src/singlestore-proxy/session.ts"],"sourcesContent":["import type { FieldPacket, ResultSetHeader } from 'mysql2/promise';\nimport type * as V1 from '~/_relations.ts';\nimport { Column } from '~/column.ts';\nimport { entityKind, is } from '~/entity.ts';\nimport type { Logger } from '~/logger.ts';\nimport { NoopLogger } from '~/logger.ts';\nimport {\n\ttype AnyRelations,\n\tmakeJitRqbMapper,\n\ttype RelationalQueryMapperConfig,\n\ttype RelationalRowsMapper,\n} from '~/relations.ts';\nimport type { SingleStoreDialect } from '~/singlestore-core/dialect.ts';\nimport { SingleStoreTransaction } from '~/singlestore-core/index.ts';\nimport type { SelectedFieldsOrdered } from '~/singlestore-core/query-builders/select.types.ts';\nimport type {\n\tPreparedQueryKind,\n\tSingleStorePreparedQueryConfig,\n\tSingleStorePreparedQueryHKT,\n\tSingleStoreQueryResultHKT,\n\tSingleStoreTransactionConfig,\n} from '~/singlestore-core/session.ts';\nimport { SingleStorePreparedQuery as PreparedQueryBase, SingleStoreSession } from '~/singlestore-core/session.ts';\nimport type { Query, SQL } from '~/sql/sql.ts';\nimport { fillPlaceholders } from '~/sql/sql.ts';\nimport { type Assume, makeJitQueryMapper, mapResultRow, type RowsMapper } from '~/utils.ts';\nimport type { RemoteCallback } from './driver.ts';\n\nexport type SingleStoreRawQueryResult = [ResultSetHeader, FieldPacket[]];\n\nexport interface SingleStoreRemoteSessionOptions {\n\tlogger?: Logger;\n\tuseJitMappers?: boolean;\n}\n\nexport class SingleStoreRemoteSession<\n\tTFullSchema extends Record<string, unknown>,\n\tTRelations extends AnyRelations,\n\tTSchema extends V1.TablesRelationalConfig,\n> extends SingleStoreSession<\n\tSingleStoreRemoteQueryResultHKT,\n\tSingleStoreRemotePreparedQueryHKT,\n\tTFullSchema,\n\tTRelations,\n\tTSchema\n> {\n\tstatic override readonly [entityKind]: string = 'SingleStoreRemoteSession';\n\n\tprivate logger: Logger;\n\n\tconstructor(\n\t\tprivate client: RemoteCallback,\n\t\tdialect: SingleStoreDialect,\n\t\tprivate relations: TRelations,\n\t\tprivate schema: V1.RelationalSchemaConfig<TSchema> | undefined,\n\t\tprivate options: SingleStoreRemoteSessionOptions,\n\t) {\n\t\tsuper(dialect);\n\t\tthis.logger = options.logger ?? new NoopLogger();\n\t}\n\n\tprepareQuery<T extends SingleStorePreparedQueryConfig>(\n\t\tquery: Query,\n\t\tfields: SelectedFieldsOrdered | undefined,\n\t\tcustomResultMapper?: (rows: unknown[][]) => T['execute'],\n\t\tgeneratedIds?: Record<string, unknown>[],\n\t\treturningIds?: SelectedFieldsOrdered,\n\t): PreparedQueryKind<SingleStoreRemotePreparedQueryHKT, T> {\n\t\treturn new PreparedQuery(\n\t\t\tthis.client,\n\t\t\tquery.sql,\n\t\t\tquery.params,\n\t\t\tthis.logger,\n\t\t\tfields,\n\t\t\tthis.options.useJitMappers,\n\t\t\tcustomResultMapper,\n\t\t\tgeneratedIds,\n\t\t\treturningIds,\n\t\t) as PreparedQueryKind<SingleStoreRemotePreparedQueryHKT, T>;\n\t}\n\n\tprepareRelationalQuery<T extends SingleStorePreparedQueryConfig>(\n\t\tquery: Query,\n\t\tfields: SelectedFieldsOrdered | undefined,\n\t\tcustomResultMapper: (rows: Record<string, unknown>[]) => T['execute'],\n\t\tconfig: RelationalQueryMapperConfig,\n\t\tgeneratedIds?: Record<string, unknown>[],\n\t\treturningIds?: SelectedFieldsOrdered,\n\t): PreparedQueryKind<SingleStoreRemotePreparedQueryHKT, T> {\n\t\treturn new PreparedQuery(\n\t\t\tthis.client,\n\t\t\tquery.sql,\n\t\t\tquery.params,\n\t\t\tthis.logger,\n\t\t\tfields,\n\t\t\tthis.options.useJitMappers,\n\t\t\tcustomResultMapper,\n\t\t\tgeneratedIds,\n\t\t\treturningIds,\n\t\t\ttrue,\n\t\t\tconfig,\n\t\t) as any;\n\t}\n\n\toverride all<T = unknown>(query: SQL): Promise<T[]> {\n\t\tconst querySql = this.dialect.sqlToQuery(query);\n\t\tthis.logger.logQuery(querySql.sql, querySql.params);\n\t\treturn this.client(querySql.sql, querySql.params, 'all').then(({ rows }) => rows) as Promise<T[]>;\n\t}\n\n\toverride async transaction<T>(\n\t\t_transaction: (tx: SingleStoreProxyTransaction<TFullSchema, TRelations, TSchema>) => Promise<T>,\n\t\t_config?: SingleStoreTransactionConfig,\n\t): Promise<T> {\n\t\tthrow new Error('Transactions are not supported by the SingleStore Proxy driver');\n\t}\n}\n\nexport class SingleStoreProxyTransaction<\n\tTFullSchema extends Record<string, unknown>,\n\tTRelations extends AnyRelations,\n\tTSchema extends V1.TablesRelationalConfig,\n> extends SingleStoreTransaction<\n\tSingleStoreRemoteQueryResultHKT,\n\tSingleStoreRemotePreparedQueryHKT,\n\tTFullSchema,\n\tTRelations,\n\tTSchema\n> {\n\tstatic override readonly [entityKind]: string = 'SingleStoreProxyTransaction';\n\n\toverride async transaction<T>(\n\t\t_transaction: (tx: SingleStoreProxyTransaction<TFullSchema, TRelations, TSchema>) => Promise<T>,\n\t): Promise<T> {\n\t\tthrow new Error('Transactions are not supported by the SingleStore Proxy driver');\n\t}\n}\n\nexport class PreparedQuery<T extends SingleStorePreparedQueryConfig, TIsRqbV2 extends boolean = false>\n\textends PreparedQueryBase<T>\n{\n\tstatic override readonly [entityKind]: string = 'SingleStoreProxyPreparedQuery';\n\tprivate jitMapper?: RowsMapper<T['execute']> | RelationalRowsMapper<T['execute']>;\n\n\tconstructor(\n\t\tprivate client: RemoteCallback,\n\t\tprivate queryString: string,\n\t\tprivate params: unknown[],\n\t\tprivate logger: Logger,\n\t\tprivate fields: SelectedFieldsOrdered | undefined,\n\t\tprivate useJitMappers: boolean | undefined,\n\t\tprivate customResultMapper?: (\n\t\t\trows: TIsRqbV2 extends true ? Record<string, unknown>[] : unknown[][],\n\t\t) => T['execute'],\n\t\t// Keys that were used in $default and the value that was generated for them\n\t\tprivate generatedIds?: Record<string, unknown>[],\n\t\t// Keys that should be returned, it has the column with all properries + key from object\n\t\tprivate returningIds?: SelectedFieldsOrdered,\n\t\tprivate isRqbV2Query?: TIsRqbV2,\n\t\tprivate rqbConfig?: RelationalQueryMapperConfig,\n\t) {\n\t\tsuper();\n\t}\n\n\tasync execute(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\tif (this.isRqbV2Query) return this.executeRqbV2(placeholderValues);\n\n\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\tconst { fields, client, queryString, logger, joinsNotNullableMap, customResultMapper, returningIds, generatedIds } =\n\t\t\tthis;\n\n\t\tlogger.logQuery(queryString, params);\n\n\t\tif (!fields && !customResultMapper) {\n\t\t\tconst { rows: data } = await client(queryString, params, 'execute');\n\n\t\t\tconst insertId = data[0].insertId as number;\n\t\t\tconst affectedRows = data[0].affectedRows;\n\n\t\t\tif (returningIds) {\n\t\t\t\tconst returningResponse = [];\n\t\t\t\tlet j = 0;\n\t\t\t\tfor (let i = insertId; i < insertId + affectedRows; i++) {\n\t\t\t\t\tfor (const column of returningIds) {\n\t\t\t\t\t\tconst key = returningIds[0]!.path[0]!;\n\t\t\t\t\t\tif (is(column.field, Column)) {\n\t\t\t\t\t\t\t// @ts-ignore\n\t\t\t\t\t\t\tif (column.field.primary && column.field.autoIncrement) {\n\t\t\t\t\t\t\t\treturningResponse.push({ [key]: i });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (column.field.defaultFn && generatedIds) {\n\t\t\t\t\t\t\t\t// generatedIds[rowIdx][key]\n\t\t\t\t\t\t\t\treturningResponse.push({ [key]: generatedIds[j]![key] });\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t\t}\n\n\t\t\t\treturn returningResponse;\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\tconst { rows } = await client(queryString, params, 'all');\n\n\t\tif (customResultMapper) {\n\t\t\treturn customResultMapper(rows);\n\t\t}\n\n\t\treturn this.useJitMappers\n\t\t\t? (this.jitMapper = this.jitMapper as RowsMapper<T['execute']>\n\t\t\t\t?? makeJitQueryMapper<T['execute']>(fields!, joinsNotNullableMap))(rows)\n\t\t\t: rows.map((row) => mapResultRow(fields!, row, joinsNotNullableMap));\n\t}\n\n\tprivate async executeRqbV2(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['execute']> {\n\t\tconst params = fillPlaceholders(this.params, placeholderValues);\n\n\t\tconst { client, queryString, logger, customResultMapper } = this;\n\n\t\tlogger.logQuery(queryString, params);\n\n\t\tconst { rows: res } = await client(queryString, params, 'execute');\n\t\tconst rows = res[0];\n\n\t\treturn this.useJitMappers\n\t\t\t? (this.jitMapper = this.jitMapper as RelationalRowsMapper<T['execute']>\n\t\t\t\t?? makeJitRqbMapper<T['execute']>(this.rqbConfig!))(rows)\n\t\t\t: customResultMapper!(rows);\n\t}\n\n\toverride iterator(\n\t\t_placeholderValues: Record<string, unknown> = {},\n\t): AsyncGenerator<T['iterator']> {\n\t\tthrow new Error('Streaming is not supported by the SingleStore Proxy driver');\n\t}\n}\n\nexport interface SingleStoreRemoteQueryResultHKT extends SingleStoreQueryResultHKT {\n\ttype: SingleStoreRawQueryResult;\n}\n\nexport interface SingleStoreRemotePreparedQueryHKT extends SingleStorePreparedQueryHKT {\n\ttype: PreparedQuery<Assume<this['config'], SingleStorePreparedQueryConfig>>;\n}\n"],"mappings":";;;;;;;;;;AAmCA,IAAa,2BAAb,cAIU,mBAMR;CACD,QAA0B,cAAsB;CAEhD,AAAQ;CAER,YACC,AAAQ,QACR,SACA,AAAQ,WACR,AAAQ,QACR,AAAQ,SACP;AACD,QAAM,QAAQ;EANN;EAEA;EACA;EACA;AAGR,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;;CAGjD,aACC,OACA,QACA,oBACA,cACA,cAC0D;AAC1D,SAAO,IAAI,cACV,KAAK,QACL,MAAM,KACN,MAAM,QACN,KAAK,QACL,QACA,KAAK,QAAQ,eACb,oBACA,cACA,aACA;;CAGF,uBACC,OACA,QACA,oBACA,QACA,cACA,cAC0D;AAC1D,SAAO,IAAI,cACV,KAAK,QACL,MAAM,KACN,MAAM,QACN,KAAK,QACL,QACA,KAAK,QAAQ,eACb,oBACA,cACA,cACA,MACA,OACA;;CAGF,AAAS,IAAiB,OAA0B;EACnD,MAAM,WAAW,KAAK,QAAQ,WAAW,MAAM;AAC/C,OAAK,OAAO,SAAS,SAAS,KAAK,SAAS,OAAO;AACnD,SAAO,KAAK,OAAO,SAAS,KAAK,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,WAAW,KAAK;;CAGlF,MAAe,YACd,cACA,SACa;AACb,QAAM,IAAI,MAAM,iEAAiE;;;AAInF,IAAa,8BAAb,cAIU,uBAMR;CACD,QAA0B,cAAsB;CAEhD,MAAe,YACd,cACa;AACb,QAAM,IAAI,MAAM,iEAAiE;;;AAInF,IAAa,gBAAb,cACSA,yBACT;CACC,QAA0B,cAAsB;CAChD,AAAQ;CAER,YACC,AAAQ,QACR,AAAQ,aACR,AAAQ,QACR,AAAQ,QACR,AAAQ,QACR,AAAQ,eACR,AAAQ,oBAIR,AAAQ,cAER,AAAQ,cACR,AAAQ,cACR,AAAQ,WACP;AACD,SAAO;EAhBC;EACA;EACA;EACA;EACA;EACA;EACA;EAIA;EAEA;EACA;EACA;;CAKT,MAAM,QAAQ,oBAAyD,EAAE,EAAyB;AACjG,MAAI,KAAK,aAAc,QAAO,KAAK,aAAa,kBAAkB;EAElE,MAAM,SAAS,iBAAiB,KAAK,QAAQ,kBAAkB;EAE/D,MAAM,EAAE,QAAQ,QAAQ,aAAa,QAAQ,qBAAqB,oBAAoB,cAAc,iBACnG;AAED,SAAO,SAAS,aAAa,OAAO;AAEpC,MAAI,CAAC,UAAU,CAAC,oBAAoB;GACnC,MAAM,EAAE,MAAM,SAAS,MAAM,OAAO,aAAa,QAAQ,UAAU;GAEnE,MAAM,WAAW,KAAK,GAAG;GACzB,MAAM,eAAe,KAAK,GAAG;AAE7B,OAAI,cAAc;IACjB,MAAM,oBAAoB,EAAE;IAC5B,IAAI,IAAI;AACR,SAAK,IAAI,IAAI,UAAU,IAAI,WAAW,cAAc,KAAK;AACxD,UAAK,MAAM,UAAU,cAAc;MAClC,MAAM,MAAM,aAAa,GAAI,KAAK;AAClC,UAAI,GAAG,OAAO,OAAO,OAAO,EAAE;AAE7B,WAAI,OAAO,MAAM,WAAW,OAAO,MAAM,cACxC,mBAAkB,KAAK,GAAG,MAAM,GAAG,CAAC;AAErC,WAAI,OAAO,MAAM,aAAa,aAE7B,mBAAkB,KAAK,GAAG,MAAM,aAAa,GAAI,MAAM,CAAC;;;AAI3D;;AAGD,WAAO;;AAGR,UAAO;;EAGR,MAAM,EAAE,SAAS,MAAM,OAAO,aAAa,QAAQ,MAAM;AAEzD,MAAI,mBACH,QAAO,mBAAmB,KAAK;AAGhC,SAAO,KAAK,iBACR,KAAK,YAAY,KAAK,aACrB,mBAAiC,QAAS,oBAAoB,EAAE,KAAK,GACvE,KAAK,KAAK,QAAQ,aAAa,QAAS,KAAK,oBAAoB,CAAC;;CAGtE,MAAc,aAAa,oBAAyD,EAAE,EAAyB;EAC9G,MAAM,SAAS,iBAAiB,KAAK,QAAQ,kBAAkB;EAE/D,MAAM,EAAE,QAAQ,aAAa,QAAQ,uBAAuB;AAE5D,SAAO,SAAS,aAAa,OAAO;EAEpC,MAAM,EAAE,MAAM,QAAQ,MAAM,OAAO,aAAa,QAAQ,UAAU;EAClE,MAAM,OAAO,IAAI;AAEjB,SAAO,KAAK,iBACR,KAAK,YAAY,KAAK,aACrB,iBAA+B,KAAK,UAAW,EAAE,KAAK,GACxD,mBAAoB,KAAK;;CAG7B,AAAS,SACR,qBAA8C,EAAE,EAChB;AAChC,QAAM,IAAI,MAAM,6DAA6D"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<T>(left: SQL.Aliased<T>, right: T | SQLWrapper): SQL;
|
|
9
|
-
<T extends SQLWrapper>(left: Exclude<T, SQL.Aliased | Column>, right: unknown): SQL;
|
|
1
|
+
import { type AnyColumn, Column, type GetColumnData } from '../../column.cjs';
|
|
2
|
+
import { Placeholder, SQL, type SQLChunk, type SQLWrapper } from '../sql.cjs';
|
|
3
|
+
export declare function bindIfParam(value: unknown, column: SQLWrapper): SQLChunk;
|
|
4
|
+
export interface BinaryOperator {
|
|
5
|
+
<TColumn extends Column>(left: TColumn, right: GetColumnData<TColumn, 'raw'> | SQLWrapper): SQL;
|
|
6
|
+
<T>(left: SQL.Aliased<T>, right: T | SQLWrapper): SQL;
|
|
7
|
+
<T extends SQLWrapper>(left: Exclude<T, SQL.Aliased | Column>, right: unknown): SQL;
|
|
10
8
|
}
|
|
11
9
|
/**
|
|
12
10
|
* Test that two values are equal.
|
|
@@ -26,7 +24,7 @@ interface BinaryOperator {
|
|
|
26
24
|
*
|
|
27
25
|
* @see isNull for a way to test equality to NULL.
|
|
28
26
|
*/
|
|
29
|
-
declare const eq: BinaryOperator;
|
|
27
|
+
export declare const eq: BinaryOperator;
|
|
30
28
|
/**
|
|
31
29
|
* Test that two values are not equal.
|
|
32
30
|
*
|
|
@@ -45,7 +43,7 @@ declare const eq: BinaryOperator;
|
|
|
45
43
|
*
|
|
46
44
|
* @see isNotNull for a way to test whether a value is not null.
|
|
47
45
|
*/
|
|
48
|
-
declare const ne: BinaryOperator;
|
|
46
|
+
export declare const ne: BinaryOperator;
|
|
49
47
|
/**
|
|
50
48
|
* Combine a list of conditions with the `and` operator. Conditions
|
|
51
49
|
* that are equal `undefined` are automatically ignored.
|
|
@@ -62,7 +60,7 @@ declare const ne: BinaryOperator;
|
|
|
62
60
|
* )
|
|
63
61
|
* ```
|
|
64
62
|
*/
|
|
65
|
-
declare function and(...conditions: (SQLWrapper | undefined)[]): SQL | undefined;
|
|
63
|
+
export declare function and(...conditions: (SQLWrapper | undefined)[]): SQL | undefined;
|
|
66
64
|
/**
|
|
67
65
|
* Combine a list of conditions with the `or` operator. Conditions
|
|
68
66
|
* that are equal `undefined` are automatically ignored.
|
|
@@ -79,7 +77,7 @@ declare function and(...conditions: (SQLWrapper | undefined)[]): SQL | undefined
|
|
|
79
77
|
* )
|
|
80
78
|
* ```
|
|
81
79
|
*/
|
|
82
|
-
declare function or(...conditions: (SQLWrapper | undefined)[]): SQL | undefined;
|
|
80
|
+
export declare function or(...conditions: (SQLWrapper | undefined)[]): SQL | undefined;
|
|
83
81
|
/**
|
|
84
82
|
* Negate the meaning of an expression using the `not` keyword.
|
|
85
83
|
*
|
|
@@ -91,7 +89,7 @@ declare function or(...conditions: (SQLWrapper | undefined)[]): SQL | undefined;
|
|
|
91
89
|
* .where(not(inArray(cars.make, ['GM', 'Ford'])))
|
|
92
90
|
* ```
|
|
93
91
|
*/
|
|
94
|
-
declare function not(condition: SQLWrapper): SQL;
|
|
92
|
+
export declare function not(condition: SQLWrapper): SQL;
|
|
95
93
|
/**
|
|
96
94
|
* Test that the first expression passed is greater than
|
|
97
95
|
* the second expression.
|
|
@@ -106,7 +104,7 @@ declare function not(condition: SQLWrapper): SQL;
|
|
|
106
104
|
*
|
|
107
105
|
* @see gte for greater-than-or-equal
|
|
108
106
|
*/
|
|
109
|
-
declare const gt: BinaryOperator;
|
|
107
|
+
export declare const gt: BinaryOperator;
|
|
110
108
|
/**
|
|
111
109
|
* Test that the first expression passed is greater than
|
|
112
110
|
* or equal to the second expression. Use `gt` to
|
|
@@ -123,7 +121,7 @@ declare const gt: BinaryOperator;
|
|
|
123
121
|
*
|
|
124
122
|
* @see gt for a strictly greater-than condition
|
|
125
123
|
*/
|
|
126
|
-
declare const gte: BinaryOperator;
|
|
124
|
+
export declare const gte: BinaryOperator;
|
|
127
125
|
/**
|
|
128
126
|
* Test that the first expression passed is less than
|
|
129
127
|
* the second expression.
|
|
@@ -138,7 +136,7 @@ declare const gte: BinaryOperator;
|
|
|
138
136
|
*
|
|
139
137
|
* @see lte for less-than-or-equal
|
|
140
138
|
*/
|
|
141
|
-
declare const lt: BinaryOperator;
|
|
139
|
+
export declare const lt: BinaryOperator;
|
|
142
140
|
/**
|
|
143
141
|
* Test that the first expression passed is less than
|
|
144
142
|
* or equal to the second expression.
|
|
@@ -153,7 +151,7 @@ declare const lt: BinaryOperator;
|
|
|
153
151
|
*
|
|
154
152
|
* @see lt for a strictly less-than condition
|
|
155
153
|
*/
|
|
156
|
-
declare const lte: BinaryOperator;
|
|
154
|
+
export declare const lte: BinaryOperator;
|
|
157
155
|
/**
|
|
158
156
|
* Test whether the first parameter, a column or expression,
|
|
159
157
|
* has a value from a list passed as the second argument.
|
|
@@ -168,9 +166,9 @@ declare const lte: BinaryOperator;
|
|
|
168
166
|
*
|
|
169
167
|
* @see notInArray for the inverse of this test
|
|
170
168
|
*/
|
|
171
|
-
declare function inArray<T>(column: SQL.Aliased<T>, values: (T | Placeholder)[] | SQLWrapper): SQL;
|
|
172
|
-
declare function inArray<TColumn extends Column>(column: TColumn, values: ReadonlyArray<GetColumnData<TColumn, 'raw'> | Placeholder> | SQLWrapper): SQL;
|
|
173
|
-
declare function inArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: ReadonlyArray<unknown | Placeholder> | SQLWrapper): SQL;
|
|
169
|
+
export declare function inArray<T>(column: SQL.Aliased<T>, values: (T | Placeholder)[] | SQLWrapper): SQL;
|
|
170
|
+
export declare function inArray<TColumn extends Column>(column: TColumn, values: ReadonlyArray<GetColumnData<TColumn, 'raw'> | Placeholder> | SQLWrapper): SQL;
|
|
171
|
+
export declare function inArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: ReadonlyArray<unknown | Placeholder> | SQLWrapper): SQL;
|
|
174
172
|
/**
|
|
175
173
|
* Test whether the first parameter, a column or expression,
|
|
176
174
|
* has a value that is not present in a list passed as the
|
|
@@ -186,9 +184,9 @@ declare function inArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased |
|
|
|
186
184
|
*
|
|
187
185
|
* @see inArray for the inverse of this test
|
|
188
186
|
*/
|
|
189
|
-
declare function notInArray<T>(column: SQL.Aliased<T>, values: (T | Placeholder)[] | SQLWrapper): SQL;
|
|
190
|
-
declare function notInArray<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder)[] | SQLWrapper): SQL;
|
|
191
|
-
declare function notInArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
187
|
+
export declare function notInArray<T>(column: SQL.Aliased<T>, values: (T | Placeholder)[] | SQLWrapper): SQL;
|
|
188
|
+
export declare function notInArray<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder)[] | SQLWrapper): SQL;
|
|
189
|
+
export declare function notInArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
192
190
|
/**
|
|
193
191
|
* Test whether an expression is NULL. By the SQL standard,
|
|
194
192
|
* NULL is neither equal nor not equal to itself, so
|
|
@@ -205,7 +203,7 @@ declare function notInArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased
|
|
|
205
203
|
*
|
|
206
204
|
* @see isNotNull for the inverse of this test
|
|
207
205
|
*/
|
|
208
|
-
declare function isNull(value: SQLWrapper): SQL;
|
|
206
|
+
export declare function isNull(value: SQLWrapper): SQL;
|
|
209
207
|
/**
|
|
210
208
|
* Test whether an expression is not NULL. By the SQL standard,
|
|
211
209
|
* NULL is neither equal nor not equal to itself, so
|
|
@@ -222,7 +220,7 @@ declare function isNull(value: SQLWrapper): SQL;
|
|
|
222
220
|
*
|
|
223
221
|
* @see isNull for the inverse of this test
|
|
224
222
|
*/
|
|
225
|
-
declare function isNotNull(value: SQLWrapper): SQL;
|
|
223
|
+
export declare function isNotNull(value: SQLWrapper): SQL;
|
|
226
224
|
/**
|
|
227
225
|
* Test whether a subquery evaluates to have any rows.
|
|
228
226
|
*
|
|
@@ -243,7 +241,7 @@ declare function isNotNull(value: SQLWrapper): SQL;
|
|
|
243
241
|
*
|
|
244
242
|
* @see notExists for the inverse of this test
|
|
245
243
|
*/
|
|
246
|
-
declare function exists(subquery: SQLWrapper): SQL;
|
|
244
|
+
export declare function exists(subquery: SQLWrapper): SQL;
|
|
247
245
|
/**
|
|
248
246
|
* Test whether a subquery doesn't include any result
|
|
249
247
|
* rows.
|
|
@@ -265,7 +263,7 @@ declare function exists(subquery: SQLWrapper): SQL;
|
|
|
265
263
|
*
|
|
266
264
|
* @see exists for the inverse of this test
|
|
267
265
|
*/
|
|
268
|
-
declare function notExists(subquery: SQLWrapper): SQL;
|
|
266
|
+
export declare function notExists(subquery: SQLWrapper): SQL;
|
|
269
267
|
/**
|
|
270
268
|
* Test whether an expression is between two values. This
|
|
271
269
|
* is an easier way to express range tests, which would be
|
|
@@ -285,9 +283,9 @@ declare function notExists(subquery: SQLWrapper): SQL;
|
|
|
285
283
|
*
|
|
286
284
|
* @see notBetween for the inverse of this test
|
|
287
285
|
*/
|
|
288
|
-
declare function between<T>(column: SQL.Aliased, min: T | SQLWrapper, max: T | SQLWrapper): SQL;
|
|
289
|
-
declare function between<TColumn extends AnyColumn>(column: TColumn, min: GetColumnData<TColumn, 'raw'> | SQLWrapper, max: GetColumnData<TColumn, 'raw'> | SQLWrapper): SQL;
|
|
290
|
-
declare function between<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, min: unknown, max: unknown): SQL;
|
|
286
|
+
export declare function between<T>(column: SQL.Aliased, min: T | SQLWrapper, max: T | SQLWrapper): SQL;
|
|
287
|
+
export declare function between<TColumn extends AnyColumn>(column: TColumn, min: GetColumnData<TColumn, 'raw'> | SQLWrapper, max: GetColumnData<TColumn, 'raw'> | SQLWrapper): SQL;
|
|
288
|
+
export declare function between<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, min: unknown, max: unknown): SQL;
|
|
291
289
|
/**
|
|
292
290
|
* Test whether an expression is not between two values.
|
|
293
291
|
*
|
|
@@ -305,9 +303,9 @@ declare function between<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased |
|
|
|
305
303
|
*
|
|
306
304
|
* @see between for the inverse of this test
|
|
307
305
|
*/
|
|
308
|
-
declare function notBetween<T>(column: SQL.Aliased, min: T | SQLWrapper, max: T | SQLWrapper): SQL;
|
|
309
|
-
declare function notBetween<TColumn extends AnyColumn>(column: TColumn, min: GetColumnData<TColumn, 'raw'> | SQLWrapper, max: GetColumnData<TColumn, 'raw'> | SQLWrapper): SQL;
|
|
310
|
-
declare function notBetween<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, min: unknown, max: unknown): SQL;
|
|
306
|
+
export declare function notBetween<T>(column: SQL.Aliased, min: T | SQLWrapper, max: T | SQLWrapper): SQL;
|
|
307
|
+
export declare function notBetween<TColumn extends AnyColumn>(column: TColumn, min: GetColumnData<TColumn, 'raw'> | SQLWrapper, max: GetColumnData<TColumn, 'raw'> | SQLWrapper): SQL;
|
|
308
|
+
export declare function notBetween<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, min: unknown, max: unknown): SQL;
|
|
311
309
|
/**
|
|
312
310
|
* Compare a column to a pattern, which can include `%` and `_`
|
|
313
311
|
* characters to match multiple variations. Including `%`
|
|
@@ -324,7 +322,7 @@ declare function notBetween<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased
|
|
|
324
322
|
*
|
|
325
323
|
* @see ilike for a case-insensitive version of this condition
|
|
326
324
|
*/
|
|
327
|
-
declare function like(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
325
|
+
export declare function like(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
328
326
|
/**
|
|
329
327
|
* The inverse of like - this tests that a given column
|
|
330
328
|
* does not match a pattern, which can include `%` and `_`
|
|
@@ -343,7 +341,7 @@ declare function like(column: Column | SQL.Aliased | SQL | SQLWrapper, value: st
|
|
|
343
341
|
* @see like for the inverse condition
|
|
344
342
|
* @see notIlike for a case-insensitive version of this condition
|
|
345
343
|
*/
|
|
346
|
-
declare function notLike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
344
|
+
export declare function notLike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
347
345
|
/**
|
|
348
346
|
* Case-insensitively compare a column to a pattern,
|
|
349
347
|
* which can include `%` and `_`
|
|
@@ -363,7 +361,7 @@ declare function notLike(column: Column | SQL.Aliased | SQL | SQLWrapper, value:
|
|
|
363
361
|
*
|
|
364
362
|
* @see like for a case-sensitive version of this condition
|
|
365
363
|
*/
|
|
366
|
-
declare function ilike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
364
|
+
export declare function ilike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
367
365
|
/**
|
|
368
366
|
* The inverse of ilike - this case-insensitively tests that a given column
|
|
369
367
|
* does not match a pattern, which can include `%` and `_`
|
|
@@ -382,7 +380,7 @@ declare function ilike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: s
|
|
|
382
380
|
* @see ilike for the inverse condition
|
|
383
381
|
* @see notLike for a case-sensitive version of this condition
|
|
384
382
|
*/
|
|
385
|
-
declare function notIlike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
383
|
+
export declare function notIlike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
386
384
|
/**
|
|
387
385
|
* Test that a column or expression contains all elements of
|
|
388
386
|
* the list passed as the second argument.
|
|
@@ -403,9 +401,9 @@ declare function notIlike(column: Column | SQL.Aliased | SQL | SQLWrapper, value
|
|
|
403
401
|
* @see arrayContained to find if an array contains all elements of a column or expression
|
|
404
402
|
* @see arrayOverlaps to find if a column or expression contains any elements of an array
|
|
405
403
|
*/
|
|
406
|
-
declare function arrayContains<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
407
|
-
declare function arrayContains<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
408
|
-
declare function arrayContains<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
404
|
+
export declare function arrayContains<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
405
|
+
export declare function arrayContains<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
406
|
+
export declare function arrayContains<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
409
407
|
/**
|
|
410
408
|
* Test that the list passed as the second argument contains
|
|
411
409
|
* all elements of a column or expression.
|
|
@@ -427,9 +425,9 @@ declare function arrayContains<T extends SQLWrapper>(column: Exclude<T, SQL.Alia
|
|
|
427
425
|
* @see arrayContains to find if a column or expression contains all elements of an array
|
|
428
426
|
* @see arrayOverlaps to find if a column or expression contains any elements of an array
|
|
429
427
|
*/
|
|
430
|
-
declare function arrayContained<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
431
|
-
declare function arrayContained<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
432
|
-
declare function arrayContained<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
428
|
+
export declare function arrayContained<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
429
|
+
export declare function arrayContained<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
430
|
+
export declare function arrayContained<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
433
431
|
/**
|
|
434
432
|
* Test that a column or expression contains any elements of
|
|
435
433
|
* the list passed as the second argument.
|
|
@@ -450,9 +448,6 @@ declare function arrayContained<T extends SQLWrapper>(column: Exclude<T, SQL.Ali
|
|
|
450
448
|
* @see arrayContains to find if a column or expression contains all elements of an array
|
|
451
449
|
* @see arrayContained to find if an array contains all elements of a column or expression
|
|
452
450
|
*/
|
|
453
|
-
declare function arrayOverlaps<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
454
|
-
declare function arrayOverlaps<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
455
|
-
declare function arrayOverlaps<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
456
|
-
//#endregion
|
|
457
|
-
export { BinaryOperator, and, arrayContained, arrayContains, arrayOverlaps, between, bindIfParam, eq, exists, gt, gte, ilike, inArray, isNotNull, isNull, like, lt, lte, ne, not, notBetween, notExists, notIlike, notInArray, notLike, or };
|
|
458
|
-
//# sourceMappingURL=conditions.d.cts.map
|
|
451
|
+
export declare function arrayOverlaps<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
452
|
+
export declare function arrayOverlaps<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
453
|
+
export declare function arrayOverlaps<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<T>(left: SQL.Aliased<T>, right: T | SQLWrapper): SQL;
|
|
9
|
-
<T extends SQLWrapper>(left: Exclude<T, SQL.Aliased | Column>, right: unknown): SQL;
|
|
1
|
+
import { type AnyColumn, Column, type GetColumnData } from '../../column.js';
|
|
2
|
+
import { Placeholder, SQL, type SQLChunk, type SQLWrapper } from '../sql.js';
|
|
3
|
+
export declare function bindIfParam(value: unknown, column: SQLWrapper): SQLChunk;
|
|
4
|
+
export interface BinaryOperator {
|
|
5
|
+
<TColumn extends Column>(left: TColumn, right: GetColumnData<TColumn, 'raw'> | SQLWrapper): SQL;
|
|
6
|
+
<T>(left: SQL.Aliased<T>, right: T | SQLWrapper): SQL;
|
|
7
|
+
<T extends SQLWrapper>(left: Exclude<T, SQL.Aliased | Column>, right: unknown): SQL;
|
|
10
8
|
}
|
|
11
9
|
/**
|
|
12
10
|
* Test that two values are equal.
|
|
@@ -26,7 +24,7 @@ interface BinaryOperator {
|
|
|
26
24
|
*
|
|
27
25
|
* @see isNull for a way to test equality to NULL.
|
|
28
26
|
*/
|
|
29
|
-
declare const eq: BinaryOperator;
|
|
27
|
+
export declare const eq: BinaryOperator;
|
|
30
28
|
/**
|
|
31
29
|
* Test that two values are not equal.
|
|
32
30
|
*
|
|
@@ -45,7 +43,7 @@ declare const eq: BinaryOperator;
|
|
|
45
43
|
*
|
|
46
44
|
* @see isNotNull for a way to test whether a value is not null.
|
|
47
45
|
*/
|
|
48
|
-
declare const ne: BinaryOperator;
|
|
46
|
+
export declare const ne: BinaryOperator;
|
|
49
47
|
/**
|
|
50
48
|
* Combine a list of conditions with the `and` operator. Conditions
|
|
51
49
|
* that are equal `undefined` are automatically ignored.
|
|
@@ -62,7 +60,7 @@ declare const ne: BinaryOperator;
|
|
|
62
60
|
* )
|
|
63
61
|
* ```
|
|
64
62
|
*/
|
|
65
|
-
declare function and(...conditions: (SQLWrapper | undefined)[]): SQL | undefined;
|
|
63
|
+
export declare function and(...conditions: (SQLWrapper | undefined)[]): SQL | undefined;
|
|
66
64
|
/**
|
|
67
65
|
* Combine a list of conditions with the `or` operator. Conditions
|
|
68
66
|
* that are equal `undefined` are automatically ignored.
|
|
@@ -79,7 +77,7 @@ declare function and(...conditions: (SQLWrapper | undefined)[]): SQL | undefined
|
|
|
79
77
|
* )
|
|
80
78
|
* ```
|
|
81
79
|
*/
|
|
82
|
-
declare function or(...conditions: (SQLWrapper | undefined)[]): SQL | undefined;
|
|
80
|
+
export declare function or(...conditions: (SQLWrapper | undefined)[]): SQL | undefined;
|
|
83
81
|
/**
|
|
84
82
|
* Negate the meaning of an expression using the `not` keyword.
|
|
85
83
|
*
|
|
@@ -91,7 +89,7 @@ declare function or(...conditions: (SQLWrapper | undefined)[]): SQL | undefined;
|
|
|
91
89
|
* .where(not(inArray(cars.make, ['GM', 'Ford'])))
|
|
92
90
|
* ```
|
|
93
91
|
*/
|
|
94
|
-
declare function not(condition: SQLWrapper): SQL;
|
|
92
|
+
export declare function not(condition: SQLWrapper): SQL;
|
|
95
93
|
/**
|
|
96
94
|
* Test that the first expression passed is greater than
|
|
97
95
|
* the second expression.
|
|
@@ -106,7 +104,7 @@ declare function not(condition: SQLWrapper): SQL;
|
|
|
106
104
|
*
|
|
107
105
|
* @see gte for greater-than-or-equal
|
|
108
106
|
*/
|
|
109
|
-
declare const gt: BinaryOperator;
|
|
107
|
+
export declare const gt: BinaryOperator;
|
|
110
108
|
/**
|
|
111
109
|
* Test that the first expression passed is greater than
|
|
112
110
|
* or equal to the second expression. Use `gt` to
|
|
@@ -123,7 +121,7 @@ declare const gt: BinaryOperator;
|
|
|
123
121
|
*
|
|
124
122
|
* @see gt for a strictly greater-than condition
|
|
125
123
|
*/
|
|
126
|
-
declare const gte: BinaryOperator;
|
|
124
|
+
export declare const gte: BinaryOperator;
|
|
127
125
|
/**
|
|
128
126
|
* Test that the first expression passed is less than
|
|
129
127
|
* the second expression.
|
|
@@ -138,7 +136,7 @@ declare const gte: BinaryOperator;
|
|
|
138
136
|
*
|
|
139
137
|
* @see lte for less-than-or-equal
|
|
140
138
|
*/
|
|
141
|
-
declare const lt: BinaryOperator;
|
|
139
|
+
export declare const lt: BinaryOperator;
|
|
142
140
|
/**
|
|
143
141
|
* Test that the first expression passed is less than
|
|
144
142
|
* or equal to the second expression.
|
|
@@ -153,7 +151,7 @@ declare const lt: BinaryOperator;
|
|
|
153
151
|
*
|
|
154
152
|
* @see lt for a strictly less-than condition
|
|
155
153
|
*/
|
|
156
|
-
declare const lte: BinaryOperator;
|
|
154
|
+
export declare const lte: BinaryOperator;
|
|
157
155
|
/**
|
|
158
156
|
* Test whether the first parameter, a column or expression,
|
|
159
157
|
* has a value from a list passed as the second argument.
|
|
@@ -168,9 +166,9 @@ declare const lte: BinaryOperator;
|
|
|
168
166
|
*
|
|
169
167
|
* @see notInArray for the inverse of this test
|
|
170
168
|
*/
|
|
171
|
-
declare function inArray<T>(column: SQL.Aliased<T>, values: (T | Placeholder)[] | SQLWrapper): SQL;
|
|
172
|
-
declare function inArray<TColumn extends Column>(column: TColumn, values: ReadonlyArray<GetColumnData<TColumn, 'raw'> | Placeholder> | SQLWrapper): SQL;
|
|
173
|
-
declare function inArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: ReadonlyArray<unknown | Placeholder> | SQLWrapper): SQL;
|
|
169
|
+
export declare function inArray<T>(column: SQL.Aliased<T>, values: (T | Placeholder)[] | SQLWrapper): SQL;
|
|
170
|
+
export declare function inArray<TColumn extends Column>(column: TColumn, values: ReadonlyArray<GetColumnData<TColumn, 'raw'> | Placeholder> | SQLWrapper): SQL;
|
|
171
|
+
export declare function inArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: ReadonlyArray<unknown | Placeholder> | SQLWrapper): SQL;
|
|
174
172
|
/**
|
|
175
173
|
* Test whether the first parameter, a column or expression,
|
|
176
174
|
* has a value that is not present in a list passed as the
|
|
@@ -186,9 +184,9 @@ declare function inArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased |
|
|
|
186
184
|
*
|
|
187
185
|
* @see inArray for the inverse of this test
|
|
188
186
|
*/
|
|
189
|
-
declare function notInArray<T>(column: SQL.Aliased<T>, values: (T | Placeholder)[] | SQLWrapper): SQL;
|
|
190
|
-
declare function notInArray<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder)[] | SQLWrapper): SQL;
|
|
191
|
-
declare function notInArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
187
|
+
export declare function notInArray<T>(column: SQL.Aliased<T>, values: (T | Placeholder)[] | SQLWrapper): SQL;
|
|
188
|
+
export declare function notInArray<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder)[] | SQLWrapper): SQL;
|
|
189
|
+
export declare function notInArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
192
190
|
/**
|
|
193
191
|
* Test whether an expression is NULL. By the SQL standard,
|
|
194
192
|
* NULL is neither equal nor not equal to itself, so
|
|
@@ -205,7 +203,7 @@ declare function notInArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased
|
|
|
205
203
|
*
|
|
206
204
|
* @see isNotNull for the inverse of this test
|
|
207
205
|
*/
|
|
208
|
-
declare function isNull(value: SQLWrapper): SQL;
|
|
206
|
+
export declare function isNull(value: SQLWrapper): SQL;
|
|
209
207
|
/**
|
|
210
208
|
* Test whether an expression is not NULL. By the SQL standard,
|
|
211
209
|
* NULL is neither equal nor not equal to itself, so
|
|
@@ -222,7 +220,7 @@ declare function isNull(value: SQLWrapper): SQL;
|
|
|
222
220
|
*
|
|
223
221
|
* @see isNull for the inverse of this test
|
|
224
222
|
*/
|
|
225
|
-
declare function isNotNull(value: SQLWrapper): SQL;
|
|
223
|
+
export declare function isNotNull(value: SQLWrapper): SQL;
|
|
226
224
|
/**
|
|
227
225
|
* Test whether a subquery evaluates to have any rows.
|
|
228
226
|
*
|
|
@@ -243,7 +241,7 @@ declare function isNotNull(value: SQLWrapper): SQL;
|
|
|
243
241
|
*
|
|
244
242
|
* @see notExists for the inverse of this test
|
|
245
243
|
*/
|
|
246
|
-
declare function exists(subquery: SQLWrapper): SQL;
|
|
244
|
+
export declare function exists(subquery: SQLWrapper): SQL;
|
|
247
245
|
/**
|
|
248
246
|
* Test whether a subquery doesn't include any result
|
|
249
247
|
* rows.
|
|
@@ -265,7 +263,7 @@ declare function exists(subquery: SQLWrapper): SQL;
|
|
|
265
263
|
*
|
|
266
264
|
* @see exists for the inverse of this test
|
|
267
265
|
*/
|
|
268
|
-
declare function notExists(subquery: SQLWrapper): SQL;
|
|
266
|
+
export declare function notExists(subquery: SQLWrapper): SQL;
|
|
269
267
|
/**
|
|
270
268
|
* Test whether an expression is between two values. This
|
|
271
269
|
* is an easier way to express range tests, which would be
|
|
@@ -285,9 +283,9 @@ declare function notExists(subquery: SQLWrapper): SQL;
|
|
|
285
283
|
*
|
|
286
284
|
* @see notBetween for the inverse of this test
|
|
287
285
|
*/
|
|
288
|
-
declare function between<T>(column: SQL.Aliased, min: T | SQLWrapper, max: T | SQLWrapper): SQL;
|
|
289
|
-
declare function between<TColumn extends AnyColumn>(column: TColumn, min: GetColumnData<TColumn, 'raw'> | SQLWrapper, max: GetColumnData<TColumn, 'raw'> | SQLWrapper): SQL;
|
|
290
|
-
declare function between<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, min: unknown, max: unknown): SQL;
|
|
286
|
+
export declare function between<T>(column: SQL.Aliased, min: T | SQLWrapper, max: T | SQLWrapper): SQL;
|
|
287
|
+
export declare function between<TColumn extends AnyColumn>(column: TColumn, min: GetColumnData<TColumn, 'raw'> | SQLWrapper, max: GetColumnData<TColumn, 'raw'> | SQLWrapper): SQL;
|
|
288
|
+
export declare function between<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, min: unknown, max: unknown): SQL;
|
|
291
289
|
/**
|
|
292
290
|
* Test whether an expression is not between two values.
|
|
293
291
|
*
|
|
@@ -305,9 +303,9 @@ declare function between<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased |
|
|
|
305
303
|
*
|
|
306
304
|
* @see between for the inverse of this test
|
|
307
305
|
*/
|
|
308
|
-
declare function notBetween<T>(column: SQL.Aliased, min: T | SQLWrapper, max: T | SQLWrapper): SQL;
|
|
309
|
-
declare function notBetween<TColumn extends AnyColumn>(column: TColumn, min: GetColumnData<TColumn, 'raw'> | SQLWrapper, max: GetColumnData<TColumn, 'raw'> | SQLWrapper): SQL;
|
|
310
|
-
declare function notBetween<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, min: unknown, max: unknown): SQL;
|
|
306
|
+
export declare function notBetween<T>(column: SQL.Aliased, min: T | SQLWrapper, max: T | SQLWrapper): SQL;
|
|
307
|
+
export declare function notBetween<TColumn extends AnyColumn>(column: TColumn, min: GetColumnData<TColumn, 'raw'> | SQLWrapper, max: GetColumnData<TColumn, 'raw'> | SQLWrapper): SQL;
|
|
308
|
+
export declare function notBetween<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, min: unknown, max: unknown): SQL;
|
|
311
309
|
/**
|
|
312
310
|
* Compare a column to a pattern, which can include `%` and `_`
|
|
313
311
|
* characters to match multiple variations. Including `%`
|
|
@@ -324,7 +322,7 @@ declare function notBetween<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased
|
|
|
324
322
|
*
|
|
325
323
|
* @see ilike for a case-insensitive version of this condition
|
|
326
324
|
*/
|
|
327
|
-
declare function like(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
325
|
+
export declare function like(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
328
326
|
/**
|
|
329
327
|
* The inverse of like - this tests that a given column
|
|
330
328
|
* does not match a pattern, which can include `%` and `_`
|
|
@@ -343,7 +341,7 @@ declare function like(column: Column | SQL.Aliased | SQL | SQLWrapper, value: st
|
|
|
343
341
|
* @see like for the inverse condition
|
|
344
342
|
* @see notIlike for a case-insensitive version of this condition
|
|
345
343
|
*/
|
|
346
|
-
declare function notLike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
344
|
+
export declare function notLike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
347
345
|
/**
|
|
348
346
|
* Case-insensitively compare a column to a pattern,
|
|
349
347
|
* which can include `%` and `_`
|
|
@@ -363,7 +361,7 @@ declare function notLike(column: Column | SQL.Aliased | SQL | SQLWrapper, value:
|
|
|
363
361
|
*
|
|
364
362
|
* @see like for a case-sensitive version of this condition
|
|
365
363
|
*/
|
|
366
|
-
declare function ilike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
364
|
+
export declare function ilike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
367
365
|
/**
|
|
368
366
|
* The inverse of ilike - this case-insensitively tests that a given column
|
|
369
367
|
* does not match a pattern, which can include `%` and `_`
|
|
@@ -382,7 +380,7 @@ declare function ilike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: s
|
|
|
382
380
|
* @see ilike for the inverse condition
|
|
383
381
|
* @see notLike for a case-sensitive version of this condition
|
|
384
382
|
*/
|
|
385
|
-
declare function notIlike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
383
|
+
export declare function notIlike(column: Column | SQL.Aliased | SQL | SQLWrapper, value: string | SQLWrapper): SQL;
|
|
386
384
|
/**
|
|
387
385
|
* Test that a column or expression contains all elements of
|
|
388
386
|
* the list passed as the second argument.
|
|
@@ -403,9 +401,9 @@ declare function notIlike(column: Column | SQL.Aliased | SQL | SQLWrapper, value
|
|
|
403
401
|
* @see arrayContained to find if an array contains all elements of a column or expression
|
|
404
402
|
* @see arrayOverlaps to find if a column or expression contains any elements of an array
|
|
405
403
|
*/
|
|
406
|
-
declare function arrayContains<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
407
|
-
declare function arrayContains<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
408
|
-
declare function arrayContains<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
404
|
+
export declare function arrayContains<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
405
|
+
export declare function arrayContains<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
406
|
+
export declare function arrayContains<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
409
407
|
/**
|
|
410
408
|
* Test that the list passed as the second argument contains
|
|
411
409
|
* all elements of a column or expression.
|
|
@@ -427,9 +425,9 @@ declare function arrayContains<T extends SQLWrapper>(column: Exclude<T, SQL.Alia
|
|
|
427
425
|
* @see arrayContains to find if a column or expression contains all elements of an array
|
|
428
426
|
* @see arrayOverlaps to find if a column or expression contains any elements of an array
|
|
429
427
|
*/
|
|
430
|
-
declare function arrayContained<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
431
|
-
declare function arrayContained<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
432
|
-
declare function arrayContained<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
428
|
+
export declare function arrayContained<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
429
|
+
export declare function arrayContained<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
430
|
+
export declare function arrayContained<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
433
431
|
/**
|
|
434
432
|
* Test that a column or expression contains any elements of
|
|
435
433
|
* the list passed as the second argument.
|
|
@@ -450,9 +448,6 @@ declare function arrayContained<T extends SQLWrapper>(column: Exclude<T, SQL.Ali
|
|
|
450
448
|
* @see arrayContains to find if a column or expression contains all elements of an array
|
|
451
449
|
* @see arrayContained to find if an array contains all elements of a column or expression
|
|
452
450
|
*/
|
|
453
|
-
declare function arrayOverlaps<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
454
|
-
declare function arrayOverlaps<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
455
|
-
declare function arrayOverlaps<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
456
|
-
//#endregion
|
|
457
|
-
export { BinaryOperator, and, arrayContained, arrayContains, arrayOverlaps, between, bindIfParam, eq, exists, gt, gte, ilike, inArray, isNotNull, isNull, like, lt, lte, ne, not, notBetween, notExists, notIlike, notInArray, notLike, or };
|
|
458
|
-
//# sourceMappingURL=conditions.d.ts.map
|
|
451
|
+
export declare function arrayOverlaps<T>(column: SQL.Aliased<T>, values: (T | Placeholder) | SQLWrapper): SQL;
|
|
452
|
+
export declare function arrayOverlaps<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> | Placeholder) | SQLWrapper): SQL;
|
|
453
|
+
export declare function arrayOverlaps<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { BinaryOperator, and, arrayContained, arrayContains, arrayOverlaps, asc, between, bindIfParam, desc, eq, exists, gt, gte, ilike, inArray, isNotNull, isNull, like, lt, lte, ne, not, notBetween, notExists, notIlike, notInArray, notLike, or };
|
|
1
|
+
export * from './conditions.cjs';
|
|
2
|
+
export * from './select.cjs';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { BinaryOperator, and, arrayContained, arrayContains, arrayOverlaps, asc, between, bindIfParam, desc, eq, exists, gt, gte, ilike, inArray, isNotNull, isNull, like, lt, lte, ne, not, notBetween, notExists, notIlike, notInArray, notLike, or };
|
|
1
|
+
export * from './conditions.js';
|
|
2
|
+
export * from './select.js';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
//#region src/sql/expressions/select.d.ts
|
|
1
|
+
import type { AnyColumn } from '../../column.cjs';
|
|
2
|
+
import type { SQL, SQLWrapper } from '../sql.cjs';
|
|
5
3
|
/**
|
|
6
4
|
* Used in sorting, this specifies that the given
|
|
7
5
|
* column or expression should be sorted in ascending
|
|
@@ -20,7 +18,7 @@ import { AnyColumn } from "../../column.cjs";
|
|
|
20
18
|
*
|
|
21
19
|
* @see desc to sort in descending order
|
|
22
20
|
*/
|
|
23
|
-
declare function asc(column: AnyColumn | SQLWrapper): SQL;
|
|
21
|
+
export declare function asc(column: AnyColumn | SQLWrapper): SQL;
|
|
24
22
|
/**
|
|
25
23
|
* Used in sorting, this specifies that the given
|
|
26
24
|
* column or expression should be sorted in descending
|
|
@@ -37,7 +35,4 @@ declare function asc(column: AnyColumn | SQLWrapper): SQL;
|
|
|
37
35
|
*
|
|
38
36
|
* @see asc to sort in ascending order
|
|
39
37
|
*/
|
|
40
|
-
declare function desc(column: AnyColumn | SQLWrapper): SQL;
|
|
41
|
-
//#endregion
|
|
42
|
-
export { asc, desc };
|
|
43
|
-
//# sourceMappingURL=select.d.cts.map
|
|
38
|
+
export declare function desc(column: AnyColumn | SQLWrapper): SQL;
|