Skip to content

feat(sqlwrapper): add logger to Driver, DBFactory#106

Merged
lidavidm merged 4 commits intoadbc-drivers:mainfrom
Mandukhai-Alimaa:feat/dbfactory-with-logger
Dec 15, 2025
Merged

feat(sqlwrapper): add logger to Driver, DBFactory#106
lidavidm merged 4 commits intoadbc-drivers:mainfrom
Mandukhai-Alimaa:feat/dbfactory-with-logger

Conversation

@Mandukhai-Alimaa
Copy link
Copy Markdown
Collaborator

What's Changed

Add DBFactoryWithLogger interface so that DbFactory implmentations can get access to the logger already present on the database object.

Copy link
Copy Markdown
Contributor

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

I vote just adding the logger to the existing interface. In fact, why not just make it a parameter of CreateDB?

Or, we can just have the Database struct implement DBFactory in the drivers, and then it should automatically have access to the logger.

@lidavidm
Copy link
Copy Markdown
Contributor

That said...it seems this interface comes "too late" and maybe we need to make it set the logger on the driver instead.

https://github.com/apache/arrow-adbc/blob/6073da3d7d6e36f7f8714ecd4f694993eb0a1961/go/adbc/ext.go#L33-L39

@lidavidm lidavidm changed the title feat(sqlwrapper): add optional DBFactoryWithLogger interface feat(sqlwrapper): add logger to Driver, DBFactory Dec 15, 2025
@lidavidm lidavidm merged commit 0ae64d9 into adbc-drivers:main Dec 15, 2025
5 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