Replies: 1 comment
-
If I understand you correctly you want something like this?
and then call it like this:
|
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.
-
When reading from within a transaction, such as for tests, I need to pass in the transaction, not a pool that has no idea about the in-progress writes. This makes my read APIs need to be compatible with any Executor, not just pools. My write functions always accept a transaction, and there is no conflict.
Whenever I tried to write functions that would accept Executor types, I was unable to convince the type system to do this. Does anyone have a working example?
An example of using a transaction for a read request so that I can pass it open transactions and read from any checkpoints within.
I didn't try calling
acquire
on the transaction yet, but doesn't that just obtain a unique connection that would not see the transaction's checkpoints? In the end, I'm still curious how others handle the general issue.Beta Was this translation helpful? Give feedback.
All reactions