Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.CreateViewBuilder#as

Kysely dialect for PostgreSQL using the Postgres.js client.
Latest
method kysely.CreateViewBuilder.prototype.as
import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.4/mod.ts";
const { CreateViewBuilder } = kysely;

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!

Parameters

query: SelectQueryBuilder<any, any, any> | RawBuilder<any>