LevelDB.open constructor

LevelDB.open({
  1. required Options options,
  2. required String filePath,
})

Open the database with the specified filePath.

Implementation

factory LevelDB.open({
  required Options options,
  required String filePath,
}) {
  assert(
    options != null,
    'LevelDB.open: "options" parameter is required',
  );
  assert(
    filePath.isNotEmpty,
    'LevelDB.open: "filePath" parameter is required',
  );
  return _LevelDB.open(
    Lib.levelDB,
    options: options,
    name: filePath,
  );
}