Skip to content

Conversation

@dave42w
Copy link
Contributor

@dave42w dave42w commented Dec 12, 2025

Description

Connection has grown to the point where a separate module to make future refactoring easier makers sense.
Replaced manually getting the inner connection with all the locking/error handling with a utility method. This will be handy for the ConnectionPool work

Motivation and context

Foundation work for the ConnectionPool and removing an unwrap

AI Disclosure

None

Makes further refactoring easier given the code length
Instead of manually getting the inner connection everytime with locking
and error handling add a new function and call it.
Also replaces the one instance of an unwrap with an expect as per
project preferences
@dave42w dave42w requested a review from penberg as a code owner December 12, 2025 07:57
Copy link

@turso-bot turso-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review @pedrocarlo

This is needed for the Connection pool so that when a Connection is
dropped we can take the inner connection and put it back into
ConnectionPool
I wanted to be sure I hadn't broken clone
Removed commented-out code for clarity.
Use .to_string instead of format!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants