public function fetch() { if (!isset($this->result)) { throw new Exception('Error: The database result resource is not currently set.'); } return $this->result->fetchArray(SQLITE3_ASSOC); }