Documentation ¶
Index ¶
- type DeleteStmt
- type SelectStmt
- func (stmt *SelectStmt) Distinct() *SelectStmt
- func (stmt *SelectStmt) From(values ...interface{}) *SelectStmt
- func (stmt *SelectStmt) GroupBy(fields ...interface{}) *SelectStmt
- func (stmt *SelectStmt) Having(fields ...interface{}) *SelectStmt
- func (stmt *SelectStmt) Limit(num uint) *SelectStmt
- func (stmt *SelectStmt) Offset(num uint) *SelectStmt
- func (stmt *SelectStmt) OrderBy(fields ...interface{}) *SelectStmt
- func (stmt *SelectStmt) Select(fields ...interface{}) *SelectStmt
- func (stmt *SelectStmt) Where(fields ...interface{}) *SelectStmt
- type UpdateStmt
- func (stmt *UpdateStmt) Limit(num uint) *UpdateStmt
- func (stmt *UpdateStmt) OrderBy(fields ...interface{}) *UpdateStmt
- func (stmt *UpdateStmt) Set(values ...primitive.KV) *UpdateStmt
- func (stmt *UpdateStmt) Update(fields ...interface{}) *UpdateStmt
- func (stmt *UpdateStmt) Where(fields ...interface{}) *UpdateStmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteStmt ¶
type DeleteStmt struct { Tables []interface{} Conditions primitive.Group Sorts []interface{} Max uint }
DeleteStmt :
func (*DeleteStmt) OrderBy ¶
func (stmt *DeleteStmt) OrderBy(fields ...interface{}) *DeleteStmt
OrderBy :
type SelectStmt ¶
type SelectStmt struct { DistinctOn bool Tables []interface{} Projections []interface{} Joins []interface{} IndexHints string Conditions primitive.Group Havings primitive.Group Groups []interface{} Sorts []interface{} Max uint Skip uint }
SelectStmt :
func (*SelectStmt) GroupBy ¶
func (stmt *SelectStmt) GroupBy(fields ...interface{}) *SelectStmt
GroupBy :
func (*SelectStmt) Having ¶
func (stmt *SelectStmt) Having(fields ...interface{}) *SelectStmt
Having :
func (*SelectStmt) OrderBy ¶
func (stmt *SelectStmt) OrderBy(fields ...interface{}) *SelectStmt
OrderBy :
func (*SelectStmt) Select ¶
func (stmt *SelectStmt) Select(fields ...interface{}) *SelectStmt
Select :
type UpdateStmt ¶
type UpdateStmt struct { Database string Table string Conditions primitive.Group Values []primitive.KV Sorts []interface{} Max uint }
UpdateStmt :
func (*UpdateStmt) OrderBy ¶
func (stmt *UpdateStmt) OrderBy(fields ...interface{}) *UpdateStmt
OrderBy :
func (*UpdateStmt) Update ¶
func (stmt *UpdateStmt) Update(fields ...interface{}) *UpdateStmt
Update :
Click to show internal directories.
Click to hide internal directories.