Missing way to drop a statement
weiznich opened this issue · 2 comments
weiznich commented
Opts::stmt_cache_size
states:
If statement cache is disabled (stmt_cache_size is 0), then you must close statements manually.
Statement
does not expose any method to close an created statement. This can easily lead to situations where the user exhausts the maximal number of prepared statements on configured on the database itself.
I would like to clarify if:
- The linked documentation is correct
- This a corresponding method is just missing from
Statement
(and it's up to the user to call it) mysql_async
should automatically closeStatement
on drop on it's own
See weiznich/diesel_async#26 for details
blackbeam commented
@weiznich, hi.
Please look at Queryable::close.
weiznich commented
Thanks
I know that I must missed something 👍