Function get

Source
pub async fn get<'a, E>(executor: E, company_id: i32, id: i32) -> Result<Model>
where E: Executor<'a, Database = Postgres>,
Expand description

Get model by ID.

ยงErrors

Returns error if there was a problem while fetching model.