From d91bafafda99194ee4f58cec759ccff194874c17 Mon Sep 17 00:00:00 2001 From: LtWorf Date: Thu, 17 Jul 2008 22:44:26 +0000 Subject: [PATCH] added equi-join git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@11 014f5005-505e-4b48-8d0a-63407b615a7c --- relation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/relation.py b/relation.py index 62e005f..6e70f72 100644 --- a/relation.py +++ b/relation.py @@ -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)