public interface DBFactory
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(File path,
Options options)
Destroy a database, delete DB files and root directory
|
DB |
open(File path,
Options options)
Open/Create a new Database using provided "options" to configure DB
behavior.
|
void |
repair(File path,
Options options)
Try to repair a corrupted DB or not closed properly.
|
DB open(File path, Options options) throws IOException
path - DB root folderoptions - DB optionsIOException - if unable to open/read DB or preconditions failedvoid destroy(File path, Options options) throws IOException
path - DB root folderoptions - options used to open DBIOException - if failed to destruct DBvoid repair(File path, Options options) throws IOException
path - DB root directoryoptions - DB optionsIOException - if failed to open/recover DBCopyright © 2011–2020. All rights reserved.