COOPY » Guide
version 0.6.5
|
#include <SqlCompare.h>
Public Member Functions | |
SqlCompare (coopy::store::DbiSqlWrapper *db, const coopy::store::SqlTableName &table1, const coopy::store::SqlTableName &table2, coopy::cmp::Patcher &output) | |
bool | validateSchema () |
bool | apply () |
Data Fields | |
coopy::store::DbiSqlWrapper * | db |
coopy::store::SqlTable | local |
coopy::store::SqlTable | remote |
coopy::cmp::Patcher & | output |
Definition at line 13 of file SqlCompare.h.
coopy::cmp::SqlCompare::SqlCompare | ( | coopy::store::DbiSqlWrapper * | db, |
const coopy::store::SqlTableName & | table1, | ||
const coopy::store::SqlTableName & | table2, | ||
coopy::cmp::Patcher & | output | ||
) | [inline] |
Definition at line 20 of file SqlCompare.h.
bool SqlCompare::apply | ( | ) |
Definition at line 33 of file SqlCompare.cpp.
References coopy::cmp::RowChange::allNames, coopy::cmp::RowChange::cond, dbg_printf, coopy::cmp::RowChange::indexes, coopy::cmp::RowChange::mode, coopy::cmp::RowChange::names, coopy::cmp::ROW_CHANGE_DELETE, coopy::cmp::ROW_CHANGE_INSERT, coopy::cmp::ROW_CHANGE_UPDATE, coopy::store::SheetCell::toString(), and coopy::cmp::RowChange::val.
Referenced by coopy::store::sqlite::SqliteSheet::compare().
bool SqlCompare::validateSchema | ( | ) |
Definition at line 7 of file SqlCompare.cpp.
References dbg_printf.
Definition at line 15 of file SqlCompare.h.
Definition at line 16 of file SqlCompare.h.
Definition at line 18 of file SqlCompare.h.
Definition at line 17 of file SqlCompare.h.