Exemplo n.º 1
0
 public function open($save_path, $name)
 {
     // Force loading of query.
     $this->db = Database::getInstance();
     // Nothing to do.
     return true;
 }
Exemplo n.º 2
0
 /**
  * @return Result|int
  */
 public function execute()
 {
     $db = Database::getInstance();
     $query = $this->getParsedQuery();
     return $db->query($query);
 }
Exemplo n.º 3
0
 /**
  * Flush everything down the drain.
  * @param bool $flushDatabase
  */
 public function flush($flushDatabase = true)
 {
     $this->temporary = array();
     $this->temporarystart = array();
     $this->log = array();
     $this->start = microtime(true);
     // Also flush database log
     \Neuron\DB\Database::getInstance()->flushLog();
 }