Ejemplo n.º 1
0
 public function getConnectionString($name)
 {
     $config = $this->config->getAnydatasetconfig("connections.{$name}");
     if (empty($config) || !isset($config['url'])) {
         throw new DatasetException("Invalid configurarion 'connections.{$name}'");
     }
     return $config;
 }
Ejemplo n.º 2
0
 public function getPoolBuffer($key = 'default')
 {
     $bufferSize = $this->config->getCacheconfig("{$key}.poolbuffer");
     if ($bufferSize === null) {
         return 10;
     }
     return (int) $bufferSize;
 }