OmniSciDB  2e3a973ef4
EmbeddedDatabase::DBEngine Class Reference

#include <DBEngine.h>

+ Inheritance diagram for EmbeddedDatabase::DBEngine:

Public Member Functions

void reset ()
 
void executeDDL (std::string query)
 
CursorexecuteDML (std::string query)
 

Static Public Member Functions

static DBEnginecreate (std::string path)
 

Protected Member Functions

 DBEngine ()
 

Detailed Description

Definition at line 48 of file DBEngine.h.

Constructor & Destructor Documentation

◆ DBEngine()

EmbeddedDatabase::DBEngine::DBEngine ( )
inlineprotected

Definition at line 56 of file DBEngine.h.

56 {}

Member Function Documentation

◆ create()

DBEngine * EmbeddedDatabase::DBEngine::create ( std::string  path)
static

Creates DBEngine instance

Parameters
sPathPath to the existing database

Definition at line 168 of file DBEngine.cpp.

168  {
169  return new DBEngineImpl(path);
170 }

◆ executeDDL()

void EmbeddedDatabase::DBEngine::executeDDL ( std::string  query)

Definition at line 186 of file DBEngine.cpp.

References EmbeddedDatabase::DBEngineImpl::executeDDL(), and EmbeddedDatabase::getImpl().

186  {
187  DBEngineImpl* engine = getImpl(this);
188  engine->executeDDL(query);
189 }
DBEngineImpl * getImpl(DBEngine *ptr)
Definition: DBEngine.cpp:173
+ Here is the call graph for this function:

◆ executeDML()

Cursor * EmbeddedDatabase::DBEngine::executeDML ( std::string  query)

Definition at line 191 of file DBEngine.cpp.

References EmbeddedDatabase::DBEngineImpl::executeDML(), and EmbeddedDatabase::getImpl().

191  {
192  DBEngineImpl* engine = getImpl(this);
193  return engine->executeDML(query);
194 }
DBEngineImpl * getImpl(DBEngine *ptr)
Definition: DBEngine.cpp:173
+ Here is the call graph for this function:

◆ reset()

void EmbeddedDatabase::DBEngine::reset ( )

Definition at line 180 of file DBEngine.cpp.

References EmbeddedDatabase::getImpl(), and EmbeddedDatabase::DBEngineImpl::reset().

180  {
181  // TODO: Make sure that dbengine does not released twice
182  DBEngineImpl* engine = getImpl(this);
183  engine->reset();
184 }
DBEngineImpl * getImpl(DBEngine *ptr)
Definition: DBEngine.cpp:173
+ Here is the call graph for this function:

The documentation for this class was generated from the following files: