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
@kallsyms we can talk about some ways to shore this up when we sync next
@contextlib.contextmanager def get_connection(self): conn = self.connection_pool.getconn() try: yield conn finally: self.connection_pool.putconn(conn) @contextlib.contextmanager def get_cursor(self): with self.get_connection() as conn: cursor = conn.cursor(cursor_factory=RealDictCursor) try: yield cursor finally: conn.commit() cursor.close()
The text was updated successfully, but these errors were encountered:
My only thing is how these changes would interact with say SQLAlchemy if someone wants to use our stuff there
Sorry, something went wrong.
No branches or pull requests
@kallsyms we can talk about some ways to shore this up when we sync next
The text was updated successfully, but these errors were encountered: