postgres

package
v0.0.0-...-a6a5f53 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(ctx context.Context, cfg config.Postgres) (*pgx.Conn, error)

NewConnection sets up a new connection with migrations

Types

type TransactionsRepository

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

TransactionsRepository is the repository of transactions

func NewTransactionRepository

func NewTransactionRepository(conn *pgx.Conn) *TransactionsRepository

NewTransactionRepository returns a transaction repository

func (TransactionsRepository) SaveTransaction

SaveTransaction saves the transaction on DB, returning its auto generated ID in case of success

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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