Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.CreateTypeBuilder

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