Documentation ¶
Index ¶
- func NewRawPath(filePath string, tagName string, dmlEnum enum.QueryEnum, ...) *rawPath
- func NewTxContext(ctx context.Context, tx *sqlx.Tx) context.Context
- type Case
- type CommonFields
- type Condition
- type DMLBody
- type DbSet
- type Delete
- type DynamicQuery
- type Insert
- type Part
- type Path
- type PredicateConditions
- type QueryEntity
- type QueryMap
- func (m *QueryMap) FindQueryInDelete(tagName string) (*Delete, errors.Error)
- func (m *QueryMap) FindQueryInInsert(tagName string) (*Insert, errors.Error)
- func (m *QueryMap) FindQueryInSelect(tagName string) (*Select, errors.Error)
- func (m *QueryMap) FindQueryInUpdate(tagName string) (*Update, errors.Error)
- type Select
- type TxContext
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRawPath ¶
Types ¶
type CommonFields ¶
func (*CommonFields) GetParts ¶
func (q *CommonFields) GetParts() []*Part
func (*CommonFields) GetRawSql ¶
func (q *CommonFields) GetRawSql() string
func (*CommonFields) IsSimpleSql ¶
func (q *CommonFields) IsSimpleSql() bool
func (*CommonFields) Path ¶
func (q *CommonFields) Path() string
func (*CommonFields) Tag ¶
func (q *CommonFields) Tag() string
type Delete ¶
type Delete struct {
*CommonFields
}
type DynamicQuery ¶
type Insert ¶
type Insert struct {
*CommonFields
}
type PredicateConditions ¶
type PredicateConditions func() []*Condition
type QueryEntity ¶
type QueryMap ¶
type QueryMap struct { FilePath string SelectMap map[string]*Select // key: filePath/SELECT/tagName value: *Select InsertMap map[string]*Insert // key: filePath/INSERT/tagName value: *Insert UpdateMap map[string]*Update // key: filePath/UPDATE/tagName value: *Update DeleteMap map[string]*Delete // key: filePath/DELETE/tagName value: *Delete }
func (*QueryMap) FindQueryInDelete ¶
func (*QueryMap) FindQueryInInsert ¶
func (*QueryMap) FindQueryInSelect ¶
type Select ¶
type Select struct {
*CommonFields
}
type Update ¶
type Update struct {
*CommonFields
}
Click to show internal directories.
Click to hide internal directories.