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

x/pasta/mod.ts>sql.makeUpsert

Create and manipulate type-safe SQL for PostgreSQL
Go to Latest
function sql.makeUpsert
import { sql } from "https://deno.land/x/pasta@0.0.4/mod.ts";
const { makeUpsert } = sql;

Parameters

table: string
insertValues: Record<string, unknown>
optional
updateValues: Record<string, unknown>