import { kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.4/deps.ts";
const { CreateTypeBuilder } = kysely;
Constructors
new
CreateTypeBuilder(props: CreateTypeBuilderProps)Methods
$call<T>(func: (qb: this) => T): T
Simply calls the provided function passing this
as the only argument. $call
returns
what the provided function returns.
asEnum(values: string[]): CreateTypeBuilder
Creates an anum type.
Examples
db.schema.createType('species').asEnum(['cat', 'dog', 'frog'])
execute(): Promise<void>