option

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaKey         = "schema"
	AsKey             = "as"
	SortDirectionKey  = "sortDirection"
	JoinMethodKey     = "joinMethod"
	VariableKey       = "variable"
	VariableFormatKey = "varFmt"
	ColumnFormatKey   = "columnFmt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	KV map[string]interface{}
}

func EvaluateOptions

func EvaluateOptions(args []interface{}) *Options

func NewOptions

func NewOptions() *Options

func (*Options) GetColumnFormat

func (o *Options) GetColumnFormat() (op.ColumnFormat, bool)

func (*Options) GetJoinMethod

func (o *Options) GetJoinMethod() op.JoinMethod

func (*Options) GetSchema

func (o *Options) GetSchema() *schema.Schema

func (*Options) GetSortDirection

func (o *Options) GetSortDirection() op.SortDirection

func (*Options) GetString

func (o *Options) GetString(k string) (string, bool)

func (*Options) GetStringArray

func (o *Options) GetStringArray(k string) []string

func (*Options) GetVariable

func (o *Options) GetVariable(key string) sqlk.VariableWriter

func (*Options) GetVariableFormat

func (o *Options) GetVariableFormat() (op.VariableFormat, bool)

type SetOptionFn

type SetOptionFn = func(*Options)

func As

func As(as string) SetOptionFn

func ColumnFormat

func ColumnFormat(f op.ColumnFormat) SetOptionFn

func JoinMethod

func JoinMethod(m op.JoinMethod) SetOptionFn

func Schema

func Schema(s *schema.Schema) SetOptionFn

func SortDirection

func SortDirection(direction op.SortDirection) SetOptionFn

func VariableFormat

func VariableFormat(vf op.VariableFormat) SetOptionFn

Jump to

Keyboard shortcuts

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