diff options
author | Adam <Adam@anope.org> | 2013-01-23 22:16:01 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-23 22:16:01 -0500 |
commit | 647245a71f7277cf9ee69a8212276f214ae35c07 (patch) | |
tree | ed69453f2cc3c3139e7a97fe28ece8f54b28d6c3 | |
parent | a634c7be65113c74736be0fb98f31b0c83ec2882 (diff) |
Add missing KeySet() func to SQL::Data
-rw-r--r-- | modules/extra/sql.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/extra/sql.h b/modules/extra/sql.h index d3449504a..e2daf49da 100644 --- a/modules/extra/sql.h +++ b/modules/extra/sql.h @@ -28,6 +28,14 @@ namespace SQL return *ss; } + std::set<Anope::string> KeySet() const anope_override + { + std::set<Anope::string> keys; + for (std::map<Anope::string, std::stringstream *>::const_iterator it = this->data.begin(), it_end = this->data.end(); it != it_end; ++it) + keys.insert(it->first); + return keys; + } + bool IsEqual(Serialize::Data *other) anope_override { try |