Allow MySQL connections to specify SSL mode

We'll likely need to add the equivalent of the PG connection string
options sslcert, sslkey, sslrootcert, and sslcrl in order for
`verify-ca` and `verify-identity` to be useful, but that can be a
separate option.

Similar to PG, setting `sslmode=require` appears to require ssl, but
trust that the connection went to the real server. So traffic is
encrypted, but still open to MitM attacks. This is really questionable
behavior, but there are definitely situations out there where a database
requires SSL, but doesn't provide a certificate that can be verified.
4 files changed
tree: 35371791c6dcd60aabba159eba0229dda50b8a5f
  1. bin/
  2. diesel/
  3. diesel_cli/
  4. diesel_codegen/
  5. diesel_compile_tests/
  6. diesel_infer_schema/
  7. diesel_tests/
  8. examples/
  9. migrations/
  10. .appveyor.yml
  11. .editorconfig
  12. .example.env
  13. .gitignore
  14. .travis.yml
  15. Cargo.toml
  16. CHANGELOG.md
  17. clippy.toml
  18. code_of_conduct.md
  19. CONTRIBUTING.md
  20. LICENSE-APACHE
  21. LICENSE-MIT
  22. README.md
README.md

A safe, extensible ORM and Query Builder for Rust

Build Status Appveyor Build Status Gitter Crates.io

Documentation

Homepage

Diesel gets rid of the boilerplate for database interaction and eliminates runtime errors, without sacrificing performance. It takes full advantage of Rust's type system to create a low overhead query builder that “feels like Rust”.

Getting Started

You can find an extensive Getting Started tutorial at http://diesel.rs/guides/getting-started. Guides on more specific features will be coming soon.

Code of conduct

Anyone who interacts with Diesel in any space including but not limited to this GitHub repository is expected to follow our code of conduct

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.