dialect

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 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 DialectProvider

type DialectProvider interface {
	Name() string                   // Название диалекта. / EN: Dialect name.
	QuoteIdent(ident string) string // Экранирование идентификатора. / EN: Identifier quoting.
	Placeholder(pos int) string     // Плейсхолдер для параметра (1-based). / EN: Placeholder for parameter (1-based).
	SupportsReturning() bool        // Поддерживает ли RETURNING. / EN: Whether RETURNING is supported.
}

DialectProvider описывает интерфейс диалекта БД. EN: DialectProvider describes the DB dialect interface.

type PostgreSQLDialect

type PostgreSQLDialect struct{}

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

func (PostgreSQLDialect) Name

func (PostgreSQLDialect) Name() string

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

func (PostgreSQLDialect) Placeholder

func (PostgreSQLDialect) Placeholder(pos int) string

Placeholder возвращает плейсхолдер вида $N для параметра. EN: Placeholder returns a $N-style placeholder for a parameter.

func (PostgreSQLDialect) QuoteIdent

func (PostgreSQLDialect) QuoteIdent(ident string) string

QuoteIdent экранирует идентификатор. EN: QuoteIdent quotes an identifier.

func (PostgreSQLDialect) SupportsReturning

func (PostgreSQLDialect) SupportsReturning() bool

SupportsReturning сообщает, поддерживает ли диалект RETURNING. EN: SupportsReturning reports whether the dialect supports RETURNING.

type SQLiteDialect

type SQLiteDialect struct{}

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

func (SQLiteDialect) Name

func (SQLiteDialect) Name() string

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

func (SQLiteDialect) Placeholder

func (SQLiteDialect) Placeholder(_ int) string

Placeholder возвращает плейсхолдер для параметра. EN: Placeholder returns a placeholder for a parameter.

func (SQLiteDialect) QuoteIdent

func (SQLiteDialect) QuoteIdent(ident string) string

QuoteIdent экранирует идентификатор. EN: QuoteIdent quotes an identifier.

func (SQLiteDialect) SupportsReturning

func (SQLiteDialect) SupportsReturning() bool

SupportsReturning сообщает, поддерживает ли диалект RETURNING. EN: SupportsReturning reports whether the dialect supports RETURNING.

Jump to

Keyboard shortcuts

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