let (local_user, person, counts) = local_user::table
.find(local_user_id)
.inner_join(person::table)
let (local_user, person, counts) = local_user::table
.find(local_user_id)
.inner_join(person::table)
let (local_user, person, counts) = local_user::table
.filter(person::id.eq(person_id))
.inner_join(person::table)
let (local_user, person, counts) = local_user::table
.filter(person::id.eq(person_id))
.inner_join(person::table)
let (local_user, person, counts) = local_user::table
.filter(person::name.eq(name))
.inner_join(person::table)
let (local_user, person, counts) = local_user::table
.filter(person::name.eq(name))
.inner_join(person::table)
- pub fn find_by_email_or_name(conn: &PgConnection, name_or_email: &str) -> Result<Self, Error> {
+ pub fn find_by_email_or_name(
+ conn: &mut PgConnection,
+ name_or_email: &str,
+ ) -> Result<Self, Error> {
let (local_user, person, counts) = local_user::table
.inner_join(person::table)
.inner_join(person_aggregates::table.on(person::id.eq(person_aggregates::person_id)))
let (local_user, person, counts) = local_user::table
.inner_join(person::table)
.inner_join(person_aggregates::table.on(person::id.eq(person_aggregates::person_id)))
let (local_user, person, counts) = local_user::table
.inner_join(person::table)
.inner_join(person_aggregates::table.on(person::id.eq(person_aggregates::person_id)))
let (local_user, person, counts) = local_user::table
.inner_join(person::table)
.inner_join(person_aggregates::table.on(person::id.eq(person_aggregates::person_id)))
type LocalUserSettingsViewTuple = (LocalUserSettings, PersonSafe, PersonAggregates);
impl LocalUserSettingsView {
type LocalUserSettingsViewTuple = (LocalUserSettings, PersonSafe, PersonAggregates);
impl LocalUserSettingsView {
let (local_user, person, counts) = local_user::table
.find(local_user_id)
.inner_join(person::table)
let (local_user, person, counts) = local_user::table
.find(local_user_id)
.inner_join(person::table)