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)
|
2019-09-26 11:44:46 +02:00
|
|
|
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.
|
2019-09-26 11:44:46 +02:00
|
|
|
type Projection = jet.Projection
|
2019-12-14 19:11:35 +01:00
|
|
|
|
|
|
|
|
// ProjectionList can be used to create conditional constructed projection list.
|
|
|
|
|
type ProjectionList = jet.ProjectionList
|
2020-05-03 20:46:21 +02:00
|
|
|
|
|
|
|
|
// ColumnAssigment is interface wrapper around column assigment
|
|
|
|
|
type ColumnAssigment = jet.ColumnAssigment
|
2020-05-10 11:41:07 +02:00
|
|
|
|
2020-06-01 18:22:24 +02:00
|
|
|
// PrintableStatement is a statement which sql query can be logged
|
|
|
|
|
type PrintableStatement = jet.PrintableStatement
|
2020-05-10 11:41:07 +02:00
|
|
|
|
2020-09-03 13:25:23 +02:00
|
|
|
// OrderByClause is the combination of an expression and the wanted ordering to use as input for ORDER BY.
|
|
|
|
|
type OrderByClause = jet.OrderByClause
|
|
|
|
|
|
2021-07-29 09:51:55 -04:00
|
|
|
// GroupByClause interface to use as input for GROUP_BY
|
|
|
|
|
type GroupByClause = jet.GroupByClause
|
|
|
|
|
|
2020-05-10 11:41:07 +02:00
|
|
|
// SetLogger sets automatic statement logging
|
|
|
|
|
var SetLogger = jet.SetLoggerFunc
|