/**
  * Constructor
  *
  * @param   rdbms.DSN dsn
  */
 public function __construct($dsn)
 {
     parent::__construct($dsn);
     $this->formatter = new StatementFormatter($this, new MysqlDialect());
     // Use local socket (unix socket on Un*x systems, named pipe on Windows)
     // if "." is supplied as hostname
     $host = $this->dsn->getHost();
     if ('.' === $host) {
         $sock = LocalSocket::forName(PHP_OS)->newInstance($this->dsn->getProperty('socket', NULL));
     } else {
         $sock = new Socket($host, $this->dsn->getPort(3306));
     }
     $this->handle = new MysqlxProtocol($sock);
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
 }
 /**
  * Constructor
  *
  * @param   rdbms.DSN dsn
  */
 public function __construct($dsn)
 {
     parent::__construct($dsn);
     $this->formatter = new StatementFormatter($this, new InterBaseDialect());
 }
 /**
  * Constructor
  *
  * @param   rdbms.DSN dsn
  */
 public function __construct($dsn)
 {
     parent::__construct($dsn);
     $this->formatter = new StatementFormatter($this, $this->getDialect());
     $this->handle = $this->getProtocol(new Socket($this->dsn->getHost(), $this->dsn->getPort(1433)));
 }
Пример #5
0
 /**
  * Constructor
  *
  * @param   rdbms.DSN dsn
  */
 public function __construct($dsn)
 {
     parent::__construct($dsn);
     $this->formatter = new StatementFormatter($this, new MockDialect());
     $this->clearResultSets();
 }
 /**
  * Constructor
  *
  * @param   rdbms.DSN dsn
  */
 public function __construct($dsn)
 {
     parent::__construct($dsn);
     $this->transactionNesting = $dsn->getProperty('nesting') === 'true';
     $this->formatter = new StatementFormatter($this, new MysqlDialect());
 }
 /**
  * Constructor
  *
  * @param   rdbms.DSN dsn
  */
 public function __construct($dsn)
 {
     parent::__construct($dsn);
     $this->formatter = new StatementFormatter($this, new PostgreSQLDialect());
 }
 private function __construct()
 {
     parent::__construct(APP_DB_READ_DSN, APP_DB_READ_USER, APP_DB_READ_PASSWORD);
 }