scoreboard_db

Crates.ioscoreboard_db
lib.rsscoreboard_db
version0.2.1
sourcesrc
created_at2023-10-21 11:48:05.928226
updated_at2023-10-21 11:48:05.928226
descriptionLibrary that provides a database connection for the scoreboard for an in house code challenge server
homepagehttps://github.com/bitbrain-za/scoreboard-db-rs
repositoryhttps://github.com/bitbrain-za/scoreboard-db-rs
max_upload_size
id1009990
size20,339
(bitbrain-za)

documentation

README

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));



Commit count: 36

cargo fmt