Documentation ¶
Overview ¶
Package postgres provides PostgreSQL repository
Package postgres provides PostgreSQL repository
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountRepository ¶
func NewAccountRepository(conn *Connection) coins.AccountRepository
NewAccountRepository returns a new instance of a PostgreSQL account repository.
func NewPaymentRepository ¶
func NewPaymentRepository(conn *Connection) coins.PaymentRepository
NewPaymentRepository returns new payment repository
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection holds a storage connection
func NewConnection ¶
func NewConnection(dataSourceName string) (*Connection, error)
NewConnection opens new connection to Postgres database
func (*Connection) Begin ¶
func (c *Connection) Begin() (tx coins.Transaction, err error)
Begin starts a new transaction
Click to show internal directories.
Click to hide internal directories.