Liking cljdoc? Tell your friends :D

clj-chess.db

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.
raw docstring

create-tables!clj

(create-tables! db-spec)

Given an empty SQLite database, create the database tables.

Given an empty SQLite database, create the database tables.
sourceraw docstring

game-chunksclj

(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.
sourceraw docstring

games-matchingclj

(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.
sourceraw docstring

save-games!clj

(save-games! db-spec games)

Saves a sequence of games to the database.

Saves a sequence of games to the database.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close