Documentation
¶
Index ¶
- type BatchInsert
- func (b *BatchInsert) AddValues(sqlValues string, args ...interface{}) *BatchInsert
- func (b *BatchInsert) Count() int
- func (b *BatchInsert) DoContext(ctx context.Context, sqlClient SQLClient) (sql.Result, error)
- func (b *BatchInsert) DoContextIfMax(ctx context.Context, sqlClient SQLClient) (sql.Result, error)
- func (b *BatchInsert) EnableLock() *BatchInsert
- func (b *BatchInsert) SetInsert(sqlInsert string) *BatchInsert
- func (b *BatchInsert) WithMaxCount(maxCount int) *BatchInsert
- type Limit
- type SQLClient
- type Sorting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchInsert ¶
type BatchInsert struct {
// contains filtered or unexported fields
}
func NewBatchInsert ¶
func NewBatchInsert() *BatchInsert
func (*BatchInsert) AddValues ¶
func (b *BatchInsert) AddValues(sqlValues string, args ...interface{}) *BatchInsert
func (*BatchInsert) Count ¶
func (b *BatchInsert) Count() int
func (*BatchInsert) DoContextIfMax ¶
func (*BatchInsert) EnableLock ¶
func (b *BatchInsert) EnableLock() *BatchInsert
func (*BatchInsert) SetInsert ¶
func (b *BatchInsert) SetInsert(sqlInsert string) *BatchInsert
func (*BatchInsert) WithMaxCount ¶
func (b *BatchInsert) WithMaxCount(maxCount int) *BatchInsert
type Limit ¶
type Limit struct {
Maximum uint64
}
func (*Limit) SetMaximum ¶
func (*Limit) WriteLimit ¶
func (l *Limit) WriteLimit(query *strings.Builder, listParameters *protobuf.ListParameters)
type Sorting ¶
func NewSorting ¶
func NewSorting() *Sorting
func (*Sorting) SetAscDesc ¶
func (*Sorting) WriteOrderBy ¶
func (s *Sorting) WriteOrderBy(query *strings.Builder, listParameters *protobuf.ListParameters)
Click to show internal directories.
Click to hide internal directories.