Closed bpatters closed 4 years ago
@fangzhengjin @nodece @gopherJ
@hsluoyz I will take up it.
Hi @bpatters , I submitted a PR, Could you review the #15 ?
v1.1.4 has been released on Maven and GitHub: https://github.com/jcasbin/jdbc-adapter
@nodece v2.0.0 has been released. You can edit the release text: https://github.com/jcasbin/jdbc-adapter/releases/tag/v2.0.0
Failure in the savePolicy function can lead to a complete loss of all data because savePolicy doesn't use transactions AND:
If 1 succeed and a failure occurs anytime after it can lead to a partial or complete data loss.
It'd be much safer if it:
I actually don't see any usage of transactions in this Adapter, which is worrisome, but maybe I'm missing something?