Documentation ¶
Index ¶
- func Create(conn repository.Querier, event *model.DbEvent) (*model.DbEvent, error)
- func CreateExtra(conn repository.Querier, event *model.DbEventExtra) error
- func DeleteById(conn repository.Querier, id int) (int, error)
- func DeleteExtraById(conn repository.Querier, id int) (int, error)
- func LoadAll(conn repository.Querier) (ret []*model.DbEvent, err error)
- func LoadById(conn repository.Querier, id int) (*model.DbEvent, error)
- func LoadByKey(conn repository.Querier, eventKey string) (*model.DbEvent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExtra ¶
func CreateExtra(conn repository.Querier, event *model.DbEventExtra) error
func DeleteById ¶
func DeleteById(conn repository.Querier, id int) (int, error)
deletes an entry from the database, returns number of rows deleted.
func DeleteExtraById ¶ added in v0.8.0
func DeleteExtraById(conn repository.Querier, id int) (int, error)
deletes the extra event data, returns number of rows deleted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.