pub struct VersionedQueryBuilder<V> { /* private fields */ }Expand description
A query builder that targets a specific SurrealDB version.
Created via QueryBuilder::with_version. The version type V is a
zero-sized struct (e.g. SurrealV1 or SurrealV2), so this builder
carries no runtime overhead.
Implementations§
Source§impl<V: VersionedSelect> VersionedQueryBuilder<V>
impl<V: VersionedSelect> VersionedQueryBuilder<V>
pub fn select(self, fields: SelectionFields) -> SelectBuilder<V>
Source§impl<V> VersionedQueryBuilder<V>
impl<V> VersionedQueryBuilder<V>
pub fn delete(self, targets: &str) -> DeleteBuilder
pub fn create(self, targets: &str) -> CreateBuilder
Trait Implementations§
Source§impl<V: Clone> Clone for VersionedQueryBuilder<V>
impl<V: Clone> Clone for VersionedQueryBuilder<V>
Source§fn clone(&self) -> VersionedQueryBuilder<V>
fn clone(&self) -> VersionedQueryBuilder<V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<V: Debug> Debug for VersionedQueryBuilder<V>
impl<V: Debug> Debug for VersionedQueryBuilder<V>
impl<V: Copy> Copy for VersionedQueryBuilder<V>
Auto Trait Implementations§
impl<V> Freeze for VersionedQueryBuilder<V>where
V: Freeze,
impl<V> RefUnwindSafe for VersionedQueryBuilder<V>where
V: RefUnwindSafe,
impl<V> Send for VersionedQueryBuilder<V>where
V: Send,
impl<V> Sync for VersionedQueryBuilder<V>where
V: Sync,
impl<V> Unpin for VersionedQueryBuilder<V>where
V: Unpin,
impl<V> UnsafeUnpin for VersionedQueryBuilder<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for VersionedQueryBuilder<V>where
V: UnwindSafe,
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