Documentation
¶
Overview ¶
Package sqlbulk implements the shared mechanics for native SQL bulk inserts.
Index ¶
Constants ¶
View Source
const PlaceholderLimit = 999
PlaceholderLimit is a conservative cap that is safe for MySQL, Postgres, and both legacy and current SQLite builds. Row chunks are derived from this parameter count rather than from a fixed number of rows.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create( ctx context.Context, adapter storage.IStorage, client Execer, dialect, requestedTarget, staticTarget string, items []storage.BulkItem, prm *create.Create, options ...storage.Func[*create.Create], ) (storage.BulkResult, error)
Create inserts items with native multi-row statements. A failed statement is bisected until its database error can be assigned to exact input items.
Types ¶
Click to show internal directories.
Click to hide internal directories.