Skip to content

Allow users to supply a ([FieldInfo] -> RowDecoder a) function for decoding #53

Description

@mzabani

For use cases where the result's fields aren't known at compile time, right now the only way to decode results is to use RowDecoderMonadic, and that's not something I want to recommend. I would rather get rid of it, actually.

The proposition in this ticket would probably address all cases I can think of.

For example, think of a SQL administration tool, like psql itself. It lets users log in and run arbitrary SQL, and it prints query results as a grid regardless of types and number of columns.

We need this feature to allow that kind of tool to be written.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions