keystore? exported

This commit is contained in:
2026-08-31 16:47:27 +02:00
parent 966fbfa659
commit 799f28bbd4
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@
ks-end-transaction ks-end-transaction
ks-abort-transaction ks-abort-transaction
ks-with-lock ks-with-lock
keystore?
) )
(define (any? a) #t) (define (any? a) #t)
+10
View File
@@ -36,6 +36,16 @@ The @tt{keystore?} predicate is altered to also check if the
database connection is (still) valid. database connection is (still) valid.
} }
@defproc[(keystore? [ks any/c]) boolean?]{
Returns #t, if ks is a valid keystore.
Returns #f, otherwise.
Note. When a previously opened keystore (which is valid), is closed with @tt{ks-close},
keystore? will return #f, because the keystore is not valid anymore.
}
@section{Opening & Closing} @section{Opening & Closing}
@defproc[(ks-open [file (or/c path? string? symbol?)]) keystore?]{ @defproc[(ks-open [file (or/c path? string? symbol?)]) keystore?]{