PostgreSQL seeding utilities for CSV, JSON, and SQL data loading. Version 0.15.0, stable, actively maintained. Uses COPY streaming for high-performance inserts. Supports multiple data formats and schema initialization. Differentiated by streaming approach vs row-by-row inserts.
npm install pg-seedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of seed function with schema and CSV data
Use import statements or dynamic import() in CommonJS projects
Use seed() with data array
Pass a Pool instance to seed()
Provide columns array matching CSV columns order
Ensure you pass a pg.Pool instance as the client option
Switch to import syntax or update to older version
Check that CSV columns match table column names and include the correct order