Skip to content

Commit

Permalink
Fix wrong resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Nov 21, 2024
1 parent a2d734c commit 375ed28
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions drizzle-orm/src/pg-core/query-builders/insert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,16 @@ export class PgInsertBuilder<
return this;
}

values(value: PgInsertValue<TTable>): PgInsertBase<TTable, TQueryResult>;
values(values: PgInsertValue<TTable>[]): PgInsertBase<TTable, TQueryResult>;
values(values: PgInsertValue<TTable> | PgInsertValue<TTable>[]): PgInsertBase<TTable, TQueryResult> {
overridingSystemValue(): Omit<PgInsertBuilder<TTable, TQueryResult, true>, 'overridingSystemValue'> {
this.overridingSystemValue_ = true;
return this as any;
}

values(value: PgInsertValue<TTable, OverrideT>): PgInsertBase<TTable, TQueryResult>;
values(values: PgInsertValue<TTable, OverrideT>[]): PgInsertBase<TTable, TQueryResult>;
values(
values: PgInsertValue<TTable, OverrideT> | PgInsertValue<TTable, OverrideT>[],
): PgInsertBase<TTable, TQueryResult> {
values = Array.isArray(values) ? values : [values];
if (values.length === 0) {
throw new Error('values() must be called with at least one value');
Expand Down

0 comments on commit 375ed28

Please sign in to comment.