Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.Updateable

Kysely dialect for PostgreSQL using the deno-postgres client.
Go to Latest
type alias kysely.Updateable
Re-export
import { type kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.0/mod.ts";
const { Updateable } = kysely;

Given a table interface, extracts the update type from all ColumnType types.

Examples

interface PersonTable {
  id: Generated<number>
  first_name: string
  modified_at: ColumnType<Date, string, never>
}

type UpdateablePerson = Updateable<PersonTable>
// {
//   id?: number,
//   first_name?: string
// }
definition: DrainOuterGeneric<[K in UpdateKeys<R>]?: UpdateType<R[K]>>