If its an existing table, you could try reflection -> 
https://docs.sqlalchemy.org/en/latest/core/reflection.html


On Tuesday, February 19, 2019 at 2:43:42 PM UTC+5:30, Akshay Babu wrote:
>
> Hello all,
>
> I'm a beginner so please correct me if I make mistakes.
>
> I'm working on flask-sqlalchemy and I need to access a table given that 
> the table name is stored in a variable. 
>
> Any suggestions on how can it be done?
>
> Thanks.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to