Awesome Open Source
Awesome Open Source


Go Report Card Go Coverage Status

Ent Adapter is the ent adapter for Casbin. With this library, Casbin can load policy from PostgresSQL/Mysql or save policy to it.


go get


    a, err := NewAdapter("mysql", "root:@tcp(")
    //a, err := NewAdapter("postgres", "user=postgres password=postgres host= port=5432 dbname=casbin")
    if err != nil {
    e, err := casbin.NewEnforcer("/path/to/model",a)


The database used in adapter(like casbin) should be created manually before NewAdapter calling.

Getting Help


This project is under Apache 2.0 License. See the LICENSE file for the full license text.

Alternatives To Ent Adapter
Select To Compare

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Go (171,982
Auth (27,096
Adapter (11,120
Orm (6,013
Authorization (5,948
Acl (2,452
Rbac (1,406
Access Control (1,141
Casbin (300
Abac (199
Storage Driver (100
Authz (91
Ent (24