Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.CreateTypeBuilder

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
class kysely.CreateTypeBuilder
Re-export
import { kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/mod.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>