2 ms·
Yes, SQLAlchemy uses tons of magic. But my very point was not to make it traverse object graphs at all. You can write nice SQL using it, with selects, joins, f
by nine_k 9y ago
Yes, SQLAlchemy uses tons of magic.
But my very point was not to make it traverse object graphs at all. You can write nice SQL using it, with selects, joins, functions, etc. All these parts, SQL clauses, are composable, so you can factor out common parts.
Yes, I'm fine working with lists of tuples, not "model objects". Object graphs don't map all to well to the RDBMS model all too well. It's best done on case-by-case basis, if you care about performance at all.