Database Drivers
BolkAuth provides zero-boilerplate driver helper packages (@bolkauth/driver-pg, @bolkauth/driver-mysql2, and @bolkauth/driver-mongodb) that handle connection pool management, production performance tuning, and schema adapter instantiation in a single call.
Available Drivers
| Package | Database | Underlying Driver | Production Default |
|---|---|---|---|
@bolkauth/driver-pg | PostgreSQL | pg + Drizzle ORM | Pool max: 20, idleTimeout: 30s |
@bolkauth/driver-mysql2 | MySQL / MariaDB | mysql2 + Drizzle ORM | Pool connectionLimit: 10, enableKeepAlive: true |
@bolkauth/driver-mongodb | MongoDB | mongodb Native Driver | Auto autoEnsureIndexes: false in production |