Skip to content

Tags: ido50/sqlz

Tags

v1.3.0

Add ability to select using indirect values.

ADD: add the option to pass indirect values to select statement columns

v1.2.1

With statement ToSQL rebind is missing

The rebind param is not applied inside the ToSQL func, hence the
ToSQL is binded with DOLLAR for postgres.

v1.2.0

Add ILIKE ANY

This commit adds the ability to use ILIKE ANY to find case-insensitive
values.

Example: q.Where(
	sqlz.LikeAny(mySlice,sqlz.Indirect("myColumn")),
)

v1.1.0

Update Lint stage in workflow, fix lint issues

The Lint stage has been failing consistently due to a deprecated
version of golangci-lint-action.

v1.0.2

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.

v1.0.1

Remove copyright notice from license file

This allows Github to properly recognize the repository's license.

v1.0.0

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.