Skip to content

Add PostgresConnection based SQLDatabase - #284

Open
ptoffy wants to merge 2 commits into
mainfrom
postgresconnection-sqldatabase
Open

ptoffy wants to merge 2 commits into
mainfrom
postgresconnection-sqldatabase

Conversation

@ptoffy

@ptoffy ptoffy commented Sep 22, 2026

Copy link
Copy Markdown
Member

If we have a PostgresConnection (which we'll do after vapor/fluent-postgres-driver#227) we can use that as SQLDatabase without having to go through PostgresDatabase

@ptoffy
ptoffy requested a review from gwynne as a code owner September 22, 2026 11:15
@codecov

codecov Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.12195% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.35%. Comparing base (11d6910) to head (b6ff209).

Files with missing lines Patch % Lines
...urces/PostgresKit/PostgresConnectionDatabase.swift 95.12% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #284      +/-   ##
==========================================
+ Coverage   45.90%   46.35%   +0.44%     
==========================================
  Files          13       14       +1     
  Lines         891      932      +41     
==========================================
+ Hits          409      432      +23     
- Misses        482      500      +18     
Files with missing lines Coverage Δ
...urces/PostgresKit/PostgresConnectionDatabase.swift 95.12% <95.12%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

}


private struct LogRecorder: LogHandler {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lets pull in the one from Swift Log for testing

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