pike.git / lib / modules / Search.pmod / Queue.pmod / MySQL.pike

version» Context lines:

pike.git/lib/modules/Search.pmod/Queue.pmod/MySQL.pike:15:    // performing sql queries elsewhere.    Sql.Sql ret = _db->get();    if (ret && !ret->ping()) return ret;    return _db->set(Sql.Sql( url ));   }      Web.Crawler.Stats stats;   Web.Crawler.Policy policy;   Web.Crawler.RuleSet allow, deny;    - inherit Web.Crawler.Queue; -  +    static string to_md5(string url)   {    Crypto.MD5 md5 = Crypto.MD5();    md5->update(string_to_utf8(url));    return String.string2hex(md5->digest());   }      //! @param _url   //! @[Sql.Sql] URL for the database to store the queue.   //!