Skip to content

Conversation

crdueck
Copy link

@crdueck crdueck commented Aug 28, 2025

The NamedQuery funcs take Ext interface arguments which creates an unnecessary dependency on unused Execer methods.

The newly added NamedQueryer interfaces narrow down the method set to only what is needed. This change should be backwards compatible since any type that would satisfy Ext also satisfies the subset NamedQueryer.

My motivating use case is a "read only" connection (to a read replica of a DB cluster), which implements Queryer but not Execer, should be usable with the NamedQuery funcs.

The NamedQuery funcs take Ext interface arguments which creates an
unnecessary dependency on unused Execer methods.

The newly added NamedQueryer interfaces narrow down the method set to
only what is needed. This change should be backwards compatible since
any type that would satisfy Ext also satisfies NamedQueryer.
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