Hello,

I have pythonic application which imports custom module written in C++ 
using boost::python.
The module creates database connection(s) and executes queries.
The python calls various methods on that module and passes plain SQL into 
them. Results are then returned to python.

I would like to use SQLALchemy Core to generate plain SQL strings which 
will be passed the module.

Lets say I want to generate the following string:

SELECT A, B FROM Tbl WHERE C = "Foo";

The equivalent in SA is:

query = select([
    Tbl.c.A,
    Tbl.c.B
]).where(
    Tbl.c.C == "Foo"
)

How can I produce the string from that query?

-- 
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 http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to