jet/postgres/types.go

22 lines
758 B
Go
Raw Normal View History

2019-08-16 11:19:06 +02:00
package postgres
2020-06-27 18:48:19 +02:00
import "github.com/go-jet/jet/v2/internal/jet"
2019-08-16 11:19:06 +02:00
2019-08-17 14:49:35 +02:00
// Statement is common interface for all statements(SELECT, INSERT, UPDATE, DELETE, LOCK)
type Statement = jet.Statement
2019-08-17 14:49:35 +02:00
// Projection is interface for all projection types. Types that can be part of, for instance SELECT clause.
type Projection = jet.Projection
// ProjectionList can be used to create conditional constructed projection list.
type ProjectionList = jet.ProjectionList
// ColumnAssigment is interface wrapper around column assigment
type ColumnAssigment = jet.ColumnAssigment
// PrintableStatement is a statement which sql query can be logged
type PrintableStatement = jet.PrintableStatement
// SetLogger sets automatic statement logging
var SetLogger = jet.SetLoggerFunc