14 std::wstring _connection_string;
19 const std::wstring
GetDBQ()
const {
return _dbq; }
21 void SetDBQ(
const std::wstring& value) { _dbq = value; }
const std::wstring GetDBQ() const
get the database (.mdf file) name
Definition: AccessDatabase.h:19
AppSecInc::Databases::ODBC::ODBCConnection & GetConnection()
returns the connection object
Definition: AccessDatabase.h:23
void Drop()
drop the database
Definition: AccessDatabase.cpp:38
void Disconnect()
disconnect from the database server
Definition: AccessDatabase.cpp:50
void Load(AppSecInc::Xml::XmlDocument &xmldoc, MSXML2::IXMLDOMNodePtr root)
deserialize database from xml
Definition: AccessDatabase.cpp:63
A generic connection info.
Definition: ConnectionInfo.h:10
~AccessDatabase()
Definition: AccessDatabase.cpp:21
An MSXML document.
Definition: XmlDocument.h:8
void Create()
create the database, fail if exists
Definition: AccessDatabase.cpp:25
A generic database.
Definition: Database.h:10
void Connect()
connect to the database server
Definition: AccessDatabase.cpp:44
void SetDBQ(const std::wstring &value)
set the database (.mdf file) name
Definition: AccessDatabase.h:21
const AppSecInc::Databases::ODBC::ODBCConnection & GetConnection() const
Definition: AccessDatabase.h:24
MSXML2::IXMLDOMNodePtr Save(AppSecInc::Xml::XmlDocument &xmldoc, MSXML2::IXMLDOMNodePtr parent) const
serialize database to xml
Definition: AccessDatabase.cpp:55
A Microsoft SQL Server database.
Definition: AccessDatabase.h:10
bool Exists()
returns true if database exists
Definition: AccessDatabase.cpp:32
An ODBC connection.
Definition: Connection.h:27
AccessDatabase()
constructors/destructors
Definition: AccessDatabase.cpp:7