Documentation
¶
Index ¶
- Constants
- func CloseResultSet(rows *sqlx.Rows)
- func CloseStatement(statement *sqlx.NamedStmt)
- func ErrContextFailed(errs ...error) error
- func Exists[T Entity](ctx context.Context, sqlStatement string, criteria *T) bool
- func MutateContext[T any](ctx context.Context, sqlStatement string, target *T, fn MutateFunction) error
- func MutateOne[T Entity](ctx context.Context, sqlStatement string, target *T) error
- func QueryContext(ctx context.Context, sqlStatement string, fn QueryFunction) error
- func QueryMany[T Entity](ctx context.Context, sqlStatement string, criteria *T) ([]T, error)
- func QueryOne[T Entity](ctx context.Context, sqlStatement string, criteria *T) (*T, error)
- type Entity
- type ExistsFn
- type MutateFunction
- type MutateOneFn
- type QueryFunction
- type QueryManyFn
- type QueryOneFn
Constants ¶
View Source
const ( ErrorClosingStatement = "Error closing the statement" ErrorClosingResultSet = "Error closing the result set" )
Variables ¶
This section is empty.
Functions ¶
func CloseResultSet ¶ added in v0.5.0
func CloseStatement ¶ added in v0.5.0
func ErrContextFailed ¶ added in v0.5.0
func MutateContext ¶ added in v0.70.0
func QueryContext ¶ added in v0.70.0
func QueryContext(ctx context.Context, sqlStatement string, fn QueryFunction) error
Types ¶
type MutateFunction ¶ added in v0.70.0
type MutateOneFn ¶ added in v0.70.0
type QueryFunction ¶ added in v0.70.0
type QueryManyFn ¶ added in v0.70.0
Click to show internal directories.
Click to hide internal directories.