Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am learning to explore the implementation of sea orm distributed transactions. First, I will implement an AT pattern similar to Seata. If I can create something useful, I will open source it.
Now we have encountered a problem:
I hope to act as a proxy for Database Connection to intercept SQL (including SQL in transactions) and perform some additional operations,
1.DatabaseConnectionProxy(DatabaseConnection);
2.impl ConnectionTrait for DatabaseConnectionProxy
3.impl TransactionTrait for DatabaseConnectionProxy
But the following calling method:
What should I do if I don't know how to execute the methods related to impl ConnectTrait for DataconnectionProxy? use the ProxyDatabaseTrait?
Use as follows:
Problem: The transaction has been executed, but it has not entered the Database Connection Proxy. execute
ProxyDatabaseTrait:
Use the following:
Beta Was this translation helpful? Give feedback.
All reactions