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

How to execute Prepared Statements ? #1254

Closed
goxr3plus opened this issue Oct 3, 2018 · 4 comments
Closed

How to execute Prepared Statements ? #1254

goxr3plus opened this issue Oct 3, 2018 · 4 comments
Labels

Comments

@goxr3plus
Copy link

Very new to this amazing library , jaws dropped .... one only problem.

Reading the documentation with SQLite i can't find out how to use PreparedStatements ...

http://jdbi.org/#_sqlite

Can we have an example please :) ?

@qualidafial
Copy link
Member

qualidafial commented Oct 3, 2018

PreparedStatements are used under the hood for Query, Update, and Batch. If you want to execute the same statement over and over, you're probably looking for Batch

Edit: specifically, PreparedBatch

@goxr3plus
Copy link
Author

Thank you so much :) ? Can i have a small code example /?

@qualidafial
Copy link
Member

Sure. See http://jdbi.org/#_prepared_batches

Also see http://jdbi.org/#__sqlbatch for prepared batches in SQL Objects.

@goxr3plus
Copy link
Author

goxr3plus commented Oct 6, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants