Skip to main content

Module mysql_like

Module mysql_like 

Source
Available on crate features mariadb_backend or mysql_backend only.
Expand description

Provides shared types and functions related to working with MySQL and MariaDB

Modules§

data_types
Data structures for MySQL types which have no corresponding Rust type
sql_types
MySQL specific sql types

Structs§

MysqlLikeConnectionmariadb or mysql
A connection to a MySQL database. Connection URLs should be in the form mysql://[user[:password]@]host/database_name[?unix_socket=socket-path&ssl_mode=SSL_MODE*&ssl_ca=/etc/ssl/certs/ca-certificates.crt&ssl_cert=/etc/ssl/certs/client-cert.crt&ssl_key=/etc/ssl/certs/client-key.crt]
MysqlValue
Raw mysql value as received from the database

Enums§

MysqlType
Represents possible types, that can be transmitted as via the Mysql wire protocol
NumericRepresentation
Represents all possible forms MySQL transmits integers

Traits§

MysqlLikeBackend
A trait for backends which implement the MySQL wire protocol. This is implemented for both MySQL and MariaDB, and can be used when writing code that is compatible with both backends.