From c7b6d356d8c5505e33695a62cc24055abb3f09a4 Mon Sep 17 00:00:00 2001 From: Hans Dijkema Date: Sun, 28 Jun 2026 23:24:28 +0200 Subject: [PATCH] Documentation updated. --- scrbl/keystore.scrbl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scrbl/keystore.scrbl b/scrbl/keystore.scrbl index c26d16f..c6d0d5d 100644 --- a/scrbl/keystore.scrbl +++ b/scrbl/keystore.scrbl @@ -24,9 +24,12 @@ stringified lowercase form, which allows glob-style queries. Represents an open keystore. The @racket[file] field contains the original argument, @racket[path] is the resolved database path, and @racket[dbh] is the SQLite connection. + +The @tt{keystore?} predicate is altered to also check if the +database connection is (still) valid. } -@section{Opening} +@section{Opening & Closing} @defproc[(ks-open [file (or/c path? string? symbol?)]) keystore?]{ @@ -35,6 +38,12 @@ location is used; otherwise it is interpreted as a filesystem path. The database schema is created automatically if it does not yet exist. } +@defproc[(ks-close [ks keystore?]) boolean?]{ + +Closes the keystore. The keystore handle is invalidated after closing +the underlying storage (database). +} + @section{Basic Operations} @defproc[(ks-set! [ks keystore?] [key any/c] [value any/c]) boolean?]{