code: private function getDbName(array $params, string $connectionName): string
      {
          if (isset($params['path'])) {
              return $params['path'];
          }
  
          if (isset($params['dbname'])) {
              return $params['dbname'];
          }
  
          throw new \InvalidArgumentException('Connection does not contain a \'path\' or \'dbname\' parameter.');
      }
docs: @param array  $params
  @param string $connectionName
  
  @return string