equal
deleted
inserted
replaced
18 VALUES |
18 VALUES |
19 (:players, :rooms, UNIX_TIMESTAMP())"; |
19 (:players, :rooms, UNIX_TIMESTAMP())"; |
20 |
20 |
21 const GET_REPLAY_NAME_QUERY: &str = r"SELECT filename FROM achievements WHERE id = :id"; |
21 const GET_REPLAY_NAME_QUERY: &str = r"SELECT filename FROM achievements WHERE id = :id"; |
22 |
22 |
23 struct ServerStatistics { |
23 pub struct ServerStatistics { |
24 rooms: u32, |
24 rooms: u32, |
25 players: u32, |
25 players: u32, |
26 } |
26 } |
27 |
27 |
28 struct Achievements {} |
28 pub struct Achievements {} |
29 |
29 |
30 pub struct Database { |
30 pub struct Database { |
31 pool: Option<mysql::Pool>, |
31 pool: Option<mysql::Pool>, |
32 } |
32 } |
33 |
33 |