MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / IsDBClosed

Function IsDBClosed

errors.go:8–10  ·  view source on GitHub ↗

IsDBClosed is true if the error indicates the db was closed.

(err error)

Source from the content-addressed store, hash-verified

6
7// IsDBClosed is true if the error indicates the db was closed.
8func IsDBClosed(err error) bool {
9 return errors.Is(err, ErrDBClosed)
10}
11
12// IsKeyNotFound is true if the error indicates the key is not found.
13func IsKeyNotFound(err error) bool {

Callers 1

TestIsDBClosedFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsDBClosedFunction · 0.68