Commit fea02c35 authored by Ronan's avatar Ronan

feat(MainDb): fetch ConferenceParticipantDeviceEvent => OK

parent be18e569
......@@ -312,8 +312,27 @@ MainDb::MainDb () : AbstractDb(*new MainDbPrivate) {}
time_t date,
const string &peerAddress
) const {
// TODO.
return nullptr;
unsigned int notifyId;
string participantAddress;
string gruuAddress;
soci::session *session = dbSession.getBackendSession<soci::session>();
*session << "SELECT notify_id, participant_address_id, gruu_address_id"
" FROM conference_notified_event, conference_participant_event, conference_participant_device_event"
" WHERE conference_participant_device_event.event_id = :eventId"
" AND conference_participant_event.event_id = conference_participant_device_event.event_id"
" AND conference_notified_event.event_id = conference_participant_event.event_id",
soci::into(notifyId), soci::into(participantAddress), soci::into(gruuAddress), soci::use(eventId);
// TODO: Use cache.
return make_shared<ConferenceParticipantDeviceEvent>(
type,
date,
Address(peerAddress),
notifyId,
Address(participantAddress),
Address(gruuAddress)
);
}
shared_ptr<EventLog> MainDbPrivate::selectConferenceSubjectEvent (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment