Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.Selectable

Kysely dialect for PostgreSQL using the Postgres.js client.
type alias kysely.Selectable
import { type kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/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]>>
import kysely.Selectable
import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/mod.ts";
const { Selectable } = kysely;