[PostgreSQL] Add support for WITH statements and Common Table Expressions.

This commit is contained in:
go-jet 2020-05-24 17:56:17 +02:00
parent fb8607da29
commit 8aa894730c
10 changed files with 60 additions and 26 deletions

View file

@ -4,7 +4,7 @@ import "github.com/go-jet/jet/internal/jet"
// DeleteStatement is interface for PostgreSQL DELETE statement
type DeleteStatement interface {
Statement
jet.SerializerStatement
WHERE(expression BoolExpression) DeleteStatement
@ -37,6 +37,6 @@ func (d *deleteStatementImpl) WHERE(expression BoolExpression) DeleteStatement {
}
func (d *deleteStatementImpl) RETURNING(projections ...jet.Projection) DeleteStatement {
d.Returning.Projections = projections
d.Returning.ProjectionList = projections
return d
}