blackbeam / rust-mysql-simple

Mysql client library implemented in rust.
Apache License 2.0
658 stars 144 forks source link

Explicitly close database connection #308

Closed JakobST1n closed 2 years ago

JakobST1n commented 2 years ago

Hi, I cannot find any documentation on when a connection closes. I see that a pool will stop when it is no longer referenced, but what about "normal" Conn? Is there something like Conn::close that will close the connection? From what I understood from the docs, the method with that signature does not.

blackbeam commented 2 years ago

Oh, sorry. COM_QUIT is executed in impl Drop for Conn. I'll update the docs.