Skip to content

Releases: blackbeam/rust-mysql-simple

v27.0.0

16 Jan 08:46

Choose a tag to compare

What's Changed

  • Adding MariaDB bulk execution functionality. by @lawrinn in #408
  • Fix PoolConstraints infinite wait when the max value Is zero by @powerumc in #398

Breaking

  • New variants for DriverError enum added:
    • DriverError::Params
    • DriverError::BulkExecute
  • Some variants for DriverError were removed:
    • DriverError::MissingNamedParameter — moved under the new DriverError::Params variant
    • DriverError::NamedParamsForPositionalQuery — moved under the new DriverError::Params variant
  • DriverError no longer implements Eq

New Contributors

Full Changelog: v26.0.1...v27.0.0

v26.0.1

31 Jul 10:16

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v26.0.0...v26.0.1

v26.0.0

21 Jan 10:28

Choose a tag to compare

Breaking

What's Changed

New Contributors

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

v25.0.1

21 May 11:12

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

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

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

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

Choose a tag to compare

What's Changed

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

v22.2.0

28 Jun 18:29
08110ac

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

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)