]> git.ipfire.org Git - thirdparty/pdns.git/blame - modules/gmysqlbackend/gmysqlbackend.hh
Merge pull request #15791 from miodvallat/udon
[thirdparty/pdns.git] / modules / gmysqlbackend / gmysqlbackend.hh
CommitLineData
a3814809 1/*
12471842
PL
2 * This file is part of PowerDNS or dnsdist.
3 * Copyright -- PowerDNS.COM B.V. and its contributors
a3814809 4 *
12471842
PL
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
a3814809 8 *
12471842
PL
9 * In addition, for the avoidance of any doubt, permission is granted to
10 * link this program with OpenSSL and to (re)distribute the binaries
11 * produced as the result of such linking.
a3814809 12 *
12471842
PL
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
a3814809 17 *
12471842
PL
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
a3814809 21 */
e8c59f2d 22#pragma once
2ffc06cb
BH
23#include <string>
24#include <map>
907a3e04 25#include "pdns/backends/gsql/gsqlbackend.hh"
2ffc06cb 26
10f4eea8 27#include "pdns/namespaces.hh"
2ffc06cb
BH
28
29/** The gMySQLBackend is a DNSBackend that can answer DNS related questions. It looks up data
c6826ef9 30 in MySQL */
907a3e04 31class gMySQLBackend : public GSQLBackend
2ffc06cb
BH
32{
33public:
ff05c7e1 34 gMySQLBackend(const string& mode, const string& suffix); //!< Makes our connection to the database. Throws an exception if it fails.
45d36933 35protected:
bfa196c0 36 void reconnect() override;
2ffc06cb 37};