storage

package
v0.0.0-...-4784d17 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 5 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 interface {
	QueryRow(query string, params ...interface{}) *sql.Row
	Exec(query string, params ...interface{}) error
	QueryOne(dest interface{}, query string, params ...interface{}) error
	QueryAll(dest interface{}, query string, params ...interface{}) error
	Close() error
}

func NewPgxStorage

func NewPgxStorage(dsn string, maxIdleConns, maxOpenConns int, connMaxLifetime time.Duration) (Storage, error)

Jump to

Keyboard shortcuts

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