postgres

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQL

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

func New

func New(cfg *config.Resource) (*PostgreSQL, error)

func (*PostgreSQL) Close added in v1.4.1

func (d *PostgreSQL) Close() error

func (*PostgreSQL) Delete

func (d *PostgreSQL) Delete(tableName string, condition map[string]string) (int, error)

func (*PostgreSQL) Insert

func (d *PostgreSQL) Insert(tableName string, rows []map[string]string) error

func (*PostgreSQL) Open added in v1.4.1

func (d *PostgreSQL) Open() error

func (*PostgreSQL) Ready

func (d *PostgreSQL) Ready() error

func (*PostgreSQL) Reset

func (d *PostgreSQL) Reset() error

func (*PostgreSQL) Select

func (d *PostgreSQL) Select(tableName string, condition map[string]string) ([]map[string]string, error)

Jump to

Keyboard shortcuts

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