Jdbi: How to execute Prepared Statements ?

Created on 3 Oct 2018  Â·  4Comments  Â·  Source: jdbi/jdbi

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 :) ?

question

All 4 comments

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

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

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

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

Thank you :) :) :)

On Fri, Oct 5, 2018, 01:44 Matthew Hall notifications@github.com wrote:

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

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

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jdbi/jdbi/issues/1254#issuecomment-427193203, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATbiwOc7Dr2CUm5JJUb3WI-JJr9CRsvpks5uho9EgaJpZM4XF4Dh
.

Was this page helpful?
0 / 5 - 0 ratings