repositories

package
v0.0.0-...-9dfd10e Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDB

func ClearDB()

ClearDB USE ONLY ON TESTS

Types

type AccountRepository

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

AccountRepository over Postgres

func NewAccountRepository

func NewAccountRepository() *AccountRepository

NewAccountRepository instance a repository using default db connection

func (*AccountRepository) Create

func (repository *AccountRepository) Create(account *models.Account) bool

Create an account instance

func (*AccountRepository) FirstWhere

func (repository *AccountRepository) FirstWhere(query interface{}, args ...interface{}) (*models.Account, bool)

FirstWhere element

Jump to

Keyboard shortcuts

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