Skip to content

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

Open
belchior wants to merge 1 commit into
mainfrom
sqlite_adds_limit_offset
Open

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

Conversation

@belchior
Copy link
Copy Markdown
Owner

@belchior belchior commented Feb 19, 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()
    .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
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

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant