1module util 2 3import db.pg 4 5@[inline] 6pub fn get_row_col(res pg.Result, row pg.Row, key string) ?string { 7 return row.vals[res.cols[key]] 8} 9 10@[inline] 11pub fn get_row_col_or_throw(res pg.Result, row pg.Row, key string) string { 12 return util.or_throw(row.vals[res.cols[key]]) 13}