Skip to content

Releases: blackbeam/rust-mysql-simple

v7.1.2

13 Sep 17:31
Compare
Choose a tag to compare

#64 fixed.

v7.1.1

12 Sep 10:24
Compare
Choose a tag to compare

⚠️ Note that version bumped incorrectly so there is no v7.1.0

Changes (thanks goes to @Diggsey 👍):

  1. utf8mb4 encoding used by default for mysql>=5.5.3.
  2. Support for custom local infile handlers added.

v7.0.1

06 Sep 19:16
Compare
Choose a tag to compare

Numbers now allowed in named parameters names, but name can't start with a number.
:param1 now is a valid named parameter, but :1param still isn't.

v7.0.0

13 Aug 07:14
Compare
Choose a tag to compare

uuid version bumped.

v6.0.0

05 Aug 07:22
Compare
Choose a tag to compare

This release fixes typo in PooledConn::drop() which leads to huge performance regressions for cases where number of acquired PooledConns is greater than pool.min. It also fixes Pool::first_exec signature (mut removed) and adds implementation of From<[u8; 0..32]> for Value.

Also this release adds a bunch of performance improvements as a result of solving #53:

  • Column was rewritten to speedup Column::from_payload and Column::clone(). It affects performance of prepare and prep_exec in all cases.
  • Connectivity check was improved. It affects performance of Pool::prepare and Pool::get_conn.
  • TLS slot for pool connection was added. It removes pool overhead in many cases.
  • A way to turn off connectivity checks, pool-level stmt cache and TLS slot was added. Turning off connectivity checks may speedup batch jobs in cases when Pool::get_conn and Pool::prepare is frequently used.
  • XXHash now used for stmt cache.
  • InnerPool now using VecDeque to store connections.

v5.2.2

12 Jul 19:03
Compare
Choose a tag to compare
  • params! macro was improved so this:

    // ...
    params! {
        foo => my::Value::from("foo"),
        bar => my::Value::from(42),
    }
    // ...

    now could be written like this:

    // ...
    params! {
        foo => "foo",
        bar => 42,
    }
    // ...

v5.2.1

12 Jul 18:59
Compare
Choose a tag to compare
  • The lifetime of a pool is now untied from a Transaction in Pool::start_transaction

v5.2.0

20 Jun 10:51
Compare
Choose a tag to compare
  • first and first_exec shortcuts added to conveniently get first row of a query

  • The lifetime of a pool is now untied from a QueryResult in Pool::prepare and Pool::prep_exec so now you can write this without bc errors:

    pool.prep_exec("SELECT 1", ()).and_then(|result1| {
        pool.prep_exec("SELECT 2", ()).and_then(|result2| {
            // ...
        })
    })

v5.1.0

16 Jun 13:36
Compare
Choose a tag to compare
  • Optional support of UUIDs via "uuid" feature

v5.0.0

22 May 18:28
Compare
Choose a tag to compare

Changes:

  1. Named parameters for prepared statements now supported (docs)

Breaking changes:
1 Few new variants for DriverError enum related to named parameters support.