Perform Bulk INSERT, UPDATE, and DELETE Statements
The Go driver supports bulk INSERT, UPDATE, and DELETE statements that have been prepared from a sql.Db* or sql.Tx* object.
Context
Bulk INSERT, UPDATE, and DELETE statements with LOB streaming are not supported.
golang internal processing depends on the dbcapiHDB C library for its implementation, so it tries to batch as many arrays together as possible, up to the array size, based on the types of equal values in consecutive array cases. If types differ in any of the arrays relevant to the first array considered for the batch, the current batch of similar values is sent off first. The execution then continues batching any remaining arrays until all row arrays are inserted. As a result, it is recommended to use the same types for the array values. Note that NULL always matches the previous type considered.
To execute an insert, update, or delete with a batch of parameters, complete the following steps: