API ReferenceAdapters
Overview
Storage and cache adapters for djs-commands — bring your own DB.
Each storage adapter maps djs-commands framework models onto your schema. You own migrations, indexes, names, and connections.
For end-to-end setup walk-throughs (migrations, schema configuration, environment variables), see the Adapter Cookbook.
@djs-commands/adapter-drizzle
Postgres via Drizzle. drizzleStorage(db, options).
@djs-commands/adapter-prisma
Prisma delegates. prismaStorage(options).
@djs-commands/adapter-mongoose
MongoDB via Mongoose models. mongooseStorage(options).
@djs-commands/adapter-redis
TTL-native CacheAdapter for distributed cooldowns. redisCacheAdapter(redis, options?).
Last updated on
