Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pasta/src/database/typed-statement-builder.ts>upsert

Create and manipulate type-safe SQL for PostgreSQL
Go to Latest
function upsert
import { upsert } from "https://deno.land/x/pasta@0.0.7/src/database/typed-statement-builder.ts";

Returns

(insertValues: ColumnsOf<T>, updateValues?: ColumnsOf<T>) => ReturningBuilder<T>