Skip to content

Releases: casbin/gorm-adapter

v3.0.1

24 Jul 04:10
81c2dc6
Compare
Choose a tag to compare
Utilize correct db error when the duplicate database is created (#39)

As per http://v2.gorm.io/docs/conventions.html#TableName TableName() suppose to generate static names only (it could not be dynamic). The same source suggests a workaround that I implemented as DynamicCasbinRuleTable along with a scoped DB object for NewAdapterByDBUsePrefix.

As a result of 2. we can remove tablePrefix from global state

Signed-off-by: l1ghtman2k <aibek.zhil@gmail.com>

v3.0.0

22 Jul 16:01
ac27d59
Compare
Choose a tag to compare
  • Update gorm to v2.

Gorm Adapter 2.1.0

28 Apr 08:45
9ebbe7e
Compare
Choose a tag to compare
Merge pull request #33 from lucidhq/add-remove-policies

Add support for Casbin AddPolicies and RemovePolicies

Gorm Adapter 2.0.3

28 Sep 05:11
831cce2
Compare
Choose a tag to compare
  • Fix table prefix bug for multiple adapters.

Gorm Adapter 2.0.2

27 Sep 02:51
Compare
Choose a tag to compare
  • Fix LoadPolicy() with table prefix.

Gorm Adapter 2.0.1

14 Sep 06:15
4bda006
Compare
Choose a tag to compare
  • Add NewAdapterByDBUsePrefix()

Gorm Adapter 2.0.0

15 Jul 16:21
f359d63
Compare
Choose a tag to compare
  • Support Casbin 2.x

Gorm Adapter 1.0.0

15 Jul 16:21
Compare
Choose a tag to compare
v1.0.0

Remove policy "p, alice, data, 1, 2, 3, read".