[][src]Struct city_time_zone_sqlite::Repo

pub struct Repo { /* fields omitted */ }

Trait Implementations

impl TraitRepoD01 for Repo[src]

Search

let d05_recs special because :

https://docs.diesel.rs/diesel/associations/index.html

Associations in Diesel are always child-to-parent. You can declare an association between two records with #[belongs_to]. Unlike other ORMs, Diesel has no concept of #[has_many] -------- Other technics for join belonging_to resut

let d01_rec = d01_citys .limit(5) .load::(&self.connection) .expect("Error query d01_city"); let d05_rec = D05LinkD01D02::belonging_to(&d01_rec) .load::(&self.connection) .expect("Error query d01_city -> d05_link_d01_d02") .grouped_by(&d01_rec); let res = d01_rec.clone().into_iter().zip(d05_rec).collect::<Vec<_>>();

fn d01_search_compact(
    &self,
    search: &str
) -> Result<Vec<DtoCitysCompact>, AppError>
[src]

Search for web speed query without unececary field like id -> uuid

impl TraitRepoD02 for Repo[src]

impl TraitRepoD03 for Repo[src]

fn d03_find_all(&self) -> Result<Vec<D03TimeZoneInfo>, AppError>[src]

Find all d03 records for a list of timezone with offset

impl TraitRepoD04 for Repo[src]

impl TraitRepoD05 for Repo[src]

impl TraitRepoUtils for Repo[src]

Auto Trait Implementations

impl !RefUnwindSafe for Repo

impl Send for Repo

impl !Sync for Repo

impl Unpin for Repo

impl UnwindSafe for Repo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.