Polyglot SQL API Documentation - v0.1.0
    Preparing search index...

    Class UpdateBuilder

    Fluent builder for UPDATE statements.

    const sql = update('users')
    .set('name', lit('Bob'))
    .where(col('id').eq(lit(1)))
    .toSql();
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Return the Expression AST as a plain JS object.

      Returns any

    • Free the underlying WASM handle.

      Returns void

    • Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM).

      Parameters

      • tableName: string

      Returns this

    • Generate SQL string. Defaults to generic dialect.

      Parameters

      • dialect: string = 'generic'

      Returns string