postgres

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect struct{}

func New

func New() Dialect

func (Dialect) Capabilities

func (Dialect) Capabilities() dialect.Capabilities

func (Dialect) ColumnDefinition

func (d Dialect) ColumnDefinition(col *schema.Column) (string, error)

func (Dialect) Name

func (Dialect) Name() string

func (Dialect) Placeholder

func (Dialect) Placeholder(i int) string

func (Dialect) QuoteIdent

func (Dialect) QuoteIdent(in string) string

func (Dialect) RenderDefault added in v0.1.1

func (d Dialect) RenderDefault(expr string) (string, error)

func (Dialect) RenderDelete

func (d Dialect) RenderDelete(table string, where []string, returning []string) (string, error)

func (Dialect) RenderDropView added in v0.1.1

func (d Dialect) RenderDropView(view *schema.View) (string, error)

func (Dialect) RenderExpression added in v0.1.1

func (d Dialect) RenderExpression(expr string) (string, error)

func (Dialect) RenderInsert

func (d Dialect) RenderInsert(table string, columns []string, returning []string) (string, error)

func (Dialect) RenderMigration

func (d Dialect) RenderMigration(diff *schema.Diff) ([]string, error)

func (Dialect) RenderOperation

func (d Dialect) RenderOperation(op schema.Operation) (string, error)

func (Dialect) RenderPredicate added in v0.1.1

func (d Dialect) RenderPredicate(left, operator string, right string) (string, error)

func (Dialect) RenderSelect

func (d Dialect) RenderSelect(table string, columns []string, distinct bool, joins []string, where []string, groupBy []string, having []string, orderBy []string, limit, offset *int) (string, error)

func (Dialect) RenderUpdate

func (d Dialect) RenderUpdate(table string, set []string, where []string, returning []string) (string, error)

func (Dialect) RenderView added in v0.1.1

func (d Dialect) RenderView(view *schema.View) (string, error)

Jump to

Keyboard shortcuts

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