Skip to content
Discussion options

You must be logged in to vote

Hi!

  1. Why is order_by() a mysql-only feature when it' s a standard sql clause used in all databases?

For Select builder you can use the order_by in any database.
For Update and Delete builders, Postgres do not support this statement, SQLite supports but I not prioritize this feature at that time, eventually this feature will be added to the lib.

If you need this statement in SQLite right now you can use the builder.raw_after. Ex:

// SQLite alternative
let query = sql::Delete::new()
  .delete_from("users")
  .where_clause("name = 'foo'")
  .raw_after(sql::DeleteClause::Where,  "order by user_id")
  .as_string();
  1. Why does limit expect a string instead of an integer?

As said in the ses…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by howesteve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #59 on February 18, 2026 11:24.