Documentation
¶
Index ¶
- type MySQLQueryBuilder
- func (m MySQLQueryBuilder) Build(sb *[]byte, q *structs.Query, number int, unions *[]structs.Union) ([]interface{}, error)
- func (m MySQLQueryBuilder) InsertIgnore(q *structs.InsertQuery) (string, []interface{}, error)
- func (m MySQLQueryBuilder) Upsert(q *structs.InsertQuery) (string, []interface{}, error)
- func (m MySQLQueryBuilder) Where(sb *[]byte, c []structs.WhereGroup) ([]interface{}, error)
- type SQLUtils
- func (s *SQLUtils) Dialect() string
- func (s *SQLUtils) EscapeIdentifier(sb []byte, v string) []byte
- func (s *SQLUtils) EscapeIdentifierAliasedValue(sb []byte, value string) []byte
- func (s *SQLUtils) GetAlias(value string) string
- func (s *SQLUtils) GetPlaceholder() string
- func (s *SQLUtils) GetQueryBuilderStrategy() interfaces.QueryBuilderStrategy
- type WhereMySQLBuilder
- func (wb *WhereMySQLBuilder) ProcessFullText(sb *[]byte, c structs.Where) []interface{}
- func (wb *WhereMySQLBuilder) ProcessJsonContains(sb *[]byte, c structs.Where) []interface{}
- func (wb *WhereMySQLBuilder) ProcessJsonLength(sb *[]byte, c structs.Where) []interface{}
- func (wb *WhereMySQLBuilder) Where(sb *[]byte, wg []structs.WhereGroup) ([]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLQueryBuilder ¶
type MySQLQueryBuilder struct {
base.BaseQueryBuilder
base.DeleteBaseBuilder
base.InsertBaseBuilder
base.UpdateBaseBuilder
WhereMySQLBuilder
// contains filtered or unexported fields
}
func NewMySQLQueryBuilder ¶
func NewMySQLQueryBuilder() *MySQLQueryBuilder
func (MySQLQueryBuilder) Build ¶
func (m MySQLQueryBuilder) Build(sb *[]byte, q *structs.Query, number int, unions *[]structs.Union) ([]interface{}, error)
Build builds the query.
func (MySQLQueryBuilder) InsertIgnore ¶
func (m MySQLQueryBuilder) InsertIgnore(q *structs.InsertQuery) (string, []interface{}, error)
func (MySQLQueryBuilder) Upsert ¶
func (m MySQLQueryBuilder) Upsert(q *structs.InsertQuery) (string, []interface{}, error)
func (MySQLQueryBuilder) Where ¶
func (m MySQLQueryBuilder) Where(sb *[]byte, c []structs.WhereGroup) ([]interface{}, error)
type SQLUtils ¶
type SQLUtils struct {
}
func NewSQLUtils ¶
func NewSQLUtils() *SQLUtils
func (*SQLUtils) EscapeIdentifierAliasedValue ¶
func (*SQLUtils) GetPlaceholder ¶
func (*SQLUtils) GetQueryBuilderStrategy ¶
func (s *SQLUtils) GetQueryBuilderStrategy() interfaces.QueryBuilderStrategy
type WhereMySQLBuilder ¶
type WhereMySQLBuilder struct {
base.WhereBaseBuilder
// contains filtered or unexported fields
}
func NewWhereMySQLBuilder ¶
func NewWhereMySQLBuilder(util interfaces.SQLUtils, wg []structs.WhereGroup) *WhereMySQLBuilder
func (*WhereMySQLBuilder) ProcessFullText ¶
func (wb *WhereMySQLBuilder) ProcessFullText(sb *[]byte, c structs.Where) []interface{}
func (*WhereMySQLBuilder) ProcessJsonContains ¶
func (wb *WhereMySQLBuilder) ProcessJsonContains(sb *[]byte, c structs.Where) []interface{}
func (*WhereMySQLBuilder) ProcessJsonLength ¶
func (wb *WhereMySQLBuilder) ProcessJsonLength(sb *[]byte, c structs.Where) []interface{}
func (*WhereMySQLBuilder) Where ¶
func (wb *WhereMySQLBuilder) Where(sb *[]byte, wg []structs.WhereGroup) ([]interface{}, error)
Click to show internal directories.
Click to hide internal directories.