Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
Exec(query string, args ...any) (sql.Result, error)
ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
Query(query string, args ...any) (*sql.Rows, error)
QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
QueryRow(query string, args ...any) *sql.Row
QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
Prepare(stmt string) (*sql.Stmt, error)
PrepareContext(ctx context.Context, stmt string) (*sql.Stmt, error)
}
Executor is an abstraction of both sql.DB/sql.Tx
type ModelUpdate ¶
type ModelUpdate interface {
UpdateTableName() string
}
Click to show internal directories.
Click to hide internal directories.