Skip to content

Adds order_by statement for Delete and Update builders in SQLite#61

Open
belchior wants to merge 1 commit intomainfrom
sqlite_adds_order_by
Open

Adds order_by statement for Delete and Update builders in SQLite#61
belchior wants to merge 1 commit intomainfrom
sqlite_adds_order_by

Conversation

@belchior
Copy link
Owner

@belchior belchior commented Feb 18, 2026

For crate feature sqlite you should enable this statement at SQLite before use in this library, more info

Basic API

#[cfg(any(feature = "sqlite", feature = "mysql"))]
{
  use sql_query_builder as sql;
  
  let delete = sql::Delete::new()
    .order_by("created_at asc");
    
  let expected = "ORDER BY created_at asc";
  assert_eq!(expected, delete.as_string());
}

References

@belchior belchior self-assigned this Feb 18, 2026
@belchior belchior changed the title Adds order_by statement for Delete and Update builders for SQLite Adds order_by statement for Delete and Update builders in SQLite Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant

Comments