Documentation
¶
Index ¶
- Constants
- type Options
- func (o *Options) GetColumnFormat() (op.ColumnFormat, bool)
- func (o *Options) GetJoinMethod() op.JoinMethod
- func (o *Options) GetSchema() *schema.Schema
- func (o *Options) GetSortDirection() op.SortDirection
- func (o *Options) GetString(k string) (string, bool)
- func (o *Options) GetStringArray(k string) []string
- func (o *Options) GetVariable(key string) sqlk.VariableWriter
- func (o *Options) GetVariableFormat() (op.VariableFormat, bool)
- type SetOptionFn
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) GetSortDirection ¶
func (o *Options) GetSortDirection() op.SortDirection
func (*Options) GetStringArray ¶
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
Click to show internal directories.
Click to hide internal directories.