[−][src]Trait wundergraph::query_builder::mutations::HandleBatchInsert
A trait to handle batch insert mutations for database entities
Type parameters:
Self
: database table type for dieselI
: data to insert into the tableDB
: Backend type from diesel, so one ofPg
orSqlite
Ctx
: The used wundergraph context type
A default implementation is provided for all types implementing
diesel::Insertable
Required methods
fn handle_batch_insert(
selection: Option<&[Selection<WundergraphScalarValue>]>,
executor: &Executor<Ctx, WundergraphScalarValue>,
insertable: Vec<I>
) -> ExecutionResult<WundergraphScalarValue>
selection: Option<&[Selection<WundergraphScalarValue>]>,
executor: &Executor<Ctx, WundergraphScalarValue>,
insertable: Vec<I>
) -> ExecutionResult<WundergraphScalarValue>
Actual function called to insert a batch of database entity