postgres

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQLQueryBuilder

type PostgreSQLQueryBuilder struct {
	base.BaseQueryBuilder
	base.DeleteBaseBuilder
	base.InsertBaseBuilder
	base.UpdateBaseBuilder

	WherePostgreSQLBuilder
	// contains filtered or unexported fields
}

func NewPostgreSQLQueryBuilder

func NewPostgreSQLQueryBuilder() *PostgreSQLQueryBuilder

func (PostgreSQLQueryBuilder) Build

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

Build builds the query.

func (PostgreSQLQueryBuilder) InsertIgnore

func (m PostgreSQLQueryBuilder) InsertIgnore(q *structs.InsertQuery) (string, []interface{}, error)

func (PostgreSQLQueryBuilder) Upsert

func (m PostgreSQLQueryBuilder) Upsert(q *structs.InsertQuery) (string, []interface{}, error)

func (PostgreSQLQueryBuilder) Where

func (m PostgreSQLQueryBuilder) Where(sb *[]byte, conditionGroups []structs.WhereGroup) ([]interface{}, error)

type SQLUtils

type SQLUtils struct {
	// contains filtered or unexported fields
}

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 WherePostgreSQLBuilder

type WherePostgreSQLBuilder struct {
	base.WhereBaseBuilder
	// contains filtered or unexported fields
}

func NewWherePostgreSQLBuilder

func NewWherePostgreSQLBuilder(util interfaces.SQLUtils, wg []structs.WhereGroup) *WherePostgreSQLBuilder

func (*WherePostgreSQLBuilder) ProcessFullText

func (wb *WherePostgreSQLBuilder) ProcessFullText(sb *[]byte, c structs.Where) ([]interface{}, error)

func (*WherePostgreSQLBuilder) ProcessJsonContains

func (wb *WherePostgreSQLBuilder) ProcessJsonContains(sb *[]byte, c structs.Where) []interface{}

func (*WherePostgreSQLBuilder) ProcessJsonLength

func (wb *WherePostgreSQLBuilder) ProcessJsonLength(sb *[]byte, c structs.Where) []interface{}

func (*WherePostgreSQLBuilder) Where

func (wb *WherePostgreSQLBuilder) 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