Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dolthub/dolt-diesel-getting-started
https://github.com/dolthub/dolt-diesel-getting-started
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dolthub/dolt-diesel-getting-started
- Owner: dolthub
- License: apache-2.0
- Created: 2024-08-27T23:22:42.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-10-08T14:20:00.000Z (3 months ago)
- Last Synced: 2024-12-31T05:46:17.949Z (3 days ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`