casbin-rs / sqlx-adapter

Asynchronous casbin adapter for mysql, postgres, sqlite based on sqlx-rs

Home Page:https://github.com/casbin/casbin-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use with existing connection pool

mkpankov opened this issue · comments

We're using sqlx with Postgres using PgPool.

It would be good if we could pass the pool to the SqlxAdapter instead of it initiating a new connection by itself.

We're using sqlx with Postgres using PgPool.

It would be good if we could pass the pool to the SqlxAdapter instead of it initiating a new connection by itself.

@mkpankov Good idea. We are adding this into next our todo list

commented

I’m trying to do this.