jet/sqlbuilder/clause.go
2019-04-30 11:31:00 +02:00

23 lines
335 B
Go

package sqlbuilder
import "bytes"
type serializeOption int
const (
ALIASED = iota
FOR_PROJECTION
)
type Clause interface {
SerializeSql(out *bytes.Buffer, options ...serializeOption) error
}
func contains(s []serializeOption, e serializeOption) bool {
for _, a := range s {
if a == e {
return true
}
}
return false
}