IsDBClosed is true if the error indicates the db was closed.
(err error)
| 6 | |
| 7 | // IsDBClosed is true if the error indicates the db was closed. |
| 8 | func 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. |
| 13 | func IsKeyNotFound(err error) bool { |
no outgoing calls