Hello,

I am generating Oracle PLSQL using sqlalchemy core.

I would like to generate the following output:

SELECT foo, bar
BULK COLLECT INTO l_foos
FROM baz;

Is there a mechanism to insert a string after the select column list and 
before the FROM?

In sql/compiler.py:visit_select 
(https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/sql/compiler.py#L3188)
 
I do not see a way to hook into this specific spot via compiler 
customizations, unless I am missing something.

I suppose I can simply do `query_str.replace('FROM', 'BULK COLLECT INTO 
l_foos FROM', 1) but I was hoping to make a nice API via a compiler 
customization.

Thanks and best regards,

Matthew


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/8e55ea83-2396-4cda-972a-f011d6000c6an%40googlegroups.com.

Reply via email to