UNPKG

slonik-utilities

Version:

Utilities for manipulating data in PostgreSQL database using Slonik.

10 lines (9 loc) 508 B
import { type CommonQueryMethods, type ValueExpression } from 'slonik'; declare type NamedValueBindingsType = { readonly [key: string]: ValueExpression; }; declare type UpsertConfigurationType = { readonly identifierName: string; }; export declare const upsert: (connection: CommonQueryMethods, tableName: string, namedValueBindings: NamedValueBindingsType, inputUniqueConstraintColumnNames?: readonly string[] | null, inputConfiguration?: UpsertConfigurationType | null) => Promise<any>; export {};