swarm-0.6.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.Web.Tournament.Database.Query

Description

SQL Queries for Swarm tournaments.

Synopsis

Documentation

newtype UserId Source #

Constructors

UserId Int 

Instances

Instances details
ToField UserId Source # 
Instance details

Defined in Swarm.Web.Tournament.Database.Query

Methods

toField :: UserId -> SQLData #

data ScenarioPersistence m a Source #

Constructors

ScenarioPersistence 

Fields

Authentication

insertCookie :: UserAlias -> ReaderT Connection IO Text Source #

If the username already exists, overwrite the row.

insertGitHubTokens :: UserAlias -> ReceivedTokens -> ReaderT Connection IO () Source #

If the username already exists, overwrite the row.

Retrieval

lookupScenarioSolution :: Sha1 -> ReaderT Connection IO (Maybe AssociatedSolutionCharacterization) Source #

There should only be one builtin solution for the scenario.

Insertion

Orphan instances