Skip to content

Commit

Permalink
Merge pull request #4231 from insipx/insipx/skip-from-public
Browse files Browse the repository at this point in the history
make `skip_from` public for 3rd party backends
  • Loading branch information
weiznich authored Sep 4, 2024
2 parents de01971 + 18dde87 commit 576f3cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion diesel/src/query_builder/ast_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ where
}
}

#[cfg(feature = "sqlite")]
#[diesel_derives::__diesel_public_if(
feature = "i-implement-a-third-party-backend-and-opt-into-breaking-changes"
)]
#[cfg(any(
feature = "sqlite",
feature = "i-implement-a-third-party-backend-and-opt-into-breaking-changes"
))]
pub(crate) fn skip_from(&mut self, value: bool) {
if let AstPassInternals::ToSql(_, ref mut options) = self.internals {
options.skip_from = value
Expand Down

0 comments on commit 576f3cf

Please sign in to comment.