Tags: ido50/sqlz
Tags
Support GetCount on union queries This commit fixes GetCount on union statements, and update columns/limits/offsets on all the union statements instead of applying it on the first statement only. There was a runtime error on a union query, because the columns of the union statements remained as they were, while the columns of the first statement changed.
Modulize, fix linter issues, generated SQL determinism This commit turns the project into a proper Go module, and sets version as 1.0.0. Alos, various static code analysis tools are integrated via golangci-lint, and all issues found are fixed (some minor infractions are ignored). A longstanding bug with the determinism and reproducibility of generated SQL is also fixed. Since some statements accept maps from fields to values, the order of these fields in generated SQL was not fixed, causing tests to randomly fail. These maps will now always be processed in alphabetic order of their keys.