17 // SQLRequest is inherited from a basic Request object
18 // so that we can neatly pass information around the
26 std::string thisquery;
28 SQLRequest(int qt, long cid, std::string query)
30 this->SetQueryType(qt);
32 this->SetQuery(query);
35 void SetConnID(long id)
45 void SetQueryType(int t)
55 void SetQuery(std::string query)
60 std::string GetQuery()
66 // Upon completion, an SQLRequest returns an SQLResponse.
74 std::map<std::string,std::string> row;
76 void SetRow(std::map<std::string,std::string> r)
81 std::string GetField(std::string field)
83 std::map<std::string,std::string>::iterator iter = row.find(field);
84 if (iter == row.end()) return "";
93 void SetError(std::string err)
103 std::string GetError()
108 void SetCount(unsigned long c)
113 unsigned long GetCount()