Allow sqlc.arg('argname') form for named params - #351
Conversation
|
Thanks for the PR. Can you explain your use of go run? I don’t understand why the Placeholder is needed. |
My trick is to import codegen utilities like sqlc as modules. For this to work I need to make sure they are not optimized away by However right now sqlc can't be imported, because Golang compiler detects that there are no Go files in the package ("github.com/kyleconroy/sqlc: module github.com/kyleconroy/sqlc@latest found (v1.0.0), but does not contain package github.com/kyleconroy/sqlc") A simple placeholder file tricks Go into accepting the "package". |
This pacifies static SQL analizers in IDEs.
This pacifies static SQL analyzers in IDEs (like GoLand).