@mimicai/adapter-postgres
v0.7.0
Published
PostgreSQL database adapter for Mimic — batch INSERT, COPY protocol, upsert support
Downloads
574
Maintainers
Readme
@mimicai/adapter-postgres
PostgreSQL database adapter for Mimic — seeds tables with persona-consistent data using FK-aware ordering, batch INSERT, and COPY.
Install
npm install @mimicai/adapter-postgresFeatures
- FK-aware table ordering for referential integrity
- Batch INSERT for small datasets (<500 rows)
- COPY FROM STDIN for high-volume seeding (>=500 rows)
- Automatic sequence synchronization after seeding
- Atomic transactions — all-or-nothing seeding
Usage
Used automatically by mimic seed when configured in mimic.json:
{
"databases": [
{
"adapter": "postgres",
"connectionString": "postgresql://localhost:5432/testdb"
}
]
}