We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This can be implemented using a WeakMap, mapping connections to nesting counts.
WeakMap
The text was updated successfully, but these errors were encountered:
After #29 has been merged, this can be achieved by chaning the library monad to e.g.
newtype PG a = StateT (Maybe Int) (ExceptT PGError Aff) a
with the following rules for the state:
Nothing
Just 0
BEGIN
ROLLBACK
COMMIT)
Just n
SAVEPOINT savepoint-n
ROLLBACK TO SAVEPOINT savepoint-n
RELEASE SAVEPOINT savepoint-n
This change would also require us to add a function
runPG :: forall a. PG a -> Aff (Either PGError a)
as runExceptT alone wouldn't be enough anymore.
runExceptT
Sorry, something went wrong.
No branches or pull requests
This can be implemented using a
WeakMap
, mapping connections to nesting counts.The text was updated successfully, but these errors were encountered: