Documentation ¶
Index ¶
- func GetDatabase(ctx context.Context) string
- func GetField(ctx context.Context) reflext.FieldInfo
- func GetTable(ctx context.Context) string
- type Column
- type DeleteStmt
- type Direction
- type Index
- type IndexColumn
- type SQLCtx
- type SelectStmt
- func (stmt *SelectStmt) CrossJoin(subQuery, first, second any) *SelectStmt
- func (stmt *SelectStmt) Distinct() *SelectStmt
- func (stmt *SelectStmt) From(values ...any) *SelectStmt
- func (stmt *SelectStmt) GroupBy(fields ...any) *SelectStmt
- func (stmt *SelectStmt) Having(fields ...any) *SelectStmt
- func (stmt *SelectStmt) InnerJoin(subQuery, first, second any) *SelectStmt
- func (stmt *SelectStmt) LeftJoin(subQuery, first, second any) *SelectStmt
- func (stmt *SelectStmt) Limit(num uint) *SelectStmt
- func (stmt *SelectStmt) Offset(num uint) *SelectStmt
- func (stmt *SelectStmt) Option(opts ...any) *SelectStmt
- func (stmt *SelectStmt) OrderBy(fields ...any) *SelectStmt
- func (stmt *SelectStmt) RightJoin(subQuery, first, second any) *SelectStmt
- func (stmt *SelectStmt) Select(fields ...any) *SelectStmt
- func (stmt *SelectStmt) Where(fields ...any) *SelectStmt
- type Type
- type UpdateStmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Column ¶
type Column struct { Name string DataType string Type string Size int Nullable bool DefaultValue *string Charset *string Collation *string Extra string }
Column :
type DeleteStmt ¶
DeleteStmt :
type Index ¶
type Index struct { Name string Cast string As string Type Type Columns []IndexColumn Comment string }
Index :
type IndexColumn ¶
IndexColumn :
type SelectStmt ¶
type SelectStmt struct { DistinctOn bool Tables []any Exprs []any Joins []primitive.Join IndexHints string Conditions primitive.Group Havings primitive.Group Groups []any Sorts []any RowCount uint Skip uint Opts []any }
SelectStmt :
func (*SelectStmt) CrossJoin ¶
func (stmt *SelectStmt) CrossJoin(subQuery, first, second any) *SelectStmt
CrossJoin :
func (*SelectStmt) InnerJoin ¶
func (stmt *SelectStmt) InnerJoin(subQuery, first, second any) *SelectStmt
InnerJoin :
func (*SelectStmt) LeftJoin ¶
func (stmt *SelectStmt) LeftJoin(subQuery, first, second any) *SelectStmt
LeftJoin :
func (*SelectStmt) RightJoin ¶
func (stmt *SelectStmt) RightJoin(subQuery, first, second any) *SelectStmt
RightJoin :
Click to show internal directories.
Click to hide internal directories.