IoWorkDb constructor

IoWorkDb(
  1. String pathDb
)

Creates a new IoWorkDb with the specified base path.

pathDb is the base directory for all database files. If empty, defaults to the current working directory.

Example:

final fs = IoWorkDb('./my_app_data');

Implementation

IoWorkDb(String pathDb)
    : _pathDb = pathDb.isEmpty ? Directory.current.path : pathDb;