Documentation
¶
Index ¶
- type LocationRepo
- func (r LocationRepo) AddLocation(loc *model.Location) (int64, int64, error)
- func (r LocationRepo) ChangeLocation(loc *model.Location) (int64, error)
- func (r LocationRepo) CreatePerson(firstName string, lastName string) (int64, error)
- func (r LocationRepo) DeleteLocation(id int64) error
- func (r LocationRepo) ExistsLocation(id int64) (bool, error)
- func (r LocationRepo) GetDeletedLocationIdsByDeletionTime(dt int64) ([]int64, error)
- func (r LocationRepo) GetLocation(id int64) (*model.Location, error)
- func (r LocationRepo) GetLocations() ([]*model.Location, error)
- func (r LocationRepo) GetLocationsByChangeTime(ct int64) ([]*model.Location, error)
- func (r LocationRepo) GetPersonId(firstName string, lastName string) (int64, error)
- type Scanner
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 (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)
Click to show internal directories.
Click to hide internal directories.