postgresql

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: MPL-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgreSQLBackend

func NewPostgreSQLBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)

NewPostgreSQLBackend constructs a PostgreSQL backend using the given API client, server address, credentials, and database.

Types

type PostgreSQLBackend

type PostgreSQLBackend struct {
	// contains filtered or unexported fields
}

PostgreSQL Backend is a physical backend that stores data within a PostgreSQL database.

func (*PostgreSQLBackend) Delete

func (m *PostgreSQLBackend) Delete(ctx context.Context, fullPath string) error

Delete is used to permanently delete an entry

func (*PostgreSQLBackend) Get

func (m *PostgreSQLBackend) Get(ctx context.Context, fullPath string) (*physical.Entry, error)

Get is used to fetch and entry.

func (*PostgreSQLBackend) List

func (m *PostgreSQLBackend) List(ctx context.Context, prefix string) ([]string, error)

List is used to list all the keys under a given prefix, up to the next prefix.

func (*PostgreSQLBackend) Put

func (m *PostgreSQLBackend) Put(ctx context.Context, entry *physical.Entry) error

Put is used to insert or update an entry.

Jump to

Keyboard shortcuts

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