goqu icon indicating copy to clipboard operation
goqu copied to clipboard

SQL builder and query library for golang

Results 142 goqu issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? Please describe.** I am facing an issue with double quotes for the table name. When executing a query I always get Error...

type A struct { C string D string } type B struct { C string D string } type AB struct { A B } goqu.From("a").Select(&AB{}).Join("b") how to generate sql...

Is there a way to alias a boolean expression in the select column list? I think what I want is basically: ```go db.From("foo").Select(goqu.I("foo.bar").IsNotNull().As("have_bar") ``` But type exp.BooleanExpression does not implement...

**Describe the bug** when distinct() and limit(1) is used together, sql generated is SELECT TOP (1) DISTINCT **To Reproduce** Use distinct and limit clause together with dialect sqlserver .Distinct().Limit(1) **Expected...

Hi great author:) **Dialect** - [ ] postgres how make filter for this window function?, for example SUM(adi.amount) FILTER (WHERE ad.document_status = 'pending') as unpaid_document_sum Thanks Ales

question
investigate

add please function exists **Dialect** - [x] postgres - [x] mysql - [x] sqlite3 **Additional context** Add any other context or screenshots about the feature request here.

enhancement
sql

## Issue Summary **Dialect: `sqlite3`**: However, this issue is not related to the dialect. Using the `struct` format of `goqu` for `INSERT`s lead to... unusable queries, should you be (DRY)...

couldn't find docs for OrderBy how do we generate queries that require OrderBy

documentation