Database.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc
4 {
5  namespace Databases
6  {
7  namespace ODBC
8  {
11  {
12  public:
14  ODBCDatabase();
16  virtual void Connect() = 0;
18  virtual void Disconnect() = 0;
20  virtual void Create() = 0;
22  virtual bool Exists() = 0;
24  virtual void Drop() = 0;
26  virtual void CreateIfNotExists();
28  virtual void DropIfExists();
30  virtual ~ODBCDatabase();
31  };
32  }
33  }
34 }
35 
ODBCDatabase()
constructor
Definition: Database.cpp:6
virtual void Disconnect()=0
disconnect from the database server
virtual void CreateIfNotExists()
create the database if it doesn't exist
Definition: Database.cpp:16
virtual void Drop()=0
drop the database
virtual ~ODBCDatabase()
destructor
Definition: Database.cpp:11
virtual bool Exists()=0
returns true if database exists
virtual void Connect()=0
connect to the database server
A generic database.
Definition: Database.h:10
virtual void Create()=0
create the database, fail if exists
virtual void DropIfExists()
drop the database if it exists
Definition: Database.cpp:24


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com