update method

Sqler update(
  1. QField table
)

Sets up the query for an UPDATE operation on the specified table.

table The table to update. Returns this to enable method chaining.

Note: This clears any existing FROM tables and sets the specified table as the single target for the UPDATE operation.

Example:

query.update(QField('users')); // Sets up UPDATE operation on users table

Implementation

Sqler update(QField table) {
  _from = [table];
  return this;
}