# Functions
AddPagination adds the parsed pagination filters to the query.
IsUnaryOp returns true if the operator is unary (no value required).
Open opens a database connection given a config struct It expects a fs.FS in order to fetch and run the DB migrations If you don't need them, just pass nil instead.
ParsePagination generates a Limit+Offset QueryMod slice given an user-inputted offset and limit.
Transaction wraps a function within an SQL transaction, that can be used to run multiple statements in a safe way In case of errors or panics, the transaction will be rolled back.
TransactionCtx is the same as Transaction, but either embeds the transaction in the given context or uses an existing one from the context.
Tx extracts a transaction from a context, returns nil if no transaxction is found.
TxOr extracts a transaction from a context, with a fallback executor.
WithTx enriches a context with a transaction.
# Variables
No description provided by the author
ErrEmptySort is raised when ParseSorting is called with an empty slice You should either handle it or use AddSorting instead.
WhereFilters map user-given operators to Where operators.
WhereFilters map user-given operators to Where operators.
TxKey holds a transaction in a ctx.
UnaryOps is a list of operators which don't require values.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
FilterMap maps the "public" name of an attribute with a DB column.
QueryMods is an helper that allows treating arrays of QueryMod as a single QueryMod.