operator [] method

Collection operator [](
  1. String collection
)

Implementation

Collection operator [](String collection) {
  if (!_dbContent.containsKey(collection)) {
    _dbContent[collection] = [];
    _commit(); // Save the new collection, even if empty
  }
  return Collection(collection, this);
}