1 unstable release
0.2.1 | Oct 21, 2023 |
---|
#2782 in Database interfaces
21KB
531 lines
Overview
Simple lib to interact with the code challenge scoreboard DB.
Test
Setup a MySQL test DB called code_challenge. Located on port 3306
export DB_PASS=<password>
cargo test
Usage
Your main interface is the scoreboard module and you should ise it thusly
use scoreboard::ScoreBoard;
let mute scoreboard = Scoreboard::new(scores);
let scoreboard = ScoreBoard::new(scores);
let filters = Builder::new()
.add_filter(Filter::Player(vec!["foo".to_string()]))
.add_filters(Filter::Sort())
.build();
let scores = scoreboard.display(Some(&filters));
Dependencies
~0.4–12MB
~155K SLoC