A Microsoft SQL Server database. More...
#include <MSSQLDatabase.h>
Public Member Functions | |
const std::wstring | GetName () const |
get the database name More... | |
void | SetName (const std::wstring &value) |
set the database name More... | |
const std::wstring | GetCollate () const |
get the database collate More... | |
void | SetCollate (const std::wstring &value) |
set the database collate More... | |
const std::wstring | GetPurpose () const |
get the database purpose, eg. ATTACH or ATTACH_REBUILD_LOG More... | |
void | SetPurpose (const std::wstring &value) |
set the database for More... | |
const std::list < MSSQLDatabaseFileSpec > & | GetFileSpecs () const |
get the database file specs More... | |
void | AddFileSpec (const MSSQLDatabaseFileSpec &value) |
add a database file spec More... | |
const std::list< std::wstring > & | GetOptions () const |
get the database with options More... | |
void | AddOption (const std::wstring &value) |
add a database file spec More... | |
AppSecInc::Databases::ODBC::ODBCConnection & | GetConnection () |
returns the connection object More... | |
const AppSecInc::Databases::ODBC::ODBCConnection & | GetConnection () const |
MSSQLDatabase () | |
constructors/destructors More... | |
MSSQLDatabase (const AppSecInc::Databases::ODBC::ODBCConnectionInfo &connectioninfo) | |
void | Create () |
create the database, fail if exists More... | |
bool | Exists () |
returns true if database exists More... | |
void | Connect () |
connect to the database server More... | |
void | Disconnect () |
disconnect from the database server More... | |
void | Drop () |
drop the database More... | |
void | CreateIfNotExists () |
create the database if it doesn't exist More... | |
void | DropIfExists () |
drop the database if it exists More... | |
~MSSQLDatabase () | |
std::wstring | GetCreateQuery () const |
std::vector< std::wstring > | GetOptionQueries () const |
std::wstring | GetDropQuery () const |
std::wstring | GetExistsQuery () const |
std::wstring | GetNotExistsQuery () const |
MSXML2::IXMLDOMNodePtr | Save (AppSecInc::Xml::XmlDocument &xmldoc, MSXML2::IXMLDOMNodePtr parent) const |
serialize database to xml More... | |
void | Load (AppSecInc::Xml::XmlDocument &xmldoc, MSXML2::IXMLDOMNodePtr root) |
deserialize database from xml More... | |
Public Member Functions inherited from AppSecInc::Databases::ODBC::ODBCDatabase | |
ODBCDatabase () | |
constructor More... | |
virtual | ~ODBCDatabase () |
destructor More... | |
A Microsoft SQL Server database.
MSSQLDatabase::MSSQLDatabase | ( | ) |
constructors/destructors
MSSQLDatabase::MSSQLDatabase | ( | const AppSecInc::Databases::ODBC::ODBCConnectionInfo & | connectioninfo | ) |
MSSQLDatabase::~MSSQLDatabase | ( | ) |
|
inline |
add a database file spec
|
inline |
add a database file spec
|
virtual |
connect to the database server
Implements AppSecInc::Databases::ODBC::ODBCDatabase.
|
virtual |
create the database, fail if exists
Implements AppSecInc::Databases::ODBC::ODBCDatabase.
|
virtual |
create the database if it doesn't exist
Reimplemented from AppSecInc::Databases::ODBC::ODBCDatabase.
|
virtual |
disconnect from the database server
Implements AppSecInc::Databases::ODBC::ODBCDatabase.
|
virtual |
drop the database
Implements AppSecInc::Databases::ODBC::ODBCDatabase.
|
virtual |
drop the database if it exists
Reimplemented from AppSecInc::Databases::ODBC::ODBCDatabase.
|
virtual |
returns true if database exists
Implements AppSecInc::Databases::ODBC::ODBCDatabase.
|
inline |
get the database collate
|
inline |
returns the connection object
|
inline |
std::wstring MSSQLDatabase::GetCreateQuery | ( | ) | const |
std::wstring MSSQLDatabase::GetDropQuery | ( | ) | const |
std::wstring MSSQLDatabase::GetExistsQuery | ( | ) | const |
|
inline |
get the database file specs
|
inline |
get the database name
std::wstring MSSQLDatabase::GetNotExistsQuery | ( | ) | const |
std::vector< std::wstring > MSSQLDatabase::GetOptionQueries | ( | ) | const |
|
inline |
get the database with options
|
inline |
get the database purpose, eg. ATTACH or ATTACH_REBUILD_LOG
void MSSQLDatabase::Load | ( | AppSecInc::Xml::XmlDocument & | xmldoc, |
MSXML2::IXMLDOMNodePtr | root | ||
) |
deserialize database from xml
MSXML2::IXMLDOMNodePtr MSSQLDatabase::Save | ( | AppSecInc::Xml::XmlDocument & | xmldoc, |
MSXML2::IXMLDOMNodePtr | parent | ||
) | const |
serialize database to xml
|
inline |
set the database collate
|
inline |
set the database name
|
inline |
set the database for
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |