Skip to content

Generic ORDER BY? #214

Open
Open
@mjs

Description

Is your feature request related to a problem? Please describe.

I am using goqu to build up queries where specific parts of the query come from another process. This has been working wonderfully (goqu is fantastic!) but I've run into a problem with ORDER BY. Unless I'm missing something, there isn't a way to insert a literal ORDER BY section which means I'll probably have to parse the incoming order by string myself so I can generate the required OrderedExpressions. This is doable but ideally I'd prefer not to.

Describe the solution you'd like

Allow for ORDER BY literals, in a similar way that literals are supported elsewhere.

Describe alternatives you've considered

I guess I might be able to modify the SQL after goqu has generated it but that's just gross.

Dialect

  • postgres
  • mysql
  • sqlite3

Additional context

None.

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions