Model refactor cleanup.
This commit is contained in:
parent
c9561ecc37
commit
f016a93d78
33 changed files with 536 additions and 618 deletions
|
|
@ -3,44 +3,13 @@ package sqlbuilder
|
|||
// A clause that can be used in orderBy by
|
||||
|
||||
// A clause that is selectable.
|
||||
//type Projection interface {
|
||||
// Clause
|
||||
//type projection interface {
|
||||
// clause
|
||||
// isProjectionInterface
|
||||
//
|
||||
// SerializeSqlForColumnList(out *bytes.Buffer) error
|
||||
//}
|
||||
|
||||
//type ColumnList []Column
|
||||
//
|
||||
//func (cl ColumnList) Serialize(out *bytes.Buffer, options ...serializeOption) error {
|
||||
// for i, column := range cl {
|
||||
// column.Serialize(out)
|
||||
//
|
||||
// if i != len(cl)-1 {
|
||||
// out.WriteString(", ")
|
||||
// }
|
||||
// }
|
||||
// return nil
|
||||
//}
|
||||
//
|
||||
//func (cl ColumnList) isProjectionType() {
|
||||
//}
|
||||
//
|
||||
//func (cl ColumnList) AS(name string) Clause {
|
||||
// panic("Unallowed operation ")
|
||||
//}
|
||||
|
||||
//func (cl ColumnList) SerializeSqlForColumnList(out *bytes.Buffer) error {
|
||||
// for i, column := range cl {
|
||||
// column.SerializeSqlForColumnList(out)
|
||||
//
|
||||
// if i != len(cl)-1 {
|
||||
// out.WriteString(", ")
|
||||
// }
|
||||
// }
|
||||
// return nil
|
||||
//}
|
||||
|
||||
//
|
||||
// Boiler plates ...
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue