pgdialect

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct{}

Postgres implements dialect.Dialect. Error classification lives in pack/driver/postgres, not here - see driver.ErrorDecoder.

func New

func New() Postgres

func (Postgres) AlterColumnSQL

func (d Postgres) AlterColumnSQL(table, column string, t reflect.Type, spec dialect.ColumnSpec) (string, error)

func (Postgres) ColumnDefinition

func (d Postgres) ColumnDefinition(t reflect.Type, spec dialect.ColumnSpec) (string, error)

ColumnDefinition implements dialect.DDL.

func (Postgres) ColumnTypesSQL

func (Postgres) ColumnTypesSQL(table string) (string, []any)

func (Postgres) CurrentDatabaseSQL

func (Postgres) CurrentDatabaseSQL() string

func (Postgres) DropIndexSQL

func (d Postgres) DropIndexSQL(_, index string) string

func (Postgres) GetTablesSQL

func (Postgres) GetTablesSQL() (string, []any)

func (Postgres) HasColumnSQL

func (Postgres) HasColumnSQL(table, column string) (string, []any)

func (Postgres) HasConstraintSQL

func (Postgres) HasConstraintSQL(table, name string) (string, []any)

func (Postgres) HasIndexSQL

func (Postgres) HasIndexSQL(table, index string) (string, []any)

func (Postgres) HasTableSQL

func (Postgres) HasTableSQL(table string) (string, []any)

func (Postgres) InlinesPrimaryKey

func (Postgres) InlinesPrimaryKey(dialect.ColumnSpec) bool

func (Postgres) Name

func (Postgres) Name() string

func (Postgres) Placeholder

func (Postgres) Placeholder(n int) string

func (Postgres) QuoteIdent

func (Postgres) QuoteIdent(name string) string

func (Postgres) RenameIndexSQL

func (d Postgres) RenameIndexSQL(_, oldName, newName string) (string, error)

func (Postgres) SupportsILike

func (Postgres) SupportsILike() bool

func (Postgres) SupportsOnConflict

func (Postgres) SupportsOnConflict() bool

func (Postgres) SupportsReturning

func (Postgres) SupportsReturning() bool

func (Postgres) SupportsRowLocking

func (Postgres) SupportsRowLocking() bool

func (Postgres) SupportsSavepoints

func (Postgres) SupportsSavepoints() bool

Jump to

Keyboard shortcuts

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