(options config.Options)
| 101 | } |
| 102 | |
| 103 | func 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 |
| 114 | func (db *DB) Close() error { |