google / sqlcommenter

Apache License 2.0
604 stars 81 forks source link

bug: Go library does not comment `controller` #279

Closed duffn closed 4 months ago

duffn commented 4 months ago

EnableController is available on the CommenterConfig struct (https://github.com/google/sqlcommenter/blob/c447d218a1b8ff628571b22cf4e74f2a6fe2e38a/go/core/core.go#L48), however, the code that outputs the SQL comment does not output a comment for the controller context key (https://github.com/google/sqlcommenter/blob/c447d218a1b8ff628571b22cf4e74f2a6fe2e38a/go/database/sql/connection.go#L94-L149).

I will plan to open a PR for this.