Skip to content
Search
DSL · Pg query

bulk_insert

Definition

/**
 * Create an optimized bulk INSERT query for high-performance multi-row inserts.
 *
 * Unlike insert() which uses immutable builder patterns (O(n²) for n rows),
 * this function generates SQL directly using string operations (O(n) complexity).
 *
 * @param string $table Table name
 * @param list<string> $columns Column names
 * @param int $rowCount Number of rows to insert
 */
bulk_insert(string $table, array $columns, int $rowCount) : BulkInsert

Contributors

Built in the open.

Join us on GitHub
scroll back to top