Documentation
¶
Index ¶
- type Postgres
- func (p *Postgres) AdvisoryLockSQL(key int64, mode dialect.AdvisoryLockMode) (dialect.Result, bool)
- func (p *Postgres) BuildBulkDelete(table string, where *ast.WhereClause) dialect.Result
- func (p *Postgres) BuildBulkInsert(table string, columns []string, rows [][]any) dialect.Result
- func (p *Postgres) BuildBulkSoftDelete(table string, where *ast.WhereClause) dialect.Result
- func (p *Postgres) BuildBulkUpdate(table string, sets []dialect.ColumnValue, where *ast.WhereClause) dialect.Result
- func (p *Postgres) BuildBulkUpsert(table string, columns []string, rows [][]any, conflictCols []string, ...) dialect.Result
- func (p *Postgres) BuildDelete(table string, pkColumns []string, pkValues []any) dialect.Result
- func (p *Postgres) BuildDeleteVersioned(table string, pkColumns []string, pkValues []any, versionCol string, ...) dialect.Result
- func (p *Postgres) BuildInsert(table string, columns []string, values []any, returningCols []string) dialect.Result
- func (p *Postgres) BuildSelect(node ast.SelectNode) dialect.Result
- func (p *Postgres) BuildSoftDelete(table string, pkColumns []string, pkValues []any) dialect.Result
- func (p *Postgres) BuildSoftDeleteVersioned(table string, pkColumns []string, pkValues []any, versionCol string, ...) dialect.Result
- func (p *Postgres) BuildUpdate(table string, changes []dialect.ColumnValue, pkColumns []string, ...) dialect.Result
- func (p *Postgres) BuildUpdateVersioned(table string, changes []dialect.ColumnValue, pkColumns []string, ...) dialect.Result
- func (p *Postgres) Explain(query string) (string, bool)
- func (p *Postgres) Name() string
- func (p *Postgres) Now() string
- func (p *Postgres) SupportsReturning() bool
- func (p *Postgres) UsesQuestionPlaceholders() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct{}
func (*Postgres) AdvisoryLockSQL ¶ added in v0.5.0
AdvisoryLockSQL returns the SQL to acquire a transaction-scoped advisory lock. Transaction-scoped locks (pg_advisory_xact_lock) auto-release on commit or rollback, so the runtime never needs an explicit unlock.
func (*Postgres) BuildBulkDelete ¶
func (*Postgres) BuildBulkInsert ¶
func (*Postgres) BuildBulkSoftDelete ¶
func (*Postgres) BuildBulkUpdate ¶
func (p *Postgres) BuildBulkUpdate(table string, sets []dialect.ColumnValue, where *ast.WhereClause) dialect.Result
func (*Postgres) BuildBulkUpsert ¶
func (*Postgres) BuildDelete ¶
func (*Postgres) BuildDeleteVersioned ¶ added in v0.5.0
func (*Postgres) BuildInsert ¶
func (*Postgres) BuildSelect ¶
func (p *Postgres) BuildSelect(node ast.SelectNode) dialect.Result
func (*Postgres) BuildSoftDelete ¶
func (*Postgres) BuildSoftDeleteVersioned ¶ added in v0.5.0
func (*Postgres) BuildUpdate ¶
func (*Postgres) BuildUpdateVersioned ¶
func (*Postgres) SupportsReturning ¶ added in v0.3.0
func (*Postgres) UsesQuestionPlaceholders ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.