interfaces

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryBuilderStrategy

type QueryBuilderStrategy interface {
	Build(sb *[]byte, q *structs.Query, number int, unions *[]structs.Union) ([]interface{}, error)

	Insert(q *structs.InsertQuery) (string, []interface{}, error)
	InsertBatch(q *structs.InsertQuery) (string, []interface{}, error)
	BuildInsert(q *structs.InsertQuery) (string, []interface{}, error)
	InsertIgnore(q *structs.InsertQuery) (string, []interface{}, error)
	Upsert(q *structs.InsertQuery) (string, []interface{}, error)

	BuildUpdate(q *structs.UpdateQuery) (string, []interface{}, error)

	BuildDelete(q *structs.DeleteQuery) (string, []interface{}, error)
}

type SQLUtils

type SQLUtils interface {
	GetPlaceholder() string
	EscapeIdentifier(sb []byte, value string) []byte
	EscapeIdentifierAliasedValue(sb []byte, value string) []byte
	GetAlias(value string) string
	GetQueryBuilderStrategy() QueryBuilderStrategy
	Dialect() string
}

Jump to

Keyboard shortcuts

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