Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.CreateViewBuilder

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
class kysely.CreateViewBuilder
Re-export
import { kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/mod.ts";
const { CreateViewBuilder } = kysely;

Constructors

new
CreateViewBuilder(props: CreateViewBuilderProps)

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.

as(query: SelectQueryBuilder<any, any, any> | RawBuilder<any>): CreateViewBuilder

Sets the select query or a values statement that creates the view.

WARNING! Some dialects don't support parameterized queries in DDL statements and therefore the query or raw sql expression passed here is interpolated into a single string opening an SQL injection vulnerability. DO NOT pass unchecked user input into the query or raw expression passed to this method!

columns(columns: string[]): CreateViewBuilder
execute(): Promise<void>

Only implemented on some dialects like SQLite. On most dialects, use orReplace.

Adds the "temporary" modifier.

Use this to create a temporary view.