Adapters
Seed supports multiple databases and ORMs through adapters.
ORMs
Prisma
Note Currently supported providers:
postgres
,mysql
,sqlite
@snaplet/seed
supports Prisma (opens in a new tab) using the @snaplet/seed/adapter-prisma
:
PostgreSQL
Postgres.js
@snaplet/seed
supports Postgres.js (opens in a new tab) using the @snaplet/seed/adapter-postgres
adapter:
node-postgres
@snaplet/seed
supports node-postgres (opens in a new tab) using the @snaplet/seed/adapter-pg
adapter:
SQLite
better-sqlite3
@snaplet/seed
supports better-sqlite3 (opens in a new tab) using the @snaplet/seed/adapter-better-sqlite3
adapter:
MySQL
Note MySQL support is currently in alpha. We are working on improving the experience and welcome feedbacks on our Discord (opens in a new tab).
mysql2
@snaplet/seed
supports mysql2 (opens in a new tab) using the @snaplet/seed/adapter-mysql2
adapter: