I am coming from a place where the database designer/administrator gives you a MySQL database already designed with all the tables together with the functions, triggers etc and all you have to do is perform CRUD on the tables.
So i was wondering if there was a way to use sqlachemy to map to the already designed tables and use the sqlachemy methods to perform CRUD on the tables without me having necessarily to create the tables from my python code (because I don't have the permissions to) basically avoiding the step below:
metadata = MetaData()
books = Table('book', metadata,
Column('id', Integer, primary_key=True),
Column('title', String),
Column('primary_author', String),
)
engine = create_engine('sqlite:///bookstore.db')
metadata.create_all(engine)
Note: I am using an sqlite example just to make my point. Thank you