Versions in this module Expand all Collapse all v1 v1.0.0 Oct 10, 2026 Changes in this version + func BuildConditionExpression(conditions []string, logicalOperator LogicalOperator) string + func BuildOrderBy(sortBy string, sortOrder SortOrder, table string, alias string) string + func GetDefaultSortField(table string) string + func GetSortableFieldsForTable(table string) map[string]bool + func GetValidFieldsForTable(table string) map[string]bool + func IsValidLogicalOperator(op LogicalOperator) bool + func IsValidOperator(op Operator) bool + func ParseDateTime(value string) (time.Time, error) + func ResolveSortField(table, sortBy string) string + func Validate(filters *QueryFilterSet, table string) error + func ValidateSortByForTable(opts *QueryOptions, table string) error + func ValidateSortField(sortBy, table string) error + type BuildResult struct + Args []interface{} + CTEs []string + Conditions []string + NextArgPos int + OrderBy string + func Build(filters *QueryFilterSet, table string, alias string, startArgPos int) (*BuildResult, error) + func BuildWithOptions(filters *QueryFilterSet, table string, alias string, startArgPos int, ...) (*BuildResult, error) + type LogicalOperator string + const LogicalAnd + const LogicalOr + func ResolveLogicalOperator(s string) LogicalOperator + type Operator string + const OpBetween + const OpEqual + const OpGreaterThan + const OpGreaterThanOrEqual + const OpILike + const OpIn + const OpIsNotNull + const OpIsNull + const OpLessThan + const OpLessThanOrEqual + const OpLike + const OpNotEqual + func ResolveOperator(s string) Operator + type ParseError struct + Message string + Param string + type ParseOptions struct + MaxCharLen int + MaxFilters int + MaxInValues int + type ParseResult struct + Errors []ParseError + Filters *QueryFilterSet + func ParseFromQuery(queryParams url.Values, opts *ParseOptions) *ParseResult + type QueryFilter struct + Field string + Operator Operator + Value interface{} + Values []interface{} + type QueryFilterSet struct + Filters []QueryFilter + LogicalOperator LogicalOperator + type QueryOptions struct + IncludeCount bool + SortBy string + SortOrder SortOrder + func (o *QueryOptions) DefaultSortOrder() SortOrder + type SortOrder string + const SortAsc + const SortDesc + type TimestampValue struct + Original string + Precision string + Time time.Time