pub struct AccessionNodeSelect<'conn> { /* private fields */ }Implementations§
Source§impl<'conn> AccessionNodeSelect<'conn>
impl<'conn> AccessionNodeSelect<'conn>
pub const Id: SelectField<AccessionNode, HashId, HashId>
pub const AccessionId: SelectField<AccessionNode, HashId, HashId>
pub const NodeId: SelectField<AccessionNode, HashId, HashId>
pub const SequenceStart: SelectField<AccessionNode, i64, i64>
pub const SequenceEnd: SelectField<AccessionNode, i64, i64>
pub const Strand: SelectField<AccessionNode, Strand, Strand>
pub const IndexInPath: SelectField<AccessionNode, 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 accession_id(self, value: HashId) -> Self
pub fn accession_id_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = HashId>,
pub fn node_id(self, value: HashId) -> Self
pub fn node_id_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = HashId>,
pub fn sequence_start(self, value: i64) -> Self
pub fn sequence_start_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = i64>,
pub fn sequence_end(self, value: i64) -> Self
pub fn sequence_end_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = i64>,
pub fn strand(self, value: Strand) -> Self
pub fn strand_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = Strand>,
pub fn index_in_path(self, value: i64) -> Self
pub fn index_in_path_in<I>(self, values: I) -> Selfwhere
I: IntoIterator<Item = i64>,
pub fn order_by<T, JoinType>( self, field: SelectField<AccessionNode, T, JoinType>, direction: Direction, ) -> Self
Sourcepub fn order_by_relevance<T>(
self,
field: SelectField<AccessionNode, T, String>,
search: impl Into<String>,
) -> Self
pub fn order_by_relevance<T>( self, field: SelectField<AccessionNode, 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<AccessionNode, SourceType, JoinType>,
joined_field: SelectField<JoinedModel, JoinedType, JoinType>,
) -> Selfwhere
JoinedModel: ModelSelectSource,
pub fn join_filtered_on<SourceType, JoinedModel, JoinedType, JoinType>(
self,
source_field: SelectField<AccessionNode, 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<AccessionNode>, ModelSelectError>
pub fn get(self) -> Result<Option<AccessionNode>, ModelSelectError>
pub fn get_by_id( self, id: HashId, ) -> Result<Option<AccessionNode>, ModelSelectError>
pub fn query_by_ids<I>(
self,
ids: I,
) -> Result<Vec<AccessionNode>, 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 AccessionNodeSelect<'conn>
impl<'conn> Clone for AccessionNodeSelect<'conn>
Source§fn clone(&self) -> AccessionNodeSelect<'conn>
fn clone(&self) -> AccessionNodeSelect<'conn>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'conn> !RefUnwindSafe for AccessionNodeSelect<'conn>
impl<'conn> !Send for AccessionNodeSelect<'conn>
impl<'conn> !Sync for AccessionNodeSelect<'conn>
impl<'conn> !UnwindSafe for AccessionNodeSelect<'conn>
impl<'conn> Freeze for AccessionNodeSelect<'conn>
impl<'conn> Unpin for AccessionNodeSelect<'conn>
impl<'conn> UnsafeUnpin for AccessionNodeSelect<'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
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