mysql

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 8 Imported by: 9

Documentation

Index

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) Dialect

func (s *SQLUtils) Dialect() string

func (*SQLUtils) EscapeIdentifier

func (s *SQLUtils) EscapeIdentifier(sb []byte, v string) []byte

func (*SQLUtils) EscapeIdentifierAliasedValue

func (s *SQLUtils) EscapeIdentifierAliasedValue(sb []byte, value string) []byte

func (*SQLUtils) GetAlias

func (s *SQLUtils) GetAlias(value string) string

func (*SQLUtils) GetPlaceholder

func (s *SQLUtils) GetPlaceholder() string

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL