add send info
This commit is contained in:
@@ -18,3 +18,22 @@ std::string msql_acces::get_passwd(std::string username){
|
||||
delete res;
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::list<std::string> msql_acces::get_pinfo(){
|
||||
sql::PreparedStatement *pstmt = con->prepareStatement("select * from packages");
|
||||
sql::ResultSet *res = pstmt->executeQuery();
|
||||
std::list<std::string> ret;
|
||||
std::string aux;
|
||||
while(res->next()){
|
||||
aux="";
|
||||
aux += res->getString("name");
|
||||
if(res->getBoolean("uses")){
|
||||
aux+=":true";
|
||||
}else{
|
||||
aux+=":false";
|
||||
}
|
||||
aux += ":"+res->getString("created");
|
||||
}
|
||||
delete res;
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user