[−][src]Trait city_time_zone_sqlite::repos::TraitRepoD01
Required methods
fn d01_insert(
&self,
country: &str,
name: &str,
lat: f32,
lng: f32
) -> Result<String, AppError>
&self,
country: &str,
name: &str,
lat: f32,
lng: f32
) -> Result<String, AppError>
fn d01_search(&self, search: &str) -> Result<Vec<DtoCitys>, AppError>
fn d01_search_compact(
&self,
search: &str
) -> Result<Vec<DtoCitysCompact>, AppError>
&self,
search: &str
) -> Result<Vec<DtoCitysCompact>, AppError>
Implementors
impl TraitRepoD01 for Repo
[src]
fn d01_insert(
&self,
country: &str,
name: &str,
lat: f32,
lng: f32
) -> Result<String, AppError>
[src]
&self,
country: &str,
name: &str,
lat: f32,
lng: f32
) -> Result<String, AppError>
fn d01_search(&self, search: &str) -> Result<Vec<DtoCitys>, AppError>
[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::
fn d01_search_compact(
&self,
search: &str
) -> Result<Vec<DtoCitysCompact>, AppError>
[src]
&self,
search: &str
) -> Result<Vec<DtoCitysCompact>, AppError>
Search for web speed query without unececary field like id -> uuid