Use type aliasing to forward types from internal/jet.
This commit is contained in:
parent
4309b59975
commit
b646dd2c99
9 changed files with 49 additions and 67 deletions
|
|
@ -3,17 +3,7 @@ package postgres
|
|||
import "github.com/go-jet/jet/internal/jet"
|
||||
|
||||
// Statement is common interface for all statements(SELECT, INSERT, UPDATE, DELETE, LOCK)
|
||||
type Statement jet.Statement
|
||||
type Statement = jet.Statement
|
||||
|
||||
// Projection is interface for all projection types. Types that can be part of, for instance SELECT clause.
|
||||
type Projection jet.Projection
|
||||
|
||||
func toJetProjectionList(projections []Projection) []jet.Projection {
|
||||
ret := []jet.Projection{}
|
||||
|
||||
for _, projection := range projections {
|
||||
ret = append(ret, projection)
|
||||
}
|
||||
|
||||
return ret
|
||||
}
|
||||
type Projection = jet.Projection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue