Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Migrations embed.FS
Functions ¶
Types ¶
type Executor ¶
type Executor interface {
Exec(query string, args ...interface{}) (sql.Result, error)
ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
Query(query string, args ...interface{}) (*sql.Rows, error)
QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
QueryRow(query string, args ...interface{}) *sql.Row
QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
}
Executor is an interface that wraps methods for executing SQL queries via sql.DB or sql.Tx.
type Pagination ¶
func (*Pagination) Offset ¶
func (p *Pagination) Offset() int
Click to show internal directories.
Click to hide internal directories.