Column types refactoring.
This commit is contained in:
parent
38007810c1
commit
033ab1d0da
19 changed files with 746 additions and 396 deletions
|
|
@ -2,6 +2,22 @@ package sqlbuilder
|
|||
|
||||
import "bytes"
|
||||
|
||||
type serializeOption int
|
||||
|
||||
const (
|
||||
ALIASED = iota
|
||||
FOR_PROJECTION
|
||||
)
|
||||
|
||||
type Clause interface {
|
||||
SerializeSql(out *bytes.Buffer) error
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue