public async Task <IEnumerable <LightKey> > GetAll(int limit = 1000) => await _driver.QueryAsync <LightKey>("SELECT DISTINCT light_name FROM light_total_duration_by_light_name", limit);
Exemplo n.º 2
0
 public async Task <IEnumerable <LightSession> > GetRecentByLightName(string lightName, int limit = 100) => await _driver.QueryAsync <LightSession>("FROM light_sessions_by_light_name WHERE light_name = ?", limit, lightName);
Exemplo n.º 3
0
 public async Task <IEnumerable <LightSummary> > GetRecentByLightName(string lightName, int limit = 100) => await _driver.QueryAsync <LightSummary>("FROM light_total_duration_by_light_name WHERE light_name = ?", limit, lightName);