Skip to content

Releases: blackbeam/rust-mysql-simple

v25.0.1

21 May 11:12
Compare
Choose a tag to compare

What's Changed

  • rustls: fix NotValidForName error detection by @blackbeam in #375
  • Add pkcs8 and sec1 keys support for rustls TLS backend. by @blackbeam in #381
  • Replace lazy_static & once_cell with std::sync::OnceLock by @serprex in #376

New Contributors

Full Changelog: v25.0.0...v25.0.1

v25.0.0

18 Mar 20:27
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v24.0.0...v25.0.0

v24.0.0

17 May 12:53
0a40252
Compare
Choose a tag to compare

Breaking changes

New features:

  • New FromRow and FromValue derive macros (see mysql_common crate-level docs)
  • mysql_clear_password auth plugin support implemented (opt-in via Opts::enable_cleartext_plugin)
  • COM_CHANGE_USER is now supported (see Conn::change_user and PooledConn::change_user)

Other changes:

  • Pool-related options are moved to the new PoolOpts structure
  • Poll will now reset acquired connections (see blackbeam/mysql_async#240)
  • Conn::reset will now falls back to COM_CHANGE_USER instead of reconnecting
  • thanks to @kornelski, mysql::Result alias is now more user-friendly (see #346)
  • there is a workaround for MySql Bug #92954, that affects MySql <5.7:
    Affected APIs:
    • OptsBuilder::connect_attrs now takes Option<HashMap> - set to None
      to opt-out of connect attrs
    • Opts::get_connect_attrs now returns Option

Auto-generated changelog follows

What's Changed

New Contributors

Full Changelog: v23.0.1...v24.0.0

v23.0.1

10 Dec 14:36
Compare
Choose a tag to compare

What's Changed

  • Fix result set terminator handling in #342 (originally reported for mysql_async by @xudong963)

v23.0.0

18 Nov 07:39
Compare
Choose a tag to compare

What's Changed

Full Changelog: v22.2.0...v23.0.0

v22.2.0

28 Jun 18:29
08110ac
Compare
Choose a tag to compare

What's new

  • @fulara added two new options into the Opts structure & connection URL (see #310):
    • tcp_keepalive_probe_interval_secs – TCP keep alive interval between subsequent probes
    • tcp_keepalive_probe_count – TCP keep alive probe count
  • {Conn, Pool}::new now supports literal URLs.
    Please note, that I accidentally violated the semver here 🙇.

Fixes

Other changes

New Contributors

v22.1.0

16 Feb 16:07
Compare
Choose a tag to compare

What's new

  • @fulara added a way to control TCP_USER_TIMEOUT for a connection using the new tcp_user_timeout option (see #307). Please note that this is only for target_os = "linux".
  • @fulara implemented AsRawFd for Conn (see #307)

Fixes

  • 3c4d4ee fixes the infinite loop in QueryResult, that may be triggered by a connectivity error (reported by @fulara in #306)

Other

  • Conn::drop behavior is now mentioned in the docs (see #308)
  • There is now a test that asserts that TiDB connections are properly reused (see #309)

v22.0.0

29 Dec 15:12
f985535
Compare
Choose a tag to compare

What's new

  • native-tls is now optional (thanks to @TheDutchMC) and the new rustls-based TLS backend added to the library. Please see the "SSL Support" section in the crate docs.
  • now the buffer pool is lock-free and optional (controlled by the buffer-pool feature). Please see the "Buffer Pool" section in the crate docs.

Breaking

  • mysql_common version bumped to 0.28.0, this means that now there is another set of enabled mysql_common features:

    • mysql_common/chrono – disabled due to RUSTSEC-2020-0159
    • mysql_common/time replaced with mysql_common/time03
    • mysql_common/bigdecimal replaced with mysql_common/bigdecimal03
  • chrono, time and uuid reexports are removed

API changes

  • QueryResult::next_set renamed to QueryResult::iter (QueryResult::next_set is still available but deprecated). Docstring is updated to clarify the behavior.

Fixes

  • turns out previous versions wasn't able to properly bind to the specified bind address in some circumstances. This is now fixed.

Internal improvements

Bumped dependenices

v21.0.2

11 Oct 19:16
Compare
Choose a tag to compare

v21.0.1

19 Jul 19:01
Compare
Choose a tag to compare

Fixes a hang in <QueryResult as Iterator>::next.

Fixed