go-sqlbuilder
go-sqlbuilder copied to clipboard
A flexible and powerful SQL string builder library plus a zero-config ORM.
### Summary Add insert ignore support for postgres and sqlite. For pg, this is `ON CONFLICT DO NOTHING`, for sqlite it's `INSERT OR IGNORE` - https://www.postgresql.org/docs/current/sql-insert.html - https://www.sqlite.org/lang_insert.html ### Testing...
* Add CQL flavor. * Add support for CQL argument compilation. * Adopt substests for interpolation tests. * Add support for CQL interpolation. * Add support for CQL blobs: https://docs.datastax.com/en/cql-oss/3.x/cql/cql_reference/blob_r.html...
I am attempting build a query of the form ```sql SELECT EXISTS (SELECT 1 FROM table WHERE ... ) ``` Without resorting to writing raw sql using `sb.SQL()`, is there...
The format is not '?' It is defined in https://clickhouse.com/docs/en/interfaces/http#cli-queries-with-parameters
Can we have benchmarks against other builder like [squirrel](https://github.com/Masterminds/squirrel)
Support using the `WITH RECURSIVE ...` keywords for recursive CTEs.
This change adds support for recursive CTEs by introducing the `Recursive()` method to `CTETableBuilder`. This method is automatically called by the existing `CTETable(name, cols)` function, but can also be called...