[PostgreSQL] Add support for WITH statements and Common Table Expressions.
This commit is contained in:
parent
fb8607da29
commit
8aa894730c
10 changed files with 60 additions and 26 deletions
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
// UpdateStatement is interface of SQL UPDATE statement
|
||||
type UpdateStatement interface {
|
||||
Statement
|
||||
jet.SerializerStatement
|
||||
|
||||
SET(value interface{}, values ...interface{}) UpdateStatement
|
||||
MODEL(data interface{}) UpdateStatement
|
||||
|
|
@ -67,7 +67,7 @@ func (u *updateStatementImpl) WHERE(expression BoolExpression) UpdateStatement {
|
|||
}
|
||||
|
||||
func (u *updateStatementImpl) RETURNING(projections ...jet.Projection) UpdateStatement {
|
||||
u.Returning.Projections = projections
|
||||
u.Returning.ProjectionList = projections
|
||||
return u
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue