4 ms·
Interesting. I had been using postguard in Node.js which also statically checks queries. But I wonder, how does this linter handle conditionally concatenated SQ
by mixedCase 7y ago
Interesting. I had been using postguard in Node.js which also statically checks queries. But I wonder, how does this linter handle conditionally concatenated SQL strings in Go?
- houqp 7y agoGood question. This is actually pretty straight forward to implement and it's on my todo list :) We just need to iterate through all phi SSA nodes recursively, see: https://github.com/houqp/sqlvet/blob/master/pkg/vet/gosource.go#L248 https://github.com/houqp/sqlvet/blob/master/pkg/vet/gosource....