pub struct BlockGroupEdgeSelect<'conn> { /* private fields */ }Implementations§
Source§impl<'conn> BlockGroupEdgeSelect<'conn>
impl<'conn> BlockGroupEdgeSelect<'conn>
pub const Id: SelectField<BlockGroupEdge, HashId, HashId>
pub const BlockGroupId: SelectField<BlockGroupEdge, HashId, HashId>
pub const EdgeId: SelectField<BlockGroupEdge, HashId, HashId>
pub const ChromosomeIndex: SelectField<BlockGroupEdge, i64, i64>
pub const Phased: SelectField<BlockGroupEdge, i64, i64>
pub const CreatedOn: SelectField<BlockGroupEdge, i64, i64>
pub fn new(conn: &'conn Connection) -> Self
pub fn with_ref<R, K>(self, history_ref: R) -> Selfwhere
R: IntoHistoryRef<K>,
pub fn id(self, value: HashId) -> Self
pub fn id_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = HashId>,
pub fn block_group_id(self, value: HashId) -> Self
pub fn block_group_id_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = HashId>,
pub fn edge_id(self, value: HashId) -> Self
pub fn edge_id_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = HashId>,
pub fn chromosome_index(self, value: i64) -> Self
pub fn chromosome_index_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = i64>,
pub fn phased(self, value: i64) -> Self
pub fn phased_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = i64>,
pub fn created_on(self, value: i64) -> Self
pub fn created_on_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = i64>,
pub fn order_by<T, JoinType>( self, field: SelectField<BlockGroupEdge, T, JoinType>, direction: Direction, ) -> Self
Sourcepub fn order_by_relevance<T>(
self,
field: SelectField<BlockGroupEdge, T, String>,
search: impl Into<String>,
) -> Self
pub fn order_by_relevance<T>( self, field: SelectField<BlockGroupEdge, T, String>, search: impl Into<String>, ) -> Self
Orders by exact match, case-insensitive exact match, LIKE prefix, then LIKE contains.
Search values are bound parameters; % and _ retain LIKE wildcard semantics.
Case-insensitive equality uses SQL lower (ASCII by default); LIKE follows the
connection’s settings. Case-sensitive equality has the highest priority.
Unmatched rows, including NULL, rank last. Add a _like filter to exclude them,
and chain order_by for deterministic ties. Ordering runs before pagination.
pub fn join_on<SourceType, JoinedModel, JoinedType, JoinType>(
self,
source_field: SelectField<BlockGroupEdge, SourceType, JoinType>,
joined_field: SelectField<JoinedModel, JoinedType, JoinType>,
) -> Selfwhere
JoinedModel: ModelSelectSource,
pub fn join_filtered_on<SourceType, JoinedModel, JoinedType, JoinType>(
self,
source_field: SelectField<BlockGroupEdge, SourceType, JoinType>,
joined_field: SelectField<JoinedModel, JoinedType, JoinType>,
joined: <JoinedModel as ModelSelectSource>::Selector<'conn>,
) -> Selfwhere
JoinedModel: ModelSelectSource,
pub fn only<P>(self, projection: P) -> SelectedFields<Self, P>where
P: SelectProjection,
pub fn models<P>(self) -> SelectedModels<Self, P>where
P: ModelProjection,
pub fn limit(self, limit: u32) -> Self
pub fn offset(self, offset: u32) -> Self
pub fn load(self) -> Result<Vec<BlockGroupEdge>, ModelSelectError>
pub fn get(self) -> Result<Option<BlockGroupEdge>, ModelSelectError>
pub fn get_by_id( self, id: HashId, ) -> Result<Option<BlockGroupEdge>, ModelSelectError>
pub fn query_by_ids<I>(
self,
ids: I,
) -> Result<Vec<BlockGroupEdge>, ModelSelectError>where
I: IntoIterator<Item = HashId>,
pub fn delete_by_ids<I>(self, ids: I) -> Result<usize, ModelSelectError>where
I: IntoIterator<Item = HashId>,
Trait Implementations§
Source§impl<'conn> Clone for BlockGroupEdgeSelect<'conn>
impl<'conn> Clone for BlockGroupEdgeSelect<'conn>
Auto Trait Implementations§
impl<'conn> !RefUnwindSafe for BlockGroupEdgeSelect<'conn>
impl<'conn> !Send for BlockGroupEdgeSelect<'conn>
impl<'conn> !Sync for BlockGroupEdgeSelect<'conn>
impl<'conn> !UnwindSafe for BlockGroupEdgeSelect<'conn>
impl<'conn> Freeze for BlockGroupEdgeSelect<'conn>
impl<'conn> Unpin for BlockGroupEdgeSelect<'conn>
impl<'conn> UnsafeUnpin for BlockGroupEdgeSelect<'conn>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more