Casbin Basic Adapter

JSON →
library 1.3.0 ·javascript
verified Jun 5, 2026

A database adapter for Node-Casbin supporting PostgreSQL, MySQL, SQLite3, and MSSQL (Oracle listed but experimental). Current version 1.3.0, released sporadically. Key differentiator: provides a unified interface for Casbin policy persistence across multiple SQL databases, with automatic table creation and optional custom table naming. Unlike other Casbin adapters (e.g., sequelize, mongoose), this operates on raw SQL and requires database-specific client libraries as peer dependencies. Ships TypeScript types.