import { kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.3/deps.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.