I believe you have to specify a dialect in order to get the binds presented in the right format.
This is the utility function i use for debugging. you could easily adapt it to return a sqlite statement. https://gist.github.com/jvanasco/69daa58aeb0e921cdbbe that being said -- I don't think you will be able to (reliablly) do what you want in the current release. The values for LIMIT/OFFSET will not appear inline when you compile a statement (through at least 0.9.8). i think there are some issues with certain CTEs as well. To my knowledge, both issues are addressed in the 1.0 release. -- 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.