Replies: 2 comments 5 replies
-
Hey @tp971, you can unwrap the SQLx connection pool from SeaORM and perform the acquire on your own. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Any movement on this since it was discussed? Using something like Postgres RLS policies would be much easier if we can acquire and release the connection from the pool independently of SeaORM. Another approach would be some way to execute a callback when a pool connection is acquired and another when it is returned to the pool. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Allow explicitly acquiring connections from a connection pool to ensure that a sequence of SQL queries are executed on the same connection. Right now, this only seems to be possible using
sea_orm::TransactionTrait
by starting a transaction, but doing so without starting a transaction would be nice.Beta Was this translation helpful? Give feedback.
All reactions