3
// SQLite backend for PowerDNS
4
// Copyright (C) 2003, Michel Stol <michel@powerdns.com>
11
#include "pdns/backends/gsql/ssql.hh"
13
class SSQLite : public SSql
16
//! Pointer to the SQLite database instance.
19
//! Pointer to the SQLite virtual machine executing a query.
25
SSQLite( const std::string & database );
30
//! Performs a query and puts answers in result
31
int doQuery( const std::string & query, result_t & result );
33
//! Performs a query, caller can retrieve answers with getRow
34
int doQuery( const std::string & query );
36
//! Performs a command that does not return rows
37
int doCommand( const std::string & query )
39
return doQuery(query);
43
//! Returns a row from a result set.
44
bool getRow( row_t & row );
46
//! Escapes the SQL query.
47
std::string escape( const std::string & query );
49
//! Used to create an backend specific exception message.
50
SSqlException sPerrorException( const std::string & reason );