Implements

Constructors

Properties

#private: any

Methods

  • Simply calls the provided function passing this as the only argument. $call returns what the provided function returns.

    Type Parameters

    • T

    Parameters

    • func: ((qb) => T)
        • (qb): T
        • Parameters

          • qb: this

          Returns T

    Returns T

  • 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

    Returns CreateViewBuilder

  • Parameters

    • columns: string[]

    Returns CreateViewBuilder

  • Returns Promise<void>

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

    Returns CreateViewBuilder

  • Returns CreateViewBuilder

  • Returns CreateViewBuilder

  • Adds the "temporary" modifier.

    Use this to create a temporary view.

    Returns CreateViewBuilder