1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-07-02 14:04:22 +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

@ -35,7 +35,7 @@ namespace pq {
class Connection;
} //namespace pq
namespace dinbpostgres {
namespace dindb {
using dinhelp::MaxSizedArray;
struct Settings;
@ -146,6 +146,6 @@ namespace dinbpostgres {
this->query_files_in_dir(columns, parDir, parLevel, parSetID, std::bind(pback_func, &flat_list, std::placeholders::_1));
return list;
}
} //namespace dinbpostgres
} //namespace dindb
#endif

View file

@ -24,13 +24,13 @@
#include <cstdint>
#include <map>
namespace dinbpostgres {
namespace dindb {
struct Settings;
using IDDescMap = std::map<uint32_t, std::string>;
using ConfirmDeleCallback = std::function<bool(const IDDescMap&)>;
void delete_group_from_db ( const Settings& parDB, const std::vector<uint32_t>& parIDs, ConfirmDeleCallback parConf );
} //namespace dinbpostgres
} //namespace dindb
#endif

View file

@ -27,7 +27,7 @@ namespace mchlib {
struct TigerHash;
} //namespace mchlib
namespace dinbpostgres {
namespace dindb {
struct Settings;
struct LocatedItem {
@ -49,6 +49,6 @@ namespace dinbpostgres {
std::vector<LocatedItem> locate_in_db ( const Settings& parDB, const mchlib::TigerHash& parSearch, const TagList& parTags );
std::vector<LocatedSet> locate_sets_in_db ( const Settings& parDB, const std::string& parSearch, bool parCaseInsensitive );
std::vector<LocatedSet> locate_sets_in_db ( const Settings& parDB, const std::string& parSearch, const std::vector<uint32_t>& parSets, bool parCaseInsensitive );
} //namespace dinbpostgres
} //namespace dindb
#endif

View file

@ -29,11 +29,11 @@ namespace mchlib {
struct TigerHash;
} //namespace mchlib
namespace dinbpostgres {
namespace dindb {
struct Settings;;
void write_to_db ( const Settings& parDB, const std::vector<mchlib::FileRecordData>& parData, const mchlib::SetRecordData& parSetData, const std::string& parSignature );
bool read_from_db ( mchlib::FileRecordData& parItem, mchlib::SetRecordDataFull& parSet, const Settings& parDB, const mchlib::TigerHash& parHash );
} //namespace dinbpostgres
} //namespace dindb
#endif

View file

@ -21,7 +21,7 @@
#include <string>
#include <cstdint>
namespace dinbpostgres {
namespace dindb {
struct Settings {
std::string address;
std::string username;
@ -29,6 +29,6 @@ namespace dinbpostgres {
std::string dbname;
uint16_t port;
};
} //namespace dinbpostgres
} //namespace dindb
#endif

View file

@ -22,7 +22,7 @@
#include <boost/utility/string_ref.hpp>
#include <cstdint>
namespace dinbpostgres {
namespace dindb {
struct Settings;
struct OwnerSetInfo {
@ -37,6 +37,6 @@ namespace dinbpostgres {
void delete_tags ( const Settings& parDB, const std::vector<std::string>& parRegexes, const std::vector<boost::string_ref>& parTags, OwnerSetInfo parSet );
void delete_all_tags ( const Settings& parDB, const std::vector<uint64_t>& parFiles, OwnerSetInfo parSet );
void delete_all_tags ( const Settings& parDB, const std::vector<std::string>& parRegexes, OwnerSetInfo parSet );
} //namespace dinbpostgres
} //namespace dindb
#endif

View file

@ -23,7 +23,7 @@
namespace dinlib {
struct Settings {
dinbpostgres::Settings db;
dindb::Settings db;
};
bool load_settings ( const std::string& parPath, Settings& parOut, bool parExpand=true );