db

package
v0.0.0-...-684225f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*gorm.DB
}

func New

func New(host, port, user, password, database string) (*DB, error)

func (*DB) CreateAccount

func (db *DB) CreateAccount(account *models.Account) error

func (*DB) FetchAccount

func (db *DB) FetchAccount(id string) (*models.Account, error)

func (*DB) FetchAccountByEmail

func (db *DB) FetchAccountByEmail(email string) (*models.Account, error)

Jump to

Keyboard shortcuts

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