Skip to content

Implement Transactions API #39

@oskardudycz

Description

@oskardudycz

In recent releases, we made it possible to inject the Postgres client (both pooled and non-pooled) as a preparation for supporting transaction handling. So, it's possible to handle the transactions independently, but Pongo hasn't handled MongoDB transactions API yet. We need to do it, as this is one of the biggest selling points for using relational db instead of Mongo. Plus it can make easier handling in Emmett.

We already have an executeInTransaction wrapper, but I think that it'd be necessary to include a transaction wrapper in a similar way as drizzle does it. That should make it easier to introduce other storage or switch Postgres client library (we might need to also support Postgres Js).

For Mongo Shim, we may try to do the mapping of the write concerns into the transaction isolation level.

References for MongoDB API:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions