public function open($save_path, $name) { // Force loading of query. $this->db = Database::getInstance(); // Nothing to do. return true; }
/** * @return Result|int */ public function execute() { $db = Database::getInstance(); $query = $this->getParsedQuery(); return $db->query($query); }
/** * 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(); }