v3.0.1
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>