7 #include <mysql/mysql.h>
12 class PostgresJobProvider : public JobProvider {
16 PostgresJobProvider( const std::string& server, const std::string& user, const std::string& password, const std::string& database );
19 std::shared_ptr<Job> fetchJob();
20 void finishJob( std::shared_ptr<Job> job );
21 void failJob( std::shared_ptr<Job> job );
22 std::shared_ptr<TBSCertificate> fetchTBSCert( std::shared_ptr<Job> job );
23 void writeBack( std::shared_ptr<Job> job, std::shared_ptr<SignedCertificate> res );
24 std::pair<std::string, std::string> getRevocationInfo( std::shared_ptr<Job> job );
25 void writeBackRevocation( std::shared_ptr<Job> job, std::string date );