{"repo":"apache/casbin-node-casbin-basic-adapter","free":true,"listed":false,"github":"https://github.com/apache/casbin-node-casbin-basic-adapter","clone":"git clone https://github.com/apache/casbin-node-casbin-basic-adapter.git","description":"Basic adapter for Node-Casbin supporting pg, sqlite3, mysql, mysql2, oracledb and mssql","language":"TypeScript","stars":13,"topics":["adapter","casbin","mssql","mysql","node-casbin","oracledb","orm","pg","sqlite","storage"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Basic Adapter [![NPM version][npm-image]][npm-url] [![NPM download][download-image]][download-url] [npm-image]: https://img.shields.io/npm/v/casbin-basic-adapter.svg [npm-url]: https://npmjs.org/package/casbin-basic-adapter [download-image]: https://img.shields.io/npm/dm/casbin-basic-adapter.svg [download-url]: https://npmjs.org/package/casbin-basic-adapter Basic Adapter is a basic driver adapter for Node-Casbin which supports pg , sqlite3 , mysql , mysql2 , and mssql . With this library, Node-Casbin can load policy from or save policy to supported persistence systems. Drives We currently support the following SQL systems: - [x] pg - [x] mysql - [x] mysql2 - [x] sqlite3 - [ ] oracledb - [x] mssql Installation Simple Example Custom Table Name Example By default, each adapter creates its own table in the database. While this might seem convenient, it poses a significant drawback when multiple adapters need to share the same database: policies cannot be shared across adapters if they are stored in separate tables. Why Customization is Important Compliance with Naming Conventions: Many production databases follow strict naming conventions. By customizing the table name, you can ensure that your adapter’s tables comply with these conventions, which is essential for production environments. Shared Policies: When the same set of policies should be accessible by different adapters or services, having them in separate tables prevents a unified view. Customizing the table name allows y","default_branch":null,"files":null,"tree":[],"storefront":"/r/apache","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apache/casbin-node-casbin-basic-adapter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}