SQLite based chess database functions.
WARNING: This code is still under construction, and shouldn't be used yet.
SQLite based chess database functions. WARNING: This code is still under construction, and shouldn't be used yet.
(create-tables! db-spec)
Given an empty SQLite database, create the database tables.
Given an empty SQLite database, create the database tables.
(game-chunks db-spec & [chunk-size skip])
Returns a lazy sequence of chunks of games, chunk-size
at a time,
contained in the database. Assumes that the games in the database have
contiguous IDs starting from 1.
Returns a lazy sequence of chunks of games, `chunk-size` at a time, contained in the database. Assumes that the games in the database have contiguous IDs starting from 1.
(games-matching db-spec query)
Returns all games matching the given SQL query in the database.
Returns all games matching the given SQL query in the database.
(save-games! db-spec games)
Saves a sequence of games to the database.
Saves a sequence of games to the database.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close