Skip to content

refactor(database) :: share connection setup between pools - #1594

Merged
lovasoa merged 2 commits into
mainfrom
81reap/sqlx-next/2-connection-setup
Nov 12, 2026
Merged

lovasoa merged 2 commits into
mainfrom
81reap/sqlx-next/2-connection-setup

Conversation

@81reap

@81reap 81reap commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

The two hook files were read by two copies of the same code. One function now reads both. Behaviour and log messages are unchanged.

Refs #1056


Stack created with GitHub Stacks CLI • Give Feedback 💬

@81reap
81reap added this pull request to stack #1599 November 12, 2026 06:22
Base automatically changed from 81reap/sqlx-next/1-rollback-test to main November 12, 2026 09:48
The two hook files were read by two copies of the same code. One function now reads both. Behaviour and log messages are unchanged.

Refs #1056
@lovasoa
lovasoa force-pushed the 81reap/sqlx-next/2-connection-setup branch from 4dca550 to 9606f49 Compare November 12, 2026 09:48
Comment thread src/webserver/database/connect.rs Outdated

struct ConnectionHooks {
on_connect: Option<Arc<String>>,
on_reset: Option<Arc<String>>,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

just a nit, but Arc String is a double inspection, shouldn't this be an Arc str ?

@lovasoa
lovasoa enabled stacked auto-merge November 12, 2026 21:45
@lovasoa
lovasoa added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 8c58104 Nov 12, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants