Skip to content

IDatabase.Update method

Updates all records in a table, or a specific record, in the database.

public Task<DriverResponse> Update(Thing thing, object data, CancellationToken ct = default)
parameter description
thing The table name or the specific record id to update.
data The document / record data to insert.

Remarks

This function replaces the current document / record data with the specified data. This function will run the following query in the database:

UPDATE $thing CONTENT $data;

See Also