Related is a Ruby relational algebra engine. Define relations, add data to them, and then perform relational algebra operations on them.
When I was learning relational algebra, I had trouble visualizing what my operations were doing, and I had no quick way of testing them out without spinning up a database. Even then, SQL didn't map very directly to the underlying principles I was trying to learn.
Enter Related. Related was written to provide students and others with a quick scratchpad to run relational algebra operations.
Each of Codd's Primitives (selection, projection, cross_product, union, and difference) are implemented, meaning you can in theory perform any operation possible. natural_join is also implemented, and I'll work to add more over time.
Related alternatives and similar gems
Based on the "Utilities" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Related or a related project?