blackbeam/mysql_async

Missing way to drop a statement

weiznich opened this issue · 2 comments

Opts::stmt_cache_size states:

Caveats

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 close Statement on drop on it's own

See weiznich/diesel_async#26 for details

@weiznich, hi.
Please look at Queryable::close.

Thanks
I know that I must missed something 👍