Support for subqueries, Group By and Having clause.
This commit is contained in:
parent
ddf816c998
commit
5a7563d4af
12 changed files with 674 additions and 305 deletions
|
|
@ -32,6 +32,8 @@ type BoolExpression interface {
|
|||
type Projection interface {
|
||||
Clause
|
||||
isProjectionInterface
|
||||
|
||||
As(alias string) Projection
|
||||
SerializeSqlForColumnList(out *bytes.Buffer) error
|
||||
}
|
||||
|
||||
|
|
@ -51,6 +53,10 @@ func (cl ColumnList) SerializeSql(out *bytes.Buffer) error {
|
|||
func (cl ColumnList) isProjectionType() {
|
||||
}
|
||||
|
||||
func (cl ColumnList) As(name string) Projection {
|
||||
panic("Unallowed operation ")
|
||||
}
|
||||
|
||||
func (cl ColumnList) SerializeSqlForColumnList(out *bytes.Buffer) error {
|
||||
for i, column := range cl {
|
||||
column.SerializeSqlForColumnList(out)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue