async fn update_player_stats(
    connection: &PgPool,
    player: &Player,
) -> Result<sqlx::postgres::PgDone, sqlx::Error> {
    sqlx::query("UPDATE players SET (games_played, games_won) = ($1, $2) WHERE id = $3;")
        .bind(player.games_played)
        .bind(player.games_won)
        .bind(&player.id)
        .execute(connection)
        .await
}
/// Updates games_played and games_won of the specified Player
///
/// The player is selected by its id field.
///
/// This function assumes that the player is part of the database and does not
/// do a lookup before execution.
Updates games_played and games_won of the specified Player
The player is selected by its id field.

This function assumes that the player is part of the database and does not
do a lookup before execution.
Updates games_played and games_won of the specified Player The player is selected by its id field . This function assumes that the player is part of the database and does not do a lookup before execution .
async fn update_player_stats(
    connection: &PgPool,
    player: &Player,
) -> Result<sqlx::postgres::PgDone, sqlx::Error> {
    sqlx::query("UPDATE players SET (games_played, games_won) = ($1, $2) WHERE id = $3;")
        .bind(player.games_played)
        .bind(player.games_won)
        .bind(&player.id)
        .execute(connection)
        .await
}
async fn update_player_stats ( connection : & PgPool , player : & Player , ) -> Result < sqlx :: postgres :: PgDone , sqlx :: Error > { sqlx :: query ( " " ) . bind ( player . games_played ) . bind ( player . games_won ) . bind ( & player . id ) . execute ( connection ) . await }
Updates games_played and games_won of the specified Player
The player is selected by its id field.
Updates games_played and games_won of the specified Player The player is selected by its id field .
connection
&PgPool
player
&Player
connection
&PgPool
player
&Player