Crates.io | ncaa_data_rs |
lib.rs | ncaa_data_rs |
version | 0.2.1 |
source | src |
created_at | 2024-02-11 17:59:05.133498 |
updated_at | 2024-03-21 03:49:40.190614 |
description | Tools for fetching and handling NCAA data for multiple sports. |
homepage | https://gitlab.com/flynneva/ncaa-data-rs.git |
repository | https://gitlab.com/flynneva/ncaa-data-rs.git |
max_upload_size | |
id | 1135984 |
size | 79,705 |
Rust crate for fetching and parsing data from data.ncaa.com. Optionally this crate could also be used to create a postgresql database extension using the same NCAA data structures. This can be useful to collect and store data to do further processing.
Assuming you already have Rust installed, simply clone and install:
git clone git@gitlab.com:flynneva/ncaa-data-rs.git
cd ncaa-data-rs/
cargo install --paths .
After installation you should now have the CLI app ncaa_data_rs
installed:
ncaa_data_rs --help
Which should provide some useful functions / features for you to use.
To build and test:
cd ncaa-data-rs/
cargo build
cargo test
This repository also provides a postgresql extension to make it super easy to create a postgresql database. This extension exposes the custom NCAA data types to the postgresql.
To build the postgresql extension:
cargo pgx init
cargo pgx new ncaa_data_rs
To run the extension, simply specify which postgresql version you want to use:
cargo pgx run pg13
Read more on pgx
in the documentation.