(index ("open-db" 0) ("close-db" 569) ("call-with-db" 660))
(def (sig (procedure "(open-db loc #!key (create #t) (exists #t))" (id open-db))) (p "Opens database with path " (tt "loc") " and returns a database object. By default, this method will create the database if it does not exist at " (tt "loc") " and will not error if the database already exists. This behaviour can be modified using the keyword arguments. Setting " (tt "exists") " to " (tt "#f") " will mean an exception occurs if the database already exists. Setting " (tt "create") " to " (tt "#f") " will mean an exception occurs if the database does not exist."))
(def (sig (procedure "(close-db db)" (id close-db))) (p "Closes database " (tt "db") "."))
(def (sig (procedure "(call-with-db loc proc #!key (create #t) (exists #t))" (id call-with-db))) (p "Opens database at " (tt "loc") " and calls (proc db). The database will be closed when proc returns or raises an exception."))
