postgresql

package
v0.0.0-...-bffa35e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountRepository

func NewAccountRepository(p *Pool) coins.AccountRepository

func NewPaymentsRepository

func NewPaymentsRepository(p *Pool) coins.PaymentRepository

Types

type Pool

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

Pool - connection to db

func NewPool

func NewPool(dbURL string) (*Pool, error)

NewPool returns a new instance of the db pool.

func (*Pool) Begin

func (p *Pool) Begin() (transactions.ITransaction, error)

Begin starts a new db transaction

func (*Pool) Close

func (p *Pool) Close() error

Close close db connection

Jump to

Keyboard shortcuts

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