Open montu1996 opened 3 weeks ago
It is done automatically, every connection (Conn
) contains cache of prepared statements, if your query contains select
, insert
, update
, delete
or batch
it will be prepared before execution, cached and reused for any query with the sameQuery.stmt
on the same connection (Conn
).
If you feel that it does not match your use case, feel free to outline it and let's start discussion on how to address it.
Also let me know if this implementation is okay with you so that I could close an issue.
Can someone shared how to use prepared statement with golang driver ?