Documentation ¶
Index ¶
- Constants
- func Assign(options []Option, supplied ...interface{}) bool
- type Args
- type BatchSize
- type ColumnRestriction
- type Columns
- type Identity
- type IdentityOnly
- type LoadFormat
- type LoadHint
- 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) 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) Tag() string
- func (o Options) Tx() *sql.Tx
- type RecordCount
- type SetMarker
- type Tag
Constants ¶
View Source
const (
//TagSqlx defines sqlx annotation
TagSqlx = "sqlx"
)
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 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) 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
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{}
Click to show internal directories.
Click to hide internal directories.