Skip to content

Initializer

init(_:on:)

Create a new SQLUpdateBuilder.
init(_ update: SQLUpdate, on database: any SQLDatabase)

Parameters

update

A query to use as the builder’s initial state. It must at minimum specify a table to update.

database

A database to associate with the builder.

Discussion

Use this API directly only if you need to have control over the builder’s initial update query. Prefer using update(_:) or update(_:) whnever possible.