MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / checkOptions

Function checkOptions

engine/db.go:103–111  ·  view source on GitHub ↗
(options config.Options)

Source from the content-addressed store, hash-verified

101}
102
103func checkOptions(options config.Options) error {
104 if options.DirPath == "" {
105 return _const.ErrOptionDirPathIsEmpty
106 }
107 if options.DataFileSize <= 0 {
108 return _const.ErrOptionDataFileSizeNotPositive
109 }
110 return nil
111}
112
113// Close the db instance
114func (db *DB) Close() error {

Callers 1

NewDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected