mysql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 9 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) ResetPlaceholderCounter added in v0.1.0

func (MySQLQueryBuilder) ResetPlaceholderCounter()

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) EscapeAliasedValue added in v0.1.0

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

func (*SQLUtils) EscapeReference added in v0.1.0

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

func (*SQLUtils) EscapeRelation added in v0.1.0

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

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