{"repo":"apache/casbin-typeorm-adapter","free":true,"listed":false,"github":"https://github.com/apache/casbin-typeorm-adapter","clone":"git clone https://github.com/apache/casbin-typeorm-adapter.git","description":"TypeORM adapter for Casbin","language":"TypeScript","stars":72,"topics":["node-casbin","casbin","adapter","typeorm","orm","access-control","authorization","javascript","js","ts"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"TypeORM Adapter ==== [![NPM version][npm-image]][npm-url] [![NPM download][download-image]][download-url] [npm-image]: https://img.shields.io/npm/v/typeorm-adapter.svg?style=flat-square [npm-url]: https://npmjs.com/package/typeorm-adapter [download-image]: https://img.shields.io/npm/dm/typeorm-adapter.svg?style=flat-square [download-url]: https://npmjs.com/package/typeorm-adapter TypeORM Adapter is the TypeORM adapter for Node-Casbin. With this library, Node-Casbin can load policy from TypeORM supported database or save policy to it. Based on Officially Supported Databases, the current supported databases are: - MySQL - PostgreSQL - MariaDB - SQLite - MS SQL Server - Oracle - WebSQL - MongoDB You may find other 3rd-party supported DBs in TypeORM website or other places. Installation npm install typeorm-adapter You also need to install the driver for the database you use, e.g. mysql2 , pg , better-sqlite3 or mongodb . mongodb is declared as an optional peer dependency, so it is not installed unless you ask for it. Importing typeorm-adapter never loads it at runtime. However, the shipped type declarations for CasbinMongoRule still reference the ObjectId type from mongodb . If you do not use MongoDB and compile with skipLibCheck: false , TypeScript reports TS2307: Cannot find module 'mongodb' — set skipLibCheck: true in your tsconfig.json (the setting recommended by the TypeScript team and enabled by default in most scaffolding tools), or install mongodb as a dev dependency. Sim","default_branch":null,"files":null,"tree":[],"storefront":"/r/apache","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apache/casbin-typeorm-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."}