2019-08-15 13:54:05 +02:00
|
|
|
package mysql
|
|
|
|
|
|
2026-05-14 16:26:47 +00:00
|
|
|
import "source.gleipnir.technology/Gleipnir/jet/internal/jet"
|
2019-08-15 13:54:05 +02:00
|
|
|
|
2019-08-17 10:43:16 +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 10:43:16 +02:00
|
|
|
|
2023-04-17 12:01:01 +02:00
|
|
|
// Rows wraps sql.Rows type with a support for query result mapping
|
|
|
|
|
type Rows = jet.Rows
|
|
|
|
|
|
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-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
|
2022-01-20 16:51:32 +01:00
|
|
|
// Deprecated: use SetQueryLogger instead.
|
2020-05-10 11:41:07 +02:00
|
|
|
var SetLogger = jet.SetLoggerFunc
|
2022-01-12 19:03:50 +01:00
|
|
|
|
2022-01-20 16:51:32 +01:00
|
|
|
// SetQueryLogger sets automatic query logging function.
|
|
|
|
|
var SetQueryLogger = jet.SetQueryLogger
|
2022-01-12 19:03:50 +01:00
|
|
|
|
|
|
|
|
// QueryInfo contains information about executed query
|
|
|
|
|
type QueryInfo = jet.QueryInfo
|