queries.UpdateQuery

Query class for UPDATE operations.

Usage

Source

queries.UpdateQuery(
    table,
    values,
)

Methods

Name Description
__init__() Initialize a new UPDATE query.
all() Explicitly indicate that this query should affect all rows.

__init__()

Initialize a new UPDATE query.

Usage

Source

__init__(table, values)
Parameters
table: BaseTable

The table to update

values: dict of str to Any
Column-value pairs to update

all()

Explicitly indicate that this query should affect all rows.

Usage

Source

all()
Returns
self
For method chaining