Re: [sqlalchemy] How to pass list of columns into query method.

2017-04-05 Thread Mayank Soni
> > Thank you very much . Sure , I will try this -- 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

[sqlalchemy] Re: How to pass list of columns into query method.

2017-04-05 Thread Mayank Soni
Thanks Simon ..it works -- 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

Re: [sqlalchemy] How to pass list of columns into query method.

2017-04-05 Thread Mayank Soni
On Wed, Apr 5, 2017 at 11:10 AM, Mayank Soni <mayank...@gmail.com > > wrote: > > I am trying to pass list of columns of table into query method using > > add_columns method. Below i am mentioning code snipped. > > > > def LLL(): > >

[sqlalchemy] How to pass list of columns into query method.

2017-04-05 Thread Mayank Soni
I am trying to pass list of columns of table into query method using add_columns method. Below i am mentioning code snipped. def LLL(): Base = automap_base() class AAA(Base): __tablename__ = 'schools_master' Base.prepare(engine, reflect=True) session =