query($sql); } /** * List tables for the current database * * @return mixed */ function get_tables() { $res = $this->query("SELECT name FROM sqlite_master WHERE type='table'"); return $res->fetchAll(PDO::FETCH_ASSOC); } /** * Return the number of rows returned for a SELECT query * * @return int */ function num_rows() { // TODO: Implement } } //End of sqlite.php