exported top-level DBTXWithBegin type references internal dbsqlc package
bgentry opened this issue · 1 comments
bgentry commented
The DBTXWithBegin
type is needed to use the embeddable http.Handler
setup, but it embeds a type from an internal package which seems like a weird API design choice. Go doc actually does handle it well surprisingly, but I wonder if we may want to tweak this to fully specify the interface inline?
cc @brandur
brandur commented
Yeah should be fine to specify it inline. Sqlc's interface has been quite stable over time, and the compiler will tell us the second anything breaks, should it break.