23 coral::ConnectionService connServ;
28 std::set<std::string>
tables = schema.listTables();
29 for( std::set<std::string>::const_iterator iEx = exclusionList.begin();
30 iEx != exclusionList.end(); ++iEx ){
33 for( std::set<std::string>::const_iterator iT = tables.begin();
34 iT != tables.end(); ++iT ){
35 coral::ITable&
t = schema.tableHandle( *iT );
36 int numFKs = t.description().numberOfForeignKeys();
37 for(
int ifk=0; ifk < numFKs; ifk++ ){
39 t.schemaEditor().dropForeignKey( t.description().foreignKey( 0 ).name() );
42 for( std::set<std::string>::const_iterator iT = tables.begin();
43 iT != tables.end(); ++iT ){
44 schema.dropIfExistsTable( *iT );
46 session->transaction().commit();
48 session->transaction().rollback();