postgresdb

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorWalletNotFound     = errors.New("wallet not found")
	ErrWalletAlreadyCreated = errors.New("wallet already created")
	ErrAccountNotFound      = errors.New("account not found")
)
View Source
var (
	ErrTxNotFound = errors.New("transaction not found")
)

Functions

func NewExternalScriptRepositoryPgImpl added in v0.2.0

func NewExternalScriptRepositoryPgImpl(pgxPool *pgxpool.Pool) domain.ExternalScriptRepository

func NewRepoManager

func NewRepoManager(dbConfig DbConfig) (ports.RepoManager, error)

func NewTxRepositoryPgImpl

func NewTxRepositoryPgImpl(
	pgxPool *pgxpool.Pool,
) domain.TransactionRepository

func NewUtxoRepositoryPgImpl

func NewUtxoRepositoryPgImpl(pgxPool *pgxpool.Pool) domain.UtxoRepository

func NewWalletRepositoryPgImpl

func NewWalletRepositoryPgImpl(pgxPool *pgxpool.Pool) domain.WalletRepository

Types

type DbConfig

type DbConfig struct {
	DbUser             string
	DbPassword         string
	DbHost             string
	DbPort             int
	DbName             string
	MigrationSourceURL string
}

Directories

Path Synopsis
sqlc

Jump to

Keyboard shortcuts

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