2019-08-15 13:54:05 +02:00
|
|
|
package mysql
|
|
|
|
|
|
|
|
|
|
import "github.com/go-jet/jet/internal/jet"
|
|
|
|
|
|
2019-08-17 10:43:16 +02:00
|
|
|
// Statement is common interface for all statements(SELECT, INSERT, UPDATE, DELETE, LOCK)
|
2019-08-15 13:54:05 +02:00
|
|
|
type Statement jet.Statement
|
2019-08-17 10:43:16 +02:00
|
|
|
|
|
|
|
|
// Projection is interface for all projection types. Types that can be part of, for instance SELECT clause.
|
2019-08-15 13:54:05 +02:00
|
|
|
type Projection jet.Projection
|
|
|
|
|
|
2019-08-16 11:19:06 +02:00
|
|
|
func toJetProjectionList(projections []Projection) []jet.Projection {
|
|
|
|
|
ret := []jet.Projection{}
|
|
|
|
|
|
|
|
|
|
for _, projection := range projections {
|
|
|
|
|
ret = append(ret, projection)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ret
|
|
|
|
|
}
|