This is a demo of using Diesel ORM with the Dolt database.
Detailed instructions and walkthrough of code in this blog
- Install Dolt, Rust, and Diesel CLI on your system.
- Clone this repository.
- Run
dolt sql-server
somewhere echo "DATABASE_URL=<db_connection_string>" > .env
- Export the MySQL client library path and version
export MYSQLCLIENT_LIB_DIR=<path_to_mysql_lib>
export MYSQLCLIENT_VERSION=<mysql_version>
diesel setup
cargo run