Support update ... from
(Pg | SQLite)
#2680
Annotations
10 errors
Build
drizzle-orm#test:types: command (/home/runner/work/drizzle-orm/drizzle-orm/drizzle-orm) pnpm run test:types exited (2)
|
Build
Argument of type 'SQL<unknown>' is not assignable to parameter of type 'T extends AnyPgSelectQueryBuilder ? SQL<unknown> | ((aliases: T["_"]["selection"]) => SQL<unknown> | undefined) | undefined : T extends PgUpdateBase<infer TTable extends PgTable<TableConfig>, any, infer TFrom extends SQL<unknown> | Subquery<string, Record<string, unknown>> | PgTable<TableConfig> | PgViewBase<string, boolean, ColumnsSelection> | undefined, any, any, any, any, any> ? SQL<unknown> | ((updateTable: TTable["_"]["columns"], from: TFrom extends PgTable<TableConfig> ? TFrom["_"]["columns"] : TFrom extends Subquery<string, Record<string, unknown>> | PgViewBase<string, boolean, ColumnsSelection> ? TFrom["_"]["selectedFields"] : never) => SQL<unknown> | undefined) | undefined : never'.
|
Build
Argument of type 'SQL<unknown>' is not assignable to parameter of type '(T extends AnyPgSelectQueryBuilder ? PgJoin<T, true, "left", PgTableWithColumns<Required<Update<{ name: "users_table"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; uuid: PgColumn<{ name: "uuid"; tableName: "users_table"; dataType: "string"; columnType: "PgUUID"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; homeCity: PgColumn<{ name: "home_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; currentCity: PgColumn<{ name: "current_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNullable: PgColumn<{ name: "serial1"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNotNull: PgColumn<{ name: "serial2"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; class: PgColumn<{ name: "class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "A" | "C"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["A", "C"]; baseColumn: never; generated: undefined; }, {}, {}>; subClass: PgColumn<{ name: "sub_class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "B" | "D"; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["B", "D"]; baseColumn: never; generated: undefined; }, {}, {}>; text: PgColumn<{ name: "text"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; generated: undefined; }, {}, {}>; age1: PgColumn<{ name: "age1"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; createdAt: PgColumn<{ name: "created_at"; tableName: "users_table"; dataType: "date"; columnType: "PgTimestamp"; data: Date; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; enumCol: PgColumn<{ name: "enum_col"; tableName: "users_table"; dataType: "string"; columnType: "PgEnumColumn"; data: "a" | "b" | "c"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["a", "b",
|
Build
Argument of type 'SQL<unknown>' is not assignable to parameter of type '((T extends AnyPgSelectQueryBuilder ? PgJoin<T, true, "left", PgTableWithColumns<Required<Update<{ name: "users_table"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; uuid: PgColumn<{ name: "uuid"; tableName: "users_table"; dataType: "string"; columnType: "PgUUID"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; homeCity: PgColumn<{ name: "home_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; currentCity: PgColumn<{ name: "current_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNullable: PgColumn<{ name: "serial1"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNotNull: PgColumn<{ name: "serial2"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; class: PgColumn<{ name: "class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "A" | "C"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["A", "C"]; baseColumn: never; generated: undefined; }, {}, {}>; subClass: PgColumn<{ name: "sub_class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "B" | "D"; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["B", "D"]; baseColumn: never; generated: undefined; }, {}, {}>; text: PgColumn<{ name: "text"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; generated: undefined; }, {}, {}>; age1: PgColumn<{ name: "age1"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; createdAt: PgColumn<{ name: "created_at"; tableName: "users_table"; dataType: "date"; columnType: "PgTimestamp"; data: Date; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; enumCol: PgColumn<{ name: "enum_col"; tableName: "users_table"; dataType: "string"; columnType: "PgEnumColumn"; data: "a" | "b" | "c"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["a", "b"
|
Build
Argument of type 'SQL<unknown>' is not assignable to parameter of type '(((T extends AnyPgSelectQueryBuilder ? PgJoin<T, true, "left", PgTableWithColumns<Required<Update<{ name: "users_table"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; uuid: PgColumn<{ name: "uuid"; tableName: "users_table"; dataType: "string"; columnType: "PgUUID"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; homeCity: PgColumn<{ name: "home_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; currentCity: PgColumn<{ name: "current_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNullable: PgColumn<{ name: "serial1"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNotNull: PgColumn<{ name: "serial2"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; class: PgColumn<{ name: "class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "A" | "C"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["A", "C"]; baseColumn: never; generated: undefined; }, {}, {}>; subClass: PgColumn<{ name: "sub_class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "B" | "D"; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["B", "D"]; baseColumn: never; generated: undefined; }, {}, {}>; text: PgColumn<{ name: "text"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; generated: undefined; }, {}, {}>; age1: PgColumn<{ name: "age1"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; createdAt: PgColumn<{ name: "created_at"; tableName: "users_table"; dataType: "date"; columnType: "PgTimestamp"; data: Date; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; enumCol: PgColumn<{ name: "enum_col"; tableName: "users_table"; dataType: "string"; columnType: "PgEnumColumn"; data: "a" | "b" | "c"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["a", "b
|
Build
Argument of type 'SQL<unknown>' is not assignable to parameter of type '((((T extends AnyPgSelectQueryBuilder ? PgJoin<T, true, "left", PgTableWithColumns<Required<Update<{ name: "users_table"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; uuid: PgColumn<{ name: "uuid"; tableName: "users_table"; dataType: "string"; columnType: "PgUUID"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; homeCity: PgColumn<{ name: "home_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; currentCity: PgColumn<{ name: "current_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNullable: PgColumn<{ name: "serial1"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNotNull: PgColumn<{ name: "serial2"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; class: PgColumn<{ name: "class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "A" | "C"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["A", "C"]; baseColumn: never; generated: undefined; }, {}, {}>; subClass: PgColumn<{ name: "sub_class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "B" | "D"; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["B", "D"]; baseColumn: never; generated: undefined; }, {}, {}>; text: PgColumn<{ name: "text"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; generated: undefined; }, {}, {}>; age1: PgColumn<{ name: "age1"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; createdAt: PgColumn<{ name: "created_at"; tableName: "users_table"; dataType: "date"; columnType: "PgTimestamp"; data: Date; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; enumCol: PgColumn<{ name: "enum_col"; tableName: "users_table"; dataType: "string"; columnType: "PgEnumColumn"; data: "a" | "b" | "c"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["a", "
|
Build
Argument of type 'SQL<unknown>' is not assignable to parameter of type 'T extends AnyPgSelectQueryBuilder ? SQL<unknown> | ((aliases: T["_"]["selection"]) => SQL<unknown> | undefined) | undefined : T extends PgUpdateBase<infer TTable extends PgTable<TableConfig>, any, infer TFrom extends SQL<unknown> | Subquery<string, Record<string, unknown>> | PgTable<TableConfig> | PgViewBase<string, boolean, ColumnsSelection> | undefined, any, any, any, any, any> ? SQL<unknown> | ((updateTable: TTable["_"]["columns"], from: TFrom extends PgTable<TableConfig> ? TFrom["_"]["columns"] : TFrom extends Subquery<string, Record<string, unknown>> | PgViewBase<string, boolean, ColumnsSelection> ? TFrom["_"]["selectedFields"] : never) => SQL<unknown> | undefined) | undefined : never'.
|
Build
Argument of type 'SQL<unknown>' is not assignable to parameter of type '(T extends AnyPgSelectQueryBuilder ? PgJoin<T, true, "left", PgTableWithColumns<Required<Update<{ name: "users_table"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; uuid: PgColumn<{ name: "uuid"; tableName: "users_table"; dataType: "string"; columnType: "PgUUID"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; homeCity: PgColumn<{ name: "home_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; currentCity: PgColumn<{ name: "current_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNullable: PgColumn<{ name: "serial1"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNotNull: PgColumn<{ name: "serial2"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; class: PgColumn<{ name: "class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "A" | "C"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["A", "C"]; baseColumn: never; generated: undefined; }, {}, {}>; subClass: PgColumn<{ name: "sub_class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "B" | "D"; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["B", "D"]; baseColumn: never; generated: undefined; }, {}, {}>; text: PgColumn<{ name: "text"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; generated: undefined; }, {}, {}>; age1: PgColumn<{ name: "age1"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; createdAt: PgColumn<{ name: "created_at"; tableName: "users_table"; dataType: "date"; columnType: "PgTimestamp"; data: Date; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; enumCol: PgColumn<{ name: "enum_col"; tableName: "users_table"; dataType: "string"; columnType: "PgEnumColumn"; data: "a" | "b" | "c"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["a", "b",
|
Build
Argument of type 'SQL<unknown>' is not assignable to parameter of type '((T extends AnyPgSelectQueryBuilder ? PgJoin<T, true, "left", PgTableWithColumns<Required<Update<{ name: "users_table"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; uuid: PgColumn<{ name: "uuid"; tableName: "users_table"; dataType: "string"; columnType: "PgUUID"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; homeCity: PgColumn<{ name: "home_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; currentCity: PgColumn<{ name: "current_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNullable: PgColumn<{ name: "serial1"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNotNull: PgColumn<{ name: "serial2"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; class: PgColumn<{ name: "class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "A" | "C"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["A", "C"]; baseColumn: never; generated: undefined; }, {}, {}>; subClass: PgColumn<{ name: "sub_class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "B" | "D"; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["B", "D"]; baseColumn: never; generated: undefined; }, {}, {}>; text: PgColumn<{ name: "text"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; generated: undefined; }, {}, {}>; age1: PgColumn<{ name: "age1"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; createdAt: PgColumn<{ name: "created_at"; tableName: "users_table"; dataType: "date"; columnType: "PgTimestamp"; data: Date; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; enumCol: PgColumn<{ name: "enum_col"; tableName: "users_table"; dataType: "string"; columnType: "PgEnumColumn"; data: "a" | "b" | "c"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["a", "b"
|
Build
Argument of type 'SQL<unknown>' is not assignable to parameter of type '(((T extends AnyPgSelectQueryBuilder ? PgJoin<T, true, "left", PgTableWithColumns<Required<Update<{ name: "users_table"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; uuid: PgColumn<{ name: "uuid"; tableName: "users_table"; dataType: "string"; columnType: "PgUUID"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; homeCity: PgColumn<{ name: "home_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; currentCity: PgColumn<{ name: "current_city"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNullable: PgColumn<{ name: "serial1"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; serialNotNull: PgColumn<{ name: "serial2"; tableName: "users_table"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; class: PgColumn<{ name: "class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "A" | "C"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["A", "C"]; baseColumn: never; generated: undefined; }, {}, {}>; subClass: PgColumn<{ name: "sub_class"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: "B" | "D"; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["B", "D"]; baseColumn: never; generated: undefined; }, {}, {}>; text: PgColumn<{ name: "text"; tableName: "users_table"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; generated: undefined; }, {}, {}>; age1: PgColumn<{ name: "age1"; tableName: "users_table"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; createdAt: PgColumn<{ name: "created_at"; tableName: "users_table"; dataType: "date"; columnType: "PgTimestamp"; data: Date; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; generated: undefined; }, {}, {}>; enumCol: PgColumn<{ name: "enum_col"; tableName: "users_table"; dataType: "string"; columnType: "PgEnumColumn"; data: "a" | "b" | "c"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: ["a", "b
|
Loading