On Fri, Jun 30, 2017 at 4:31 PM, Seth P <set...@outlook.com> wrote:
> Is there a way (when using declarative) to specify that all the columns of a
> table should use quote=False without specifying it explicitly for each
> column?

Easiest is just to call your own my_column(...) function that sets the
flag as you'd like, but setting quote=False unconditionally is a bad
idea and you shouldn't ever have to do that.   This sounds like you
are communicating with some special database backend for which you'd
be better off building a real dialect for it.


> I've tried setting __table_args__ = { 'quote_schema': False, 'quote': False
> }, but that just affects the schema and table name, not the column name.
>
> --
> 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 post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at https://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

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

Reply via email to