tablehelpers

package
v0.11.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL