MCPcopy Create free account
hub / github.com/actix/examples / get_rows_as_month_agg

Function get_rows_as_month_agg

databases/sqlite/src/db.rs:114–124  ·  view source on GitHub ↗
(mut statement: Statement)

Source from the content-addressed store, hash-verified

112}
113
114fn get_rows_as_month_agg(mut statement: Statement) -> WeatherAggResult {
115 statement
116 .query_map([], |row| {
117 Ok(WeatherAgg::MonthAgg {
118 year: row.get(0)?,
119 month: row.get(1)?,
120 total: row.get(2)?,
121 })
122 })
123 .and_then(Iterator::collect)
124}

Callers 2

get_hottest_monthsFunction · 0.85
get_coldest_monthsFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected