Skip to content

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

Merged
belchior merged 1 commit into
mainfrom
sqlite_adds_order_by
Feb 20, 2026
Merged

Adds order_by statement for Delete and Update builders in SQLite#61
belchior merged 1 commit into
mainfrom
sqlite_adds_order_by

Conversation

@belchior
Copy link
Copy Markdown
Owner

@belchior belchior commented Feb 18, 2026

The clauses limit and offset are behind a flag at SQLite, more info.

Basic API

#[cfg(feature = "sqlite")]
{
  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
@belchior belchior force-pushed the sqlite_adds_order_by branch from 00ee46b to 2dd7467 Compare February 18, 2026 18:58
@belchior belchior moved this to In Progress in SQL Query Builder Roadmap Feb 18, 2026
@belchior belchior force-pushed the sqlite_adds_order_by branch from 2dd7467 to de6fa56 Compare February 19, 2026 14:52
@belchior belchior added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 19, 2026
@belchior belchior merged commit 55b352b into main Feb 20, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in SQL Query Builder Roadmap Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

1 participant