rust/hedgewars-server/src/server/database.rs
changeset 15121 1a43b570cbe4
parent 15110 6a8c294f49c9
child 15163 bcb98009ad39
equal deleted inserted replaced
15120:febccab419b1 15121:1a43b570cbe4
    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