Brad Clements wrote:
> On 12 Feb 2004 at 13:10, Michael Hobbs wrote:
> 
> > Consider this example code:
> >   departments = DepartmentTable
> >   employees = EmployeeTable
> >   johnsDepartment = (departments * employees) / 
> >     (employees.dept == departments.dept) /
> >     (employees.name == 'John') %
> >     departments.name
> >   print johnsDepartment[0].name
> 
> Has  anyone tried expressing sql operations as relational 
> algebra statements in Python, 
> like the example above.
> 
> I see lots of talk in google, but no code.
> 
> Is this idea out of fashion already? I can see lots of 
> performance issues.. but it's still 
> interesting to me.

Why is it interesting to you? What benefits do you see over:

john = employees.findfirst(name='john')
print john.Department.name

Granted, the example was simple. Feel free to expand for more meaningful
discussion. I'm interested in why you're interested. ;)


Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
_______________________________________________
DB-SIG maillist  -  DB-SIG@python.org
http://mail.python.org/mailman/listinfo/db-sig

Reply via email to