Skip to main content

Module model

Module model 

Source
Expand description

Rows (accounts, games, challenges) and their Lichess JSON views.

Structs§

Account
ChallengeRow
GameRow

Constants§

CHALLENGE_SELECT
GAME_SELECT
NO_CLOCK_MS
Lichess sends this for an unlimited game’s clock.

Functions§

account
account_by_name
challenge
challenge_ratings
Current ratings of the challenger and destination, for the challenge’s perf.
ensure_account
The player’s chess account, made on first use from their site name.
full_id_suffix
A stable 4-character suffix for a player’s full game id.
game
game_for_update
Lock the game row for an update (inside a transaction).
new_id
An 8-character id like Lichess’s.
ongoing_games
perfs
rating
user_json
username_from
A Lichess-style username from a display name: letters, digits, _ and -, 2–20 characters.