pub struct PlaceholderGen { /* private fields */ }Expand description
Hands out positional bind placeholders in sequence (?1/$1, ?2/$2, …)
for the given dialect, so a query builder doesn’t track indices by hand.
Implementations§
Source§impl PlaceholderGen
impl PlaceholderGen
Sourcepub fn new(dialect: SqlDialect) -> Self
pub fn new(dialect: SqlDialect) -> Self
Start a generator for dialect; the first placeholder is number 1.
Sourcepub fn next_placeholder(&mut self) -> String
pub fn next_placeholder(&mut self) -> String
Render the next placeholder and advance the counter.
Auto Trait Implementations§
impl Freeze for PlaceholderGen
impl RefUnwindSafe for PlaceholderGen
impl Send for PlaceholderGen
impl Sync for PlaceholderGen
impl Unpin for PlaceholderGen
impl UnsafeUnpin for PlaceholderGen
impl UnwindSafe for PlaceholderGen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more