예제 #1
0
 /**
  * Execute the generated query.
  * @return mixed|null Result generated by the query, or null on fail.
  * @throws SquidException
  */
 public function execute()
 {
     if (is_null($this->conn)) {
         throw new SquidException("Can't execute query, implicitly created without connection!");
     }
     $cmd = $this->assemble();
     $bind = $this->bind();
     return $this->conn->execute($cmd, $bind);
 }
예제 #2
0
 /**
  * @return bool
  */
 public function isOpen()
 {
     $this->connection->isOpen();
 }
예제 #3
0
 public function close()
 {
     $this->connection->close();
 }