storages

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	DB *sql.DB
}

func New

func New(connstr string) (*Storage, error)

example factory

func (Storage) BeginTx added in v0.25.0

func (p Storage) BeginTx(ctx context.Context) (context.Context, error)

func (Storage) Close

func (p Storage) Close() error

func (Storage) CommitTx added in v0.25.0

func (p Storage) CommitTx(ctx context.Context) error

func (Storage) RollbackTx added in v0.25.0

func (p Storage) RollbackTx(ctx context.Context) error

Jump to

Keyboard shortcuts

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