Documentation updated.

This commit is contained in:
2026-06-28 23:24:28 +02:00
parent 93592fbf28
commit c7b6d356d8
+10 -1
View File
@@ -24,9 +24,12 @@ stringified lowercase form, which allows glob-style queries.
Represents an open keystore. The @racket[file] field contains the Represents an open keystore. The @racket[file] field contains the
original argument, @racket[path] is the resolved database path, and original argument, @racket[path] is the resolved database path, and
@racket[dbh] is the SQLite connection. @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?]{ @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. 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} @section{Basic Operations}
@defproc[(ks-set! [ks keystore?] [key any/c] [value any/c]) boolean?]{ @defproc[(ks-set! [ks keystore?] [key any/c] [value any/c]) boolean?]{