postgres

package
v0.0.0-...-c53624e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectPool

func ConnectPool(conf config.ConfPostgres) (*pgxpool.Pool, error)

ConnectPool connects do Postgres and returns a *pgxPool.Pool.

func NewAccountRepository

func NewAccountRepository(db *pgxpool.Pool) repository.AccountRepository

NewAccountRepository instantiates a new account postgres repository.

func NewTransferRepository

func NewTransferRepository(db *pgxpool.Pool) repository.TransferRepository

NewTransferRepository instantiates a new transfer postgres repository.

func RunMigrations

func RunMigrations(connURL string) error

RunMigrations executes the database migrations all the way up.

Types

This section is empty.

Jump to

Keyboard shortcuts

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