Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dolthub/dolt-diesel-getting-started


https://github.com/dolthub/dolt-diesel-getting-started

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

This is a demo of using Diesel ORM with the Dolt database.

Detailed instructions and walkthrough of code in this [blog](https://www.dolthub.com/blog/2024-08-30-dolt-diesel-getting-started/)

# Quick Start
1. Install Dolt, Rust, and Diesel CLI on your system.
2. Clone this repository.
3. Run `dolt sql-server` somewhere
4. `echo "DATABASE_URL=" > .env`
5. Export the MySQL client library path and version
- `export MYSQLCLIENT_LIB_DIR=`
- `export MYSQLCLIENT_VERSION=`
6. `diesel setup`
7. `cargo run`