summaryrefslogtreecommitdiff
path: root/include/modules/sql.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules/sql.h')
-rw-r--r--include/modules/sql.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/modules/sql.h b/include/modules/sql.h
index 15e8260b6..78cfe89cd 100644
--- a/include/modules/sql.h
+++ b/include/modules/sql.h
@@ -228,12 +228,19 @@ class SQL::Query : public classbase
*/
class SQL::Provider : public DataProvider
{
+ private:
+ /** The name of the database tag in the config. */
+ const std::string dbid;
+
public:
Provider(Module* Creator, const std::string& Name)
- : DataProvider(Creator, Name)
+ : DataProvider(Creator, "SQL/" + Name)
{
}
+ /** Retrieves the name of the database tag in the config. */
+ const std::string& GetId() const { return dbid; }
+
/** Submit an asynchronous SQL query.
* @param callback The result reporting point
* @param query The hardcoded query string. If you have parameters to substitute, see below.