Documentation
¶
Index ¶
- Constants
- func RegisterDialect(name string, d Dialect)
- type AutoIncrKeyer
- type ColumnValuer
- type Columner
- type ConvertFunc
- type DB
- type Dialect
- type EmptyResult
- type Inserter
- type KeyFinder
- type KeyValueScanner
- type KeyValuer
- type Keyer
- type Migrator
- type Name
- type OrderByClause
- type Scanner
- type SetClause
- type SingleInserter
- type Stmt
- type StmtBuilder
- type StmtWriter
- type TableColumnValuer
- type Tabler
- type Valuer
- type WhereClause
Constants ¶
View Source
const Version = "v1.0.0-alpha.2"
Variables ¶
This section is empty.
Functions ¶
func RegisterDialect ¶
Types ¶
type AutoIncrKeyer ¶
type AutoIncrKeyer interface { Keyer IsAutoIncr() }
type ColumnValuer ¶
type ColumnValuer[T any] interface { ColumnName() string Convert(T) driver.Value Value() driver.Value }
func Column ¶
func Column[T any](columnName string, value T, convert ConvertFunc[T]) ColumnValuer[T]
type ConvertFunc ¶
type EmptyResult ¶
type EmptyResult struct{}
func (EmptyResult) LastInsertId ¶
func (EmptyResult) LastInsertId() (int64, error)
func (EmptyResult) RowsAffected ¶
func (EmptyResult) RowsAffected() (int64, error)
type KeyValueScanner ¶
type OrderByClause ¶
type OrderByClause func(StmtWriter)
type SetClause ¶
type SetClause func(StmtBuilder)
type SingleInserter ¶
type SingleInserter interface {
InsertOneStmt() string
}
type StmtBuilder ¶
type StmtBuilder interface { StmtWriter Var(query string, v any) Vars(query string, v []any) }
type StmtWriter ¶
type StmtWriter interface { io.StringWriter io.ByteWriter }
type WhereClause ¶
type WhereClause func(StmtBuilder)
Click to show internal directories.
Click to hide internal directories.