Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.Selectable

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

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

Examples

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

type Person = Selectable<PersonTable>
// {
//   id: number,
//   first_name: string
//   modified_at: Date
// }
definition: DrainOuterGeneric<[K in NonNeverSelectKeys<R>]: SelectType<R[K]>>