How to construct a query with a bulk insert?
let (query, values) = Query::insert()
.into_table(DbAppointmentService::Table)
.columns([
DbAppointmentService::Id,
DbAppointmentService::AppointmentId,
DbAppointmentService::Name,
DbAppointmentService::Price,
DbAppointmentService::Duration,
])
.unexisting_bulk_insert_method(values) // What is the method to use to make a bulk insert?
.build(PostgresQueryBuilder);
To make bulk insert in
sea_query
you can "split" builder declaration into multiple statements.