public function createCollection($collection, $options = [])
{
if (is_array($collection)) {
list($database, $collectionName) = $collection;
} else {
$database = null;
$collectionName = $collection;
}
$this->beginProfile($token = " > create collection " . $this->composeCollectionLogName($collection) . " ...");
$this->db->getDatabase($database)->createCollection($collectionName, $options);
$this->endProfile($token);
}