Logo Search packages:      
Sourcecode: sqlalchemy version File versions  Download package

def sqlalchemy::sql::expression::FromClause::correspond_on_equivalents (   self,
  column,
  equivalents 
) [inherited]

Return corresponding_column for the given column, or if None
search for a match in the given dictionary.

Definition at line 1981 of file expression.py.

01981                                                             :
        """Return corresponding_column for the given column, or if None
        search for a match in the given dictionary.
        
        """
        col = self.corresponding_column(column, require_embedded=True)
        if col is None and col in equivalents:
            for equiv in equivalents[col]:
                nc = self.corresponding_column(equiv, require_embedded=True)
                if nc:
                    return nc
        return col

    def corresponding_column(self, column, require_embedded=False):


Generated by  Doxygen 1.6.0   Back to index