Add WITH RECURSIVE statement support

This commit is contained in:
go-jet 2021-12-29 19:07:59 +01:00
parent 001d64f1dc
commit 038a32b032
17 changed files with 695 additions and 91 deletions

View file

@ -2,7 +2,7 @@ package postgres
import "github.com/go-jet/jet/v2/internal/jet"
// SelectTable is interface for MySQL sub-queries
// SelectTable is interface for postgres sub-queries
type SelectTable interface {
readableTable
jet.SelectTable
@ -13,7 +13,7 @@ type selectTableImpl struct {
readableTableInterfaceImpl
}
func newSelectTable(selectStmt jet.SerializerStatement, alias string) SelectTable {
func newSelectTable(selectStmt jet.SerializerHasProjections, alias string) SelectTable {
subQuery := &selectTableImpl{
SelectTable: jet.NewSelectTable(selectStmt, alias),
}