jet/sqlbuilder/clause.go

24 lines
335 B
Go
Raw Normal View History

2019-03-31 09:17:28 +02:00
package sqlbuilder
import "bytes"
2019-03-31 14:07:58 +02:00
type serializeOption int
const (
ALIASED = iota
FOR_PROJECTION
)
2019-03-31 09:17:28 +02:00
type Clause interface {
2019-03-31 14:07:58 +02:00
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
2019-03-31 09:17:28 +02:00
}