Skip to content

Adds limit and offset clauses for Delete and Update builders in SQLite - #62

Merged
belchior merged 1 commit into
mainfrom
sqlite_adds_limit_offset
Jul 16, 2026
Merged

Adds limit and offset clauses for Delete and Update builders in SQLite#62
belchior merged 1 commit into
mainfrom
sqlite_adds_limit_offset

Conversation

@belchior

@belchior belchior commented Feb 19, 2026

Copy link
Copy Markdown
Owner

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()
    .limit("100")
    .offset("50");
    
  let expected = "LIMIT 100 OFFSET 50";
  assert_eq!(expected, delete.as_string());
}

References

@belchior belchior self-assigned this Feb 19, 2026
@belchior belchior added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 19, 2026
@belchior belchior moved this to In Progress in SQL Query Builder Roadmap Feb 19, 2026
@belchior
belchior force-pushed the sqlite_adds_limit_offset branch from e999dd8 to 3742266 Compare February 20, 2026 21:40
@belchior
belchior merged commit cd3a977 into main Jul 16, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in SQL Query Builder Roadmap Jul 16, 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