Extend set operator to accept sets as parameters.

This commit is contained in:
zer0sub 2019-05-13 11:48:58 +02:00
parent 240ddd65e6
commit 1fd63b8783
4 changed files with 57 additions and 8 deletions

View file

@ -9,6 +9,7 @@ import (
type selectStatement interface {
Statement
expression
hasRows()
DISTINCT() selectStatement
FROM(table readableTable) selectStatement
@ -33,6 +34,7 @@ func SELECT(projection ...projection) selectStatement {
// mysql's subquery performance is horrible.
type selectStatementImpl struct {
expressionInterfaceImpl
isRowsType
table readableTable
distinct bool