storage

package
v0.0.0-...-6452c0a Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

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

func NewPostgres

func NewPostgres(db *sqlx.DB) *Postgres

func (Postgres) Exec

func (p Postgres) Exec(statement string, args ...interface{}) (err error)

func (Postgres) Find

func (p Postgres) Find(statement string, dest interface{}, args ...interface{}) (err error)

func (Postgres) FindAll

func (p Postgres) FindAll(statement string, dest interface{}, args ...interface{}) (err error)

type PostgresStorage

type PostgresStorage interface {
	Exec(statement string, args ...interface{}) error
	Find(statement string, dest interface{}, args ...interface{}) error
	FindAll(statement string, dest interface{}, args ...interface{}) error
}

Jump to

Keyboard shortcuts

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