# Functions
DBQueryJSON is a helper that executes the query provided and returns a bytes slice containing the json data returned from the database.
DBQueryJSONWithPagination is a helper that executes the query provided and returns a JSONQueryResult instance containing the json data returned from the database.
DBQueryUnmarshal is a helper that executes the query provided and unmarshals the json data returned from the database into the value (v) provided.
DBTransact is a helper function that wraps some database transactions taking care of committing and rolling back when needed.
ReadRegularFile is a wrapper around os.ReadFile that only operates on regular files.
SetupConfig creates a new Viper instance to handle the configuration for a particular cmd.
SetupDB creates a database connection pool using the configuration provided.
SetupHTTPClient is a helper that returns an http client.
SetupImageStore creates a new image store based on the configuration provided.
SetupLogger configures the global logger using the configuration provided.
# Constants
DBLockKeyUpdatePackagesViews represents the lock key used when updating the packages views counters in the database.
# Variables
ErrDBInsufficientPrivilege indicates that the user does not have the required privilege to perform the operation.
ErrRestrictedConnection error indicates that connections to the provided address are restricted.
HTTPClientDefaultTimeout represents the default timeout used for http clients.