This project is designed to create a Rust CLI tool that can be used to modify a database that has data from historical projections of the NBA Draft
📦 fan_xu_rust_mini
├─ .devcontainer
│ ├─ Dockerfile
│ └─ devcontainer.json
├─ .github
│ └─ workflows
│ └─ CI.yml
├─ .gitignore
├─ README.md
├─ data
│ └─ historical_projections.csv
└─ sqlite
├─ Cargo.lock
├─ Cargo.toml
├─ Makefile
└─ src
├─ lib.rs
└─ main.rs
©generated by Project Tree Generator
historical_projections.csv contains historical results of the NBA draft projection model, 2001-2015.
The dataset contains the data behind the story Projecting The Top 50 Players In The 2015 NBA Draft Class. It can be accessed here
To use this CLI, first clone this git repo. To install Cargo, use the following command:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Check if the installation was successful with
cargo --version
Once Cargo has been installed, you can compile the file with (make sure you are inside the sqlite directory)
cargo build --release
To begin using the CLI, add the compiled binary with the following command, replacing the path with the location of the sqlite binary file
export PATH=$PATH:/<Path>/sqlite/target/release
Once the compiled binary has been added to your path, you can use the CLI with the following commands:
The CLI allows you to create, load, query, and delete data loaded from historical_projections.csv. Below is an example
https://github.com/nogibjj/fan_xu_individual_2/actions/runs/12330419995/artifacts/2321140322