Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.