pub async fn insert_returning(
executor: impl Executor<'_>,
model: &str,
columns: &[&str],
values: &[Value<'_>],
returning: &[&str],
) -> Result<Row, Error>Expand description
Inserts a single row and returns columns from it.
Parameter:
model: Table to insert tocolumns: Columns to setvaluesfor.values: Values to bind to the corresponding columns.returning: Columns to query from the inserted row.