Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kysely_postgrs_js_dialect/deps.ts>kysely.Selectable

Kysely dialect for PostgreSQL using the Postgres.js client.
Latest
type alias kysely.Selectable
Re-export
import { type kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.4/deps.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]>>