insert
inline suspend fun <T : Any> insert(values: List<T>, request: InsertRequestBuilder.() -> Unit = {}): PostgrestResult(source)
Executes an insert operation on the table
Parameters
values
The values to insert, 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
inline suspend fun <T : Any> insert(value: T, request: InsertRequestBuilder.() -> Unit = {}): PostgrestResult(source)
Executes an insert operation on the table
Parameters
value
The value to insert, 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