sqlstore

package
v0.0.0-...-c10f3e6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestDB

func TestDB(t *testing.T, databaseURL string) (*sql.DB, func(...string))

TestStore ...

Types

type Store

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

func New

func New(db *sql.DB) *Store

func (*Store) User

func (s *Store) User() store.UserRepository

type UserRepository

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

UserRepository ...

func (*UserRepository) Create

func (r *UserRepository) Create(u *model.User) error

Create ...

func (*UserRepository) Find

func (r *UserRepository) Find(id int) (*model.User, error)

func (*UserRepository) FindByEmail

func (r *UserRepository) FindByEmail(email string) (*model.User, error)

FindByEmail ...

Jump to

Keyboard shortcuts

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