db

package
v0.0.0-...-b1e0156 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 6 Imported by: 0

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

func CreateSchema(conn *pg.DB) error

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.

Jump to

Keyboard shortcuts

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