Skip to content

Create compiled query without parameters #4480

Closed Answered by cpcloud
saschahofmann asked this question in Q&A
Discussion options

You must be logged in to vote

@saschahofmann That is correct, the old "double compile" trick is how you'd do this right now.

Would it be helpful if we added an API (either a kwarg or separate method) to get this version of the string out?

Note that SQLAlchemy doesn't support literal binding for array parameters so there's currently no way to do that at the moment.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@saschahofmann
Comment options

@cpcloud
Comment options

@saschahofmann
Comment options

Answer selected by saschahofmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
ux User experience related issues sqlalchemy SQLAlchemy-based backends compiler Issues or PRs related to compilation
2 participants