Skip to content

test(sql): add fakedriver#1283

Open
giortzisg wants to merge 2 commits into
feat/sqlfrom
test/add-sql-fakedriver
Open

test(sql): add fakedriver#1283
giortzisg wants to merge 2 commits into
feat/sqlfrom
test/add-sql-fakedriver

Conversation

@giortzisg
Copy link
Copy Markdown
Contributor

@giortzisg giortzisg commented Apr 27, 2026

Description

This PR adds a mock fakedriver for the sql integration. The driver exposes minimal, legacy and full driver implementations for testing various code paths of the integration.

#skip-changelog

Issues

Changelog Entry Instructions

To add a custom changelog entry, uncomment the section above. Supports:

  • Single entry: just write text
  • Multiple entries: use bullet points
  • Nested bullets: indent 4+ spaces

For more details: custom changelog entries

Reminders

@giortzisg giortzisg self-assigned this Apr 27, 2026
@giortzisg giortzisg force-pushed the test/add-sql-fakedriver branch from 206ff13 to 2367f4f Compare May 19, 2026 09:58
@giortzisg giortzisg force-pushed the test/add-sql-fakedriver branch from 2367f4f to 1e6d1b6 Compare May 19, 2026 12:14
Comment thread sql/internal/fakedriver/driver.go Outdated
// the internal ctxConnector returned by CtxDriver.OpenConnector, this one
// implements io.Closer with an observable close counter so tests can verify
// that the sentrysql wrapper propagates DB.Close through to inner connectors.
type CtxConnector struct {
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.

the naming of ctxConnector vs CtxConnector is very opaque, maybe call it CtxConnectorWithCount or CtxConnectorWithClose

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 21, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR will not appear in the changelog.


🤖 This preview updates automatically when you update the PR.

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