added equi-join

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@11 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2008-07-17 22:44:26 +07:00
parent 7042bef744
commit d91bafafda
1 changed files with 4 additions and 0 deletions

@ -213,6 +213,10 @@ class relation (object):
if e not in newt.content:
newt.content.append(list(e))
return newt
def equijoin(self,other,expr):
'''Defined as product and then selection with the given expression.'''
return self.product(other).selection(expr)
def outer(self,other):
'''Does a left and a right outer join and returns their union.'''
a=self.outer_right(other)