Skip to main content
See the Postgres via Drizzle guide for usage examples and setup instructions.

drizzleTarget

StateOptions:

batchForInsert

Splits an array into chunks that fit within PostgreSQL’s 32,767-parameter limit. Chunk size is Math.floor(32767 / columnsPerRecord) by default. Pass size to set a smaller cap; values exceeding the computed maximum are silently clamped. chunk is a deprecated alias for batchForInsert.