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

    Class InsertBuilder

    Fluent builder for INSERT INTO statements.

    const sql = insertInto('users')
    .columns('id', 'name')
    .values(lit(1), lit('Alice'))
    .toSql();
    Index

    Constructors

    Methods

    • Return the Expression AST as a plain JS object.

      Returns any

    • Set the target column names.

      Parameters

      • ...cols: string[]

      Returns this

    • Free the underlying WASM handle.

      Returns void

    • Generate SQL string. Defaults to generic dialect.

      Parameters

      • dialect: string = 'generic'

      Returns string

    • Append a row of values. Call multiple times for multiple rows.

      Parameters

      Returns this