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

Alternative to prepared statements? #17

Open
jonny-rimek opened this issue Nov 5, 2018 · 0 comments
Open

Alternative to prepared statements? #17

jonny-rimek opened this issue Nov 5, 2018 · 0 comments

Comments

@jonny-rimek
Copy link

jonny-rimek commented Nov 5, 2018

As you write here https://github.com/segmentio/go-athena/blob/master/conn.go#L24 Athena doesn't support prepared statements, which is true.

My question is how do I safely build queries where part of the query is user input.

The database/sql package wants us to use prepared satements and doesn't seem to offer any alternative.
I wasn't able to to find anything regarding sql santization/escaping in golang, besides "use sql.Query"

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