sqlstore

package
v0.0.0-...-21f6b13 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT 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))

TestDB ...

Types

type Store

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

Store ...

func New

func New(db *sql.DB) *Store

New ...

func (*Store) User

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

User ...

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)

Find ...

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