Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
experiment in quit callback and decoupling transactions from postgres #2
this is only an experiment to get feedback. Yeah, I should have decoupled these two issues, but I didn't.
take a look at the changes to how I use the transaction class in your PostgresCrashStorage class. Rather than the transaction instantiating its own database connection context, the connection context is instantiated separately. I prefer this decoupling because it gives the designer more freedom in placing the database connections into any namespace rather than forcing it to be within the transaction namespace.
take a look around and let's discuss it.