Hi All, Some people don't like ORMs and instead use query builders like SQLAlchemy Core (or even raw SQL text) even for something like a CRUD application.
For sake of argument, let's put aside whether or not this is a good idea. I'm just curious how one would go about this without copy and pasting a large amount of functions for every table in your data model. For example if you had two tables, School and Student, you would probably have functions like insert_school, insert_student, update_school, update_student, get_school, get_student, delete_school, delete_student, and etc. where the majority of the implementing code is the same except for the table and field names. Do people who use SQLAlchemy Core as a query builder for CRUD applications simply write out all these functions? Or do they try to create some kind of generic function that can introspect the table? Is there another approach I may not be considering? Thanks and best regards, Matthew Moisen -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/ab775a14-4045-49d4-946a-0adc0ef887ecn%40googlegroups.com.