Lines Matching refs:ActivityModel
676 class ActivityModel : public Model {
678 ActivityModel(DbHandle db) : Model{db} { in ActivityModel() function
682 static std::optional<ActivityModel> SelectById(DbHandle db, int id) { in SelectById()
689 ActivityModel p{db}; in SelectById()
697 static std::optional<ActivityModel> SelectByNameAndPackageId(DbHandle db, in SelectByNameAndPackageId()
705 ActivityModel p{db}; in SelectByNameAndPackageId()
713 static std::vector<ActivityModel> SelectByPackageId(DbHandle db, in SelectByPackageId()
720 std::vector<ActivityModel> activities; in SelectByPackageId()
721 ActivityModel p{db}; in SelectByPackageId()
729 static std::optional<ActivityModel> Insert(DbHandle db, in Insert()
740 ActivityModel p{db}; in Insert()
750 static std::optional<ActivityModel> SelectOrInsert( in SelectOrInsert()
763 std::optional<ActivityModel> activity = in SelectOrInsert()
764 ActivityModel::SelectByNameAndPackageId(db, in SelectOrInsert()
780 inline std::ostream& operator<<(std::ostream& os, const ActivityModel& p) {