def join(self, table, one=None,
             operator=None, two=None, type='inner', where=False):
        if isinstance(table, JoinClause):
            self.joins.append(table)
        else:
            if one is None:
                raise ArgumentError('Missing "one" argument')

            join = JoinClause(table, type)

            self.joins.append(join.on(
                one, operator, two, 'and', where
            ))

        return self
Add a join clause to the query
dataset/ETHPy150Open sdispater/orator/orator/query/builder.py/QueryBuilder.join