postgres

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 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) RenderDelete

func (d Dialect) RenderDelete(table string, where []string, returning []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) RenderSelect

func (d Dialect) RenderSelect(table string, columns []string, where []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)

Jump to

Keyboard shortcuts

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