Documentation ¶
Overview ¶
Package db provide PostgreSQL storage for application data repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSchema ¶
CreateSchema creating schema if its not exist. Without any migrations mechanic, just schema only.
func NewAccountRepository ¶
func NewAccountRepository(conn *pg.DB) account.Repository
NewAccountRepository returns a new instance of a PostgreSQL account repository.
func NewPaymentRepository ¶
func NewPaymentRepository(conn *pg.DB, accounts account.Repository) payment.Repository
NewPaymentRepository returns a new instance of a PostgreSQL payment repository.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.