added equi-join
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@11 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
7042bef744
commit
d91bafafda
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user