26 stmt->
setString(0, ipAddress.to_string());
36 Field* fields = result->Fetch();
37 if (fields[0].GetUInt64() != 0)
40 }
while (result->NextRow());
48 TC_LOG_ERROR(
"network",
"IpBanCheckConnectionInitializer: IP {} is banned.", ipAddress);
std::shared_ptr< PreparedResultSet > PreparedQueryResult
DatabaseWorkerPool< LoginDatabaseConnection > LoginDatabase
Accessor to the realm/login database.
#define TC_LOG_ERROR(filterType__, message__,...)
Class used to access individual fields of database query result.
void setString(uint8 index, std::string &&value)
TC_SHARED_API QueryCallback AsyncQuery(boost::asio::ip::address const &ipAddress)
TC_SHARED_API bool IsBanned(PreparedQueryResult const &result)
TC_SHARED_API void LogFailure(boost::asio::ip::address const &ipAddress)