Documentation
¶
Index ¶
- Variables
- func AbortWithRelevantError(err error, c *gin.Context)
- func AppendWhereClause[T any](currentQuery string, columnName string, operand string, value T, ...) (newQuery string, newPositional []any)
- func ConvertIfDuplicateErr(err error) error
- func ConvertIfNotFoundErr(err error) error
- func GetNilIfDefault[T comparable](value T) *T
- func GetPagesFromItems(totalItems int, pageSize int) int
- func IsStringNotEmpty(value string) bool
- func IsUuidNotEmpty(value uuid.UUID) bool
- func MakeLikeQuery(value string) string
- func Paginate(completeQuery string, pageIndex int, pageSize int) (query string, countQuery string, err error)
- func ParseUuidFromParam(c *gin.Context) (uuid.UUID, error)
- func ScanCountQuery(connector gotabase.Connector, query string, args ...interface{}) (int, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AbortWithRelevantError ¶
func AppendWhereClause ¶
func ConvertIfDuplicateErr ¶
func ConvertIfNotFoundErr ¶
func GetNilIfDefault ¶
func GetNilIfDefault[T comparable](value T) *T
func GetPagesFromItems ¶
func IsStringNotEmpty ¶
func IsUuidNotEmpty ¶
func MakeLikeQuery ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.