postgres

package
v0.0.0-...-1d33cbc Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package postgres contains the official implementation of the PostgreSQL integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB implements the data.DB interface for PostgreSQL databases.

func (*DB) ErrIsDupKey

func (*DB) ErrIsDupKey(e error) bool

ErrIsDupKey says if the error reports a database error indicating that an insert would cause a duplicate key error.

func (*DB) Init

func (d *DB) Init(envVars map[string]string) error

func (*DB) Ping

func (d *DB) Ping() error

Jump to

Keyboard shortcuts

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