fn children_uniform(
        &self,
        sort_key: &SortKey,
        block: BlockNumber,
        out: &mut AstPass<Pg>,
    ) -> QueryResult<()> {
        out.push_sql("select '");
        out.push_sql(self.table.object.as_str());
        out.push_sql("' as entity, c.id, c.vid, ");
        self.parent_id(out)?;
        sort_key.select(out)?;
        self.from_clause(out)?;
        out.push_sql("\n where ");
        self.where_clause(block, out)?;
        if let Some(filter) = &self.query_filter {
            out.push_sql("\n   and ");
            filter.walk_ast(out.reborrow())?
        }
        Ok(())
    }
/// Select a basic subset of columns from the child table for use in
/// the `matches` CTE of queries that need to retrieve entities of
/// different types or entities that link differently to their parents
Select a basic subset of columns from the child table for use in
the `matches` CTE of queries that need to retrieve entities of
different types or entities that link differently to their parents
Select a basic subset of columns from the child table for use in the ` matches ` CTE of queries that need to retrieve entities of different types or entities that link differently to their parents
fn children_uniform(
        &self,
        sort_key: &SortKey,
        block: BlockNumber,
        out: &mut AstPass<Pg>,
    ) -> QueryResult<()> {
        out.push_sql("select '");
        out.push_sql(self.table.object.as_str());
        out.push_sql("' as entity, c.id, c.vid, ");
        self.parent_id(out)?;
        sort_key.select(out)?;
        self.from_clause(out)?;
        out.push_sql("\n where ");
        self.where_clause(block, out)?;
        if let Some(filter) = &self.query_filter {
            out.push_sql("\n   and ");
            filter.walk_ast(out.reborrow())?
        }
        Ok(())
    }
fn children_uniform ( & self , sort_key : & SortKey , block : BlockNumber , out : & mut AstPass < Pg > , ) -> QueryResult < ( ) > { out . push_sql ( " " ) ; out . push_sql ( self . table . object . as_str ( ) ) ; out . push_sql ( " " ) ; self . parent_id ( out ) ? ; sort_key . select ( out ) ? ; self . from_clause ( out ) ? ; out . push_sql ( " \n " ) ; self . where_clause ( block , out ) ? ; if let Some ( filter ) = & self . query_filter { out . push_sql ( " \n " ) ; filter . walk_ast ( out . reborrow ( ) ) ? } Ok ( ( ) ) }
Select a basic subset of columns from the child table for use in
the `matches` CTE of queries that need to retrieve entities of
different types or entities that link differently to their parents
Select a basic subset of columns from the child table for use in the ` matches ` CTE of queries that need to retrieve entities of different types or entities that link differently to their parents
&self
sort_key
&SortKey
block
BlockNumber
out
&mut AstPass<Pg>
&self
sort_key
&SortKey
block
BlockNumber
out
&mut AstPass<Pg>