In the call graph viewer below, each node is a function belonging to this package and its children are the functions it calls—perhaps dynamically.
The root nodes are the entry points of the package: functions that may be called from outside the package. There may be non-exported or anonymous functions among them if they are called dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring
Functions may be omitted if they were determined to be unreachable in the particular programs or tests that were analyzed.
const MaxBindVars = 65535
Insert represents a bulk insert statement. It is initialized using a *sql.DB, a SQL string, and an array of cast types for the columns in the insert statement. Any of the Casts may be an empty string (""), but the length of Casts must be equal to the number of columns being inserted. The substring "<values>" in SQL will be replaces with an expression for the values being inserted.
Exec runs the Insert statement in as many batches as required to allow Insert.DB to fill placeholder vars. The number of batches which will be run is equal to len(casts) * len(rows) / MaxBindVars + 1. It returns sql.Result and the first error, if any, which occurs will short-circuit the operation.