storage

package
v0.0.0-...-38b8751 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 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 ExectStmt

type ExectStmt func(*sql.Tx) error

type StorageRepository

type StorageRepository interface {
	Raw(sql string, values ...interface{}) (*sql.Rows, error)
	DoTransaction(fnStmt ExectStmt) error
	Exec(query string, args ...interface{}) (sql.Result, error)
}

func NewPostgreStorage

func NewPostgreStorage(settings settings.PostgresSettings) StorageRepository

func NewPostgres

func NewPostgres() StorageRepository

Jump to

Keyboard shortcuts

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