package mysql import "source.gleipnir.technology/Gleipnir/jet/internal/jet" // SelectTable is interface for MySQL sub-queries type SelectTable interface { readableTable jet.SelectTable } type selectTableImpl struct { jet.SelectTable readableTableInterfaceImpl } func newSelectTable(selectStmt jet.SerializerHasProjections, alias string, columnAliases []jet.ColumnExpression) SelectTable { subQuery := &selectTableImpl{ SelectTable: jet.NewSelectTable(selectStmt, alias, columnAliases), } subQuery.readableTableInterfaceImpl.root = subQuery return subQuery }