postgres

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 4 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{}

func New

func New() *Postgres

func (*Postgres) BuildBulkDelete

func (p *Postgres) BuildBulkDelete(table string, where *ast.WhereClause) dialect.Result

func (*Postgres) BuildBulkInsert

func (p *Postgres) BuildBulkInsert(table string, columns []string, rows [][]any) dialect.Result

func (*Postgres) BuildBulkSoftDelete

func (p *Postgres) BuildBulkSoftDelete(table string, where *ast.WhereClause) dialect.Result

func (*Postgres) BuildBulkUpdate

func (p *Postgres) BuildBulkUpdate(table string, sets []dialect.ColumnValue, where *ast.WhereClause) dialect.Result

func (*Postgres) BuildBulkUpsert

func (p *Postgres) BuildBulkUpsert(table string, columns []string, rows [][]any, conflictCols []string, updateCols []string) dialect.Result

func (*Postgres) BuildDelete

func (p *Postgres) BuildDelete(table string, pkColumn string, pkValue any) dialect.Result

func (*Postgres) BuildInsert

func (p *Postgres) BuildInsert(table string, columns []string, values []any, returningCols []string) dialect.Result

func (*Postgres) BuildSelect

func (p *Postgres) BuildSelect(node ast.SelectNode) dialect.Result

func (*Postgres) BuildSoftDelete

func (p *Postgres) BuildSoftDelete(table string, pkColumn string, pkValue any) dialect.Result

func (*Postgres) BuildUpdate

func (p *Postgres) BuildUpdate(table string, changes []dialect.ColumnValue, pkColumn string, pkValue any) dialect.Result

func (*Postgres) BuildUpdateVersioned

func (p *Postgres) BuildUpdateVersioned(table string, changes []dialect.ColumnValue, pkColumn string, pkValue any, versionCol string, currentVersion int) dialect.Result

func (*Postgres) Explain added in v0.3.0

func (p *Postgres) Explain(query string) (string, bool)

func (*Postgres) Now added in v0.3.0

func (p *Postgres) Now() string

func (*Postgres) SupportsReturning added in v0.3.0

func (p *Postgres) SupportsReturning() bool

Jump to

Keyboard shortcuts

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