Use case: Proxy external API
q, err := datatable.ExtractQuery(c.OriginalURL(), columns)
if err != nil { /* 400 */ }
filtersJSON, _ := json.Marshal(q.Filters)
sortingJSON, _ := json.Marshal(q.Sorts)
upstream, err := client.List(ctx, upstream.ListParams{
Page: q.NormalizedPage(),
PageSize: q.PageSize,
Filters: string(filtersJSON),
Sorting: string(sortingJSON),
Search: q.Search,
})
Useful when the canonical data store is not Postgres but you still want the same URL contract as the React DataTable.