Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sqlalchemy style parameterized queries #37

Open
andharris opened this issue Jan 16, 2019 · 0 comments
Open

Support sqlalchemy style parameterized queries #37

andharris opened this issue Jan 16, 2019 · 0 comments

Comments

@andharris
Copy link

I would like to be able to use the sqlalchemy style parameterized queries within this dialect.

from sqlalchemy import text

result = connection.execute(text("SELECT * FROM users WHERE id = :user_id"), user_id=12)

It seems the current implementation only supports pyformat style

result = connection.execute("SELECT * FROM users WHERE id = %(user_id)s", user_id=12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant