COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libcoopy_sqldiff/include/coopy/SqlCompare.h
Go to the documentation of this file.
00001 #ifndef COOPY_SQLCOMPARE_INC
00002 #define COOPY_SQLCOMPARE_INC
00003 
00004 #include <coopy/DbiSqlWrapper.h>
00005 #include <coopy/Patcher.h>
00006 
00007 namespace coopy {
00008   namespace cmp {
00009     class SqlCompare;
00010   }
00011 }
00012 
00013 class coopy::cmp::SqlCompare {
00014 public:
00015   coopy::store::DbiSqlWrapper *db;
00016   coopy::store::SqlTable local;
00017   coopy::store::SqlTable remote;
00018   coopy::cmp::Patcher& output;
00019 
00020   SqlCompare(coopy::store::DbiSqlWrapper *db, 
00021              const coopy::store::SqlTableName& table1, 
00022              const coopy::store::SqlTableName& table2,
00023              coopy::cmp::Patcher& output) :
00024   db(db), local(db,table1), remote(db,table2), output(output)
00025   {
00026   }
00027 
00028   bool validateSchema();
00029 
00030   bool apply();
00031 };
00032 
00033 
00034 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines