Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DialectGeneric = Dialect{ Name: "generic", Compat: func(Dialect) uint { return 0 }, } DialectSQLite = Dialect{ Name: "sqlite", Compat: func(dialect Dialect) uint { if dialect.Is(DialectGeneric) { return 100 } return 0 }, } DialectPostgres = Dialect{ Name: "postgres", Compat: func(dialect Dialect) uint { if dialect.Is(DialectGeneric) { return 100 } return 0 }, } )
View Source
var ErrNoCompatibleDialects = errors.New("no compatible dialects")
View Source
var ErrNoRows = errors.New("no rows")
Functions ¶
This section is empty.
Types ¶
type AsyncRTx ¶
type AsyncRTx interface { Query(handler AsyncHandler[Rows], stmt string, args ...any) QueryRow(handler AsyncHandler[Row], stmt string, args ...any) }
type AsyncWTx ¶
type AsyncWTx interface { AsyncRTx Exec(handler AsyncHandler[Exec], stmt string, args ...any) }
type BatchEntry ¶
type BatchEntry struct { Stmt string Args []any ExecHandler AsyncHandler[Exec] QueryHandler AsyncHandler[Rows] QueryRowHandler AsyncHandler[Row] }
type BatchR ¶
type BatchR struct {
Entries []*BatchEntry
}
type BatchRW ¶
type BatchRW struct {
Entries []*BatchEntry
}
func NewBatchRW ¶
func NewBatchRW() *BatchRW
type Dialect ¶
type Dialect struct { Name string Compat DialectCompatFunc }
func (Dialect) CompatibleWith ¶
type DialectCompatFunc ¶
Click to show internal directories.
Click to hide internal directories.