Skip to content

Variable (decided at runtime) number of ? substitutions? #263

Description

@michalrus

If I have a query that once takes (a,b) and the other time only (Only a), how to do that?

For the time being, this seems sensible:

newtype ManualToRow = ManualToRow [DB.Action]

instance ToRow ManualToRow where
  toRow = id

But, I think, I’d much rather like to have a possibility to return an empty Action somehow…

Is there anything available already?

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