postgres

package
v0.0.0-...-c30a5bd Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoragePostgres

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

StoragePostgres Implements storage.Storage

func New

func New(postgresURL string) (*StoragePostgres, error)

New create a new StoragePostgres struct

func (*StoragePostgres) ApplyMigrations

func (s *StoragePostgres) ApplyMigrations() error

ApplyMigrations apply migration to the postgres database

func (*StoragePostgres) Connect

func (s *StoragePostgres) Connect() error

Connect connect to the postgres database

func (*StoragePostgres) GetWatchAuctionsItems

func (s *StoragePostgres) GetWatchAuctionsItems(tx *sql.Tx) ([]uint64, error)

GetWatchAuctionsItems return item ids of all items we want to watch at the auction house.g

func (*StoragePostgres) Tx

func (s *StoragePostgres) Tx(fn func(*sql.Tx) error) error

Tx wrapper function for database transactions

Jump to

Keyboard shortcuts

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