{"repo":"apache/casbin-node-casbin-prisma-adapter","free":true,"listed":false,"github":"https://github.com/apache/casbin-node-casbin-prisma-adapter","clone":"git clone https://github.com/apache/casbin-node-casbin-prisma-adapter.git","description":"Prisma adapter for Casbin","language":"TypeScript","stars":47,"topics":["casbin","node","node-casbin","nodejs","prisma","abac","acl","adapter","auth","authorization"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"Prisma Adapter [![NPM version][npm-image]][npm-url] [![NPM download][download-image]][download-url] [npm-image]: https://img.shields.io/npm/v/casbin-prisma-adapter.svg?style=flat-square [npm-url]: https://npmjs.com/package/casbin-prisma-adapter [download-image]: https://img.shields.io/npm/dm/casbin-prisma-adapter.svg?style=flat-square [download-url]: https://npmjs.com/package/casbin-prisma-adapter Prisma Adapter is the Prisma adapter for Node-Casbin. With this library, Node-Casbin can load policy from Prisma supported database or save policy to it. Based on Officially Supported Databases, the current supported databases are: - PostgreSQL - MySQL - SQLite - MongoDB You may find other 3rd-party supported DBs in Prisma website or other places. Installation Getting Started Append the following content to your schema.prisma : Create table(MySQL): Here is a simple example: Using Custom Prisma Client Output Path (Prisma v7+) If you're using a custom output path for your Prisma client (e.g., generating the client to ./src/generated/client ), you must pass your PrismaClient instance to the adapter: Important : When using custom output paths, you must always pass a PrismaClient instance to the adapter. The adapter will attempt to dynamically import from @prisma/client only when no instance is provided and the adapter is initialized. Getting Help - Node-Casbin License This project is under Apache 2.0 License. See the LICENSE file for the full license text.","default_branch":null,"files":null,"tree":[],"storefront":"/r/apache","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apache/casbin-node-casbin-prisma-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."}