1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-24 16:20:51 +00:00

Rename namespace dinbpostgres to dindb.

It's so much better!
This commit is contained in:
King_DuckZ 2016-05-24 09:42:29 +02:00
parent 45fc758915
commit 1fd51f75ba
20 changed files with 64 additions and 64 deletions

View file

@ -68,7 +68,7 @@ namespace din {
}
} //unnamed namespace
ListDirContent::ListDirContent (dinbpostgres::DBSource* parDB) :
ListDirContent::ListDirContent (dindb::DBSource* parDB) :
m_cache(g_max_cached_lists),
m_db(parDB)
{
@ -86,13 +86,13 @@ namespace din {
//Requested item is not cached, so we need to query the db now
if (parDir.points_to_group()) {
auto sets_ids = m_db->sets();
auto sets_info = m_db->set_details<dinbpostgres::SetDetail_ID, dinbpostgres::SetDetail_Desc, dinbpostgres::SetDetail_CreeationDate>(sets_ids);
auto sets_info = m_db->set_details<dindb::SetDetail_ID, dindb::SetDetail_Desc, dindb::SetDetail_CreeationDate>(sets_ids);
m_cache.push_back(std::make_pair(curr_path, db_result_to_vec(sets_info)));
}
else {
auto path_prefix = parDir.file_path();
const auto set_id = parDir.group_id();
auto files_info = m_db->file_details<dinbpostgres::FileDetail_Path>(set_id, parDir.level() + 1, path_prefix);
auto files_info = m_db->file_details<dindb::FileDetail_Path>(set_id, parDir.level() + 1, path_prefix);
m_cache.push_back(std::make_pair(curr_path, db_result_to_vec(files_info)));
}
return last_cached_item(curr_path);