dialect

package
v0.0.0-...-912f3db Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQLDialect

type PostgreSQLDialect struct{}

func (PostgreSQLDialect) ILIKE

func (PostgreSQLDialect) ILIKE(col string, placeholder string) string

func (PostgreSQLDialect) Name

func (PostgreSQLDialect) Name() string

func (PostgreSQLDialect) OffsetAndLimit

func (PostgreSQLDialect) OffsetAndLimit(offset, limit uint32) string

func (PostgreSQLDialect) Placeholder

func (PostgreSQLDialect) Placeholder(pos int) string

func (PostgreSQLDialect) SupportsReturning

func (PostgreSQLDialect) SupportsReturning() bool

type SQLDialect

type SQLDialect interface {
	Name() string                               // Название диалекта. / EN: Dialect name.
	Placeholder(pos int) string                 // Плейсхолдер для параметра (1-based). / EN: Placeholder for parameter (1-based).
	SupportsReturning() bool                    // Поддерживает ли RETURNING. / EN: Whether RETURNING is supported.
	OffsetAndLimit(offset, limit uint32) string // Строка с Offset и Limit
	ILIKE(col string, placeholder string) string
}

type SQLiteDialect

type SQLiteDialect struct{}

SQLiteDialect реализует диалект SQLite. EN: SQLiteDialect implements the SQLite dialect.

func (SQLiteDialect) ILIKE

func (SQLiteDialect) ILIKE(col string, placeholder string) string

func (SQLiteDialect) Name

func (SQLiteDialect) Name() string

Name возвращает название диалекта. EN: Name returns the dialect name.

func (SQLiteDialect) OffsetAndLimit

func (SQLiteDialect) OffsetAndLimit(offset, limit uint32) string

func (SQLiteDialect) Placeholder

func (SQLiteDialect) Placeholder(_ int) string

func (SQLiteDialect) SupportsReturning

func (SQLiteDialect) SupportsReturning() bool

Jump to

Keyboard shortcuts

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