loption

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

func WithCommonOptions

func WithCommonOptions(commonOptions option.Options) Option

func WithFormat

func WithFormat(format string) Option

func WithHint

func WithHint(hint string) Option

func WithTransaction

func WithTransaction(tx *sql.Tx) Option

func WithUpsert

func WithUpsert() Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(options ...Option) *Options

func (*Options) GetCommonOptions

func (o *Options) GetCommonOptions() option.Options

func (*Options) GetFormat

func (o *Options) GetFormat() string

func (*Options) GetHint

func (o *Options) GetHint() string

func (*Options) GetTransaction

func (o *Options) GetTransaction() *sql.Tx

func (*Options) GetWithUpsert

func (o *Options) GetWithUpsert() bool

Jump to

Keyboard shortcuts

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