postgres

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	orm.DB

	Begin() (Database, error)
	Rollback() error
	Commit() error
}

type Provider

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

func NewProvider

func NewProvider(postgresURL string, logger *zap.Logger) (*Provider, error)

func (*Provider) Close

func (provider *Provider) Close()

func (*Provider) GetClient

func (provider *Provider) GetClient() *pg.DB

func (*Provider) GetDatabase

func (provider *Provider) GetDatabase() Database

func (*Provider) NotifyFail

func (provider *Provider) NotifyFail(ce chan error)

Jump to

Keyboard shortcuts

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