mysql 7.0.0

Mysql client library implemented in rust
Documentation

rust-mysql-simple

Build Status Build status

Mysql client library implemented in rust. Feel free to open a new issues and pull requests.

Changelog

Available here

Documentation

Latest crate API docs hosted here.

Installation

Please use crates.io

[dependencies]
mysql = "*"

rust-mysql-simple offer support of SSL via ssl cargo feature which is enabled by default. If you have no plans to use SSL, then you should disable that feature to not to depend on rust-openssl:

[dependencies.mysql]
version = "*"
default-features = false
features = ["socket"]

Windows support (since 0.18.0)

Currently rust-mysql-simple have no support of SSL on windows. To use crate on Windows you have to disable default features.

[dependencies.mysql]
version = "*"
default-features = false
features = ["pipe"]

Optional features

You can compile rust-mysql-simple with the uuid feature, which makes it possible to use UUIDs with MySQL conveniently.

The uuid feature depends on the uuid crate and UUIDs are assumed to be binary encoded in MySQL. So make sure that your MySQL fields are binary(16).

To activate the uuid feature, add it to the features list:

[dependencies]
mysql = { version = "*", features = ["uuid"] }

Simple example