repo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocationRepo

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

func NewLocationRepo

func NewLocationRepo(db *sql.DB) *LocationRepo

func (LocationRepo) AddLocation

func (r LocationRepo) AddLocation(loc *model.Location) (int64, int64, error)

func (LocationRepo) ChangeLocation

func (r LocationRepo) ChangeLocation(loc *model.Location) (int64, error)

func (LocationRepo) CreatePerson

func (r LocationRepo) CreatePerson(firstName string, lastName string) (int64, error)

func (LocationRepo) DeleteLocation

func (r LocationRepo) DeleteLocation(id int64) error

func (LocationRepo) ExistsLocation

func (r LocationRepo) ExistsLocation(id int64) (bool, error)

func (LocationRepo) GetDeletedLocationIdsByDeletionTime

func (r LocationRepo) GetDeletedLocationIdsByDeletionTime(dt int64) ([]int64, error)

func (LocationRepo) GetLocation

func (r LocationRepo) GetLocation(id int64) (*model.Location, error)

func (LocationRepo) GetLocations

func (r LocationRepo) GetLocations() ([]*model.Location, error)

func (LocationRepo) GetLocationsByChangeTime

func (r LocationRepo) GetLocationsByChangeTime(ct int64) ([]*model.Location, error)

func (LocationRepo) GetPersonId

func (r LocationRepo) GetPersonId(firstName string, lastName string) (int64, error)

type Scanner

type Scanner interface {
	Scan(dest ...interface{}) error
}

Jump to

Keyboard shortcuts

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