Framework update.

This commit is contained in:
stephb9959
2022-04-14 14:28:29 -04:00
parent dfa62fc33d
commit 420f9a3bb5
3 changed files with 13 additions and 1 deletions

View File

@@ -295,7 +295,8 @@ namespace OpenWifi {
std::string type;
uint64_t created=0;
std::string name;
Poco::Data::LOB<char> avatar;
// Poco::Data::LOB<char> avatar;
Poco::Data::BLOB avatar;
};
struct LoginRecordInfo {

View File

@@ -51,6 +51,7 @@ namespace OpenWifi {
Pool_->shutdown();
}
DBType Type() const { return dbType_; };
private:
inline int Setup_SQLite();
inline int Setup_MySQL();

View File

@@ -155,6 +155,16 @@ namespace ORM {
return S;
}
inline std::string to_string(const Poco::Data::BLOB &blob) {
auto Content = blob.content();
std::string result;
result.reserve(Content.size());
for(const auto &c:Content) {
result += (char) c;
}
return result;
}
inline std::string to_string(const char * S) {
return S;
}