medoo::info PHP Method

info() public method

public info ( )
    public function info()
    {
        $output = array('server' => 'SERVER_INFO', 'driver' => 'DRIVER_NAME', 'client' => 'CLIENT_VERSION', 'version' => 'SERVER_VERSION', 'connection' => 'CONNECTION_STATUS');
        foreach ($output as $key => $value) {
            $output[$key] = $this->pdo->getAttribute(constant('PDO::ATTR_' . $value));
        }
        return $output;
    }

Usage Example

Esempio n. 1
1
 /**
  * @return array
  */
 public function info()
 {
     $rt = array('write' => $this->_writer->info(), 'read' => NULL);
     if (empty($this->_reader)) {
         $rt['read'] = $rt['write'];
     } else {
         $rt['read'] = $this->_reader->info();
     }
     return $rt;
 }
All Usage Examples Of medoo::info