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.CreateTypeBuilder

Kysely dialect for PostgreSQL using the Postgres.js client.
Go to Latest
class kysely.CreateTypeBuilder
Re-export
import { kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.3/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>