Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDirectorySchemaVersionHigher = cerr.NewAsertoError("E20054", codes.FailedPrecondition, http.StatusExpectationFailed, "directory schema version is higher than supported by engine") ErrDirectorySchemaUpdateRequired = cerr.NewAsertoError("E20055", codes.FailedPrecondition, http.StatusExpectationFailed, "directory schema update required") ErrUnknown = cerr.NewAsertoError("E99999", codes.Unknown, http.StatusInternalServerError, "unexpected error occurred") )
Functions ¶
func CheckSchemaVersion ¶ added in v0.30.0
func CheckSchemaVersion(config *bdb.Config, logger *zerolog.Logger, reqVersion *semver.Version) (bool, error)
CheckSchemaVersion, validate schema version of the database file equal: returns true, nil lower: returns false, nil higher returns false, error errors: returns false, error.
Types ¶
Click to show internal directories.
Click to hide internal directories.