Documentation ¶
Index ¶
- func Assign(options []Option, supplied ...interface{}) bool
- type Args
- type BatchSize
- type ColumnRestriction
- type Columns
- type Identity
- type IdentityOnly
- type LoadFormat
- type LoadHint
- type OnDuplicateKeySql
- type Option
- type Options
- func (o Options) Args() *Args
- func (o Options) BatchSize() int
- func (o Options) Columns() Columns
- func (o Options) Db() *sql.DB
- func (o Options) Dialect() *info.Dialect
- func (o Options) Identity() string
- func (o Options) IdentityOnly() bool
- func (o Options) Interfaces() []interface{}
- func (o Options) LoadFormat() string
- func (o Options) LoadHint() string
- func (o Options) MaxIDSQLBuilder() func() *sqlx.SQL
- func (o Options) OnDuplicateKeySql() string
- func (o Options) PresetIDStrategy() dialect.PresetIDStrategy
- func (o Options) Product() *database.Product
- func (o Options) RecordCount() int64
- func (o Options) SQL() *sqlx.SQL
- func (o Options) SequenceSQLBuilder() func(*sink.Sequence) (*sqlx.SQL, error)
- func (o Options) SetMarker() *SetMarker
- func (o Options) StructOrderedColumns() bool
- func (o Options) Tx() *sql.Tx
- type RecordCount
- type SetMarker
- type StructOrderedColumns
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Args ¶
type Args struct {
// contains filtered or unexported fields
}
Args represents prepare statement arguments
type ColumnRestriction ¶
func (ColumnRestriction) CanUse ¶
func (r ColumnRestriction) CanUse(column string) bool
type Columns ¶
type Columns []string
Columns option to control which column to operate on
func (Columns) Restriction ¶
func (u Columns) Restriction() ColumnRestriction
type LoadHint ¶
type LoadHint string
LoadHint represents the bigquery.JobConfigurationLoad in json format
type OnDuplicateKeySql ¶ added in v0.15.2
type OnDuplicateKeySql string
OnDuplicateKeySql represents SQL suffix
type Options ¶
type Options []Option
Options represents generic options
func AsOptions ¶
func AsOptions(options []interface{}) Options
AsOptions case slice of interface to Options
func (Options) IdentityOnly ¶
IdentityOnly returns identity only option value or false
func (Options) Interfaces ¶
func (o Options) Interfaces() []interface{}
Interfaces returns current options as interfaces
func (Options) MaxIDSQLBuilder ¶
MaxIDSQLBuilder returns function returning SQL which gets max identity value from table
func (Options) OnDuplicateKeySql ¶ added in v0.15.2
OnDuplicateKeySql returns OnDuplicateKeySql option
func (Options) PresetIDStrategy ¶
func (o Options) PresetIDStrategy() dialect.PresetIDStrategy
PresetIDStrategy returns PresetIDStrategy option
func (Options) RecordCount ¶
RecordCount returns record count option
func (Options) SequenceSQLBuilder ¶
SequenceSQLBuilder returns sqlx.SQL
func (Options) StructOrderedColumns ¶ added in v0.14.0
StructOrderedColumns returns identity only option value or false
type SetMarker ¶ added in v0.7.0
type SetMarker struct { *structology.Marker IdentityIndex int }
func (*SetMarker) Placeholders ¶ added in v0.7.0
func (p *SetMarker) Placeholders(record interface{}, placeholders []interface{}) []interface{}
type StructOrderedColumns ¶ added in v0.14.0
type StructOrderedColumns bool
StructOrderedColumns is an option that represents the same column order as the struct field order