postgres

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Quote

func Quote(name string) string

Quote quotes the given Postgres identifier

https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS

The implmentation is from pq.QuoteIdentifer(). It's copied to avoid a dependency on pq.

Types

type Savepointer

type Savepointer struct{}

Savepointer implements the savepointers.Savepointer interface for Postgres

func (Savepointer) Create

func (sp Savepointer) Create(name string) string

Create creates a new savepoint with the given name

https://www.postgresql.org/docs/current/sql-savepoint.html

func (Savepointer) Release

func (sp Savepointer) Release(name string) string

Release releases the named savepoint

https://www.postgresql.org/docs/current/sql-release-savepoint.html

func (Savepointer) Rollback

func (sp Savepointer) Rollback(name string) string

Rollback rollsback the named savepoint

https://www.postgresql.org/docs/current/sql-rollback-to.html

Jump to

Keyboard shortcuts

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