pub async fn get_table_pref(
user_id: i64,
table: &str,
) -> Result<Option<TablePref>, Error>Expand description
gaps2 #11 — read the persisted UI state for (user_id, table).
Returns None when:
- the user has no prefs row yet (NULL
preferencescolumn); - the JSON blob is present but missing
tables.<table>; - the JSON blob is malformed (treated as “no prefs” rather than surfacing a parse error — the next write overwrites with a valid shape).