I
I
Ivan Tishchenko2016-11-03 13:40:04
Python
Ivan Tishchenko, 2016-11-03 13:40:04

How to get/change the condition of a Select object in SQLAlchemy?

There is an object obtained by calling sqlalchemy.sql.select
q = select("p1", "p2", "p3").select_from("t1").where(column('p1') == 0)
In order to get a list columns specified in select () I can call q.columns.
To get a list of tables with q.froms joins.
How to get a variable from "q" that will contain the entire list of called conditions?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question