Fluent builder for UPDATE statements.
const sql = update('users') .set('name', lit('Bob')) .where(col('id').eq(lit(1))) .toSql(); Copy
const sql = update('users') .set('name', lit('Bob')) .where(col('id').eq(lit(1))) .toSql();
Return the Expression AST as a plain JS object.
Free the underlying WASM handle.
Set the FROM clause (PostgreSQL/Snowflake UPDATE ... FROM).
Add a SET column = value assignment.
Generate SQL string. Defaults to generic dialect.
Set the WHERE clause.
Fluent builder for UPDATE statements.
Example