3 #include "RelationalAccess/SchemaException.h"
4 #include "RelationalAccess/ISchema.h"
5 #include "RelationalAccess/ITable.h"
6 #include "RelationalAccess/TableDescription.h"
7 #include "RelationalAccess/ITablePrivilegeManager.h"
8 #include "RelationalAccess/ICursor.h"
9 #include "RelationalAccess/IQuery.h"
10 #include "RelationalAccess/ITableDataEditor.h"
11 #include "CoralBase/AttributeList.h"
12 #include "CoralBase/AttributeSpecification.h"
13 #include "CoralBase/Attribute.h"
21 coral::ISchema&
schema=m_coraldb.nominalSchema();
27 std::vector<std::string> cols;
29 description.setPrimaryKey(cols);
31 coral::ITable&
table=schema.createTable(description);
32 table.privilegeManager().grantToPublic( coral::ITablePrivilegeManager::Select);
33 }
catch(
const coral::TableAlreadyExistingException& er ){
40 coral::ISchema&
schema=m_coraldb.nominalSchema();
43 }
catch(coral::TableNotExistingException& er){