Skip to content

Using DB connection#17

Merged
mishankov merged 6 commits into
mainfrom
db-conn
Nov 2, 2025
Merged

Using DB connection#17
mishankov merged 6 commits into
mainfrom
db-conn

Conversation

@mishankov
Copy link
Copy Markdown
Member

No description provided.

The Database struct now uses a private 'conn' field instead of embedding
*sqlx.DB directly. A Connection() method is provided for accessing the
database connection. All test code has been updated to use this method
instead of direct field access.

This improves encapsulation and provides better control over database
access patterns.
Using cmds instead of deps ensures lint and test output is not
interleaved when running the check task
The new task runs the documentation development server from the docs
directory using `npm run dev`.
@mishankov mishankov merged commit 2c28584 into main Nov 2, 2025
5 checks passed
@mishankov mishankov deleted the db-conn branch November 2, 2025 11:15
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.

1 participant