update
inline suspend fun update(crossinline update: PostgrestUpdate.() -> Unit = {}, request: PostgrestRequestBuilder.() -> Unit = {}): PostgrestResult(source)
Executes an update operation on the table.
By default, updated rows are not returned. To return it, call [PostgrestRequestBuilder.select]
.
Parameters
update
Specifies the fields to update via a DSL
request
Additional filtering to apply to the query
Throws
or one of its subclasses if receiving an error response
HttpRequestTimeoutException
if the request timed out
on network related issues
inline suspend fun <T : Any> update(value: T, request: PostgrestRequestBuilder.() -> Unit = {}): PostgrestResult(source)
Executes an update operation on the table.
By default, updated rows are not returned. To return it, call [PostgrestRequestBuilder.select]
.
Parameters
value
The value to update, will automatically get serialized into json.
request
Additional filtering to apply to the query
Throws
or one of its subclasses if receiving an error response
HttpRequestTimeoutException
if the request timed out
on network related issues