2019-03-02 12:34:08 +01:00
|
|
|
package sqlbuilder
|
|
|
|
|
|
2019-05-13 11:48:58 +02:00
|
|
|
type rowsType interface {
|
|
|
|
|
clause
|
|
|
|
|
hasRows()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type isRowsType struct{}
|
|
|
|
|
|
|
|
|
|
func (i *isRowsType) hasRows() {}
|
|
|
|
|
|
2019-04-29 14:39:48 +02:00
|
|
|
// A clause that can be used in orderBy by
|
2019-03-02 12:34:08 +01:00
|
|
|
|
|
|
|
|
// A clause that is selectable.
|
2019-05-07 19:06:21 +02:00
|
|
|
//type projection interface {
|
|
|
|
|
// clause
|
2019-03-31 14:07:58 +02:00
|
|
|
// isProjectionInterface
|
|
|
|
|
//
|
|
|
|
|
// SerializeSqlForColumnList(out *bytes.Buffer) error
|
|
|
|
|
//}
|
2019-03-30 10:17:32 +01:00
|
|
|
|
2019-03-02 12:34:08 +01:00
|
|
|
//
|
|
|
|
|
// Boiler plates ...
|
|
|
|
|
//
|
|
|
|
|
|
2019-03-31 14:07:58 +02:00
|
|
|
//
|
|
|
|
|
//type isProjectionInterface interface {
|
|
|
|
|
// isProjectionType()
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//type isProjection struct {
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//func (p *isProjection) isProjectionType() {
|
|
|
|
|
//}
|