2 #include "RelationalAccess/IRelationalDomain.h" 3 #include "RelationalAccess/IConnection.h" 4 #include "RelationalAccess/ISession.h" 5 #include "RelationalAccess/RelationalServiceException.h" 6 #include "CoralKernel/Context.h" 13 context.loadComponent(
"CORAL/RelationalPlugins/oracle" );
14 coral::IHandle<coral::IRelationalDomain> domain = context.query<coral::IRelationalDomain>(
"CORAL/RelationalPlugins/oracle" );
15 if ( ! domain.isValid() )
16 throw std::runtime_error(
"Could not load the OracleAccess plugin" );
28 coral::IHandle<coral::IRelationalDomain> iHandle=ctx.query<coral::IRelationalDomain>(
"CORAL/RelationalPlugins/oracle");
29 if ( ! iHandle.isValid() )
30 throw std::runtime_error(
"Could not load the OracleAccess plugin" );
32 std::pair<std::string, std::string> connectionAndSchema = iHandle->decodeUserConnectionString( connectionString );
34 m_connection = iHandle->newConnection( connectionAndSchema.first );
41 session->startUserSession( user, pass );
48 coral::MessageStream::setMsgVerbosity(level);
static PFTauRenderPlugin instance
void setVerbosityLevel(coral::MsgLevel level)
coral::IConnection * m_connection
coral::ISession * connect(const std::string &connectionString, const std::string &user, const std::string &password)