Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConstraints ¶ added in v0.11.12
func GetConstraints(queryContext table.QueryContext, columnName string, opts ...GetConstraintOpts) []string
GetConstraints returns a []string of the constraint expressions on a column. It's meant for the common, simple, usecase of iterating over them.
func MockQueryContext ¶
func MockQueryContext(constraints map[string][]string) table.QueryContext
Types ¶
type GetConstraintOpts ¶ added in v0.11.12
type GetConstraintOpts func(*constraintOptions)
func WithAllowedCharacters ¶ added in v0.11.12
func WithAllowedCharacters(allowed string) GetConstraintOpts
func WithDefaults ¶ added in v0.11.12
func WithDefaults(defaults ...string) GetConstraintOpts
WithDefaults sets the defaults to use if no constraints were specified. Note that this does not apply if there were constraints, which were invalidated.
func WithLogger ¶ added in v0.11.12
func WithLogger(logger log.Logger) GetConstraintOpts
WithLogger sets the logger to use
Click to show internal directories.
Click to hide internal directories.