Synchronization
Posted: Wed 04 Apr 2012 05:28
Hi All,
I am testing Unidac Components and don't know how to do a simple thing.
I have an application which is connected one or two times a day with an MySQL server and uses a local SQLite database.
What is the best way to manually synchronize two identical tables ?
TUniscript, TUniloader, TUnidump ?
I don't want to use some server replication mechanism, I want to trigger the synchro myself and basically make an algorithm like:
select * from LocalDB.Invoices where sincro > mylastsincro.
UniDump/UniScript/whatever.CahedUpdates;
starttransaction
While ther are fields
--->insert fields into UniDump/UniScript/whatever
endWhile
UniDump/UniScript/whatever.excecutesql
UniDump/UniScript/whatever.Applyupdates;
commit;
BTW any opinion about SQLlite vs EmbeddedMYSQL
Thank you for your time.
I am testing Unidac Components and don't know how to do a simple thing.
I have an application which is connected one or two times a day with an MySQL server and uses a local SQLite database.
What is the best way to manually synchronize two identical tables ?
TUniscript, TUniloader, TUnidump ?
I don't want to use some server replication mechanism, I want to trigger the synchro myself and basically make an algorithm like:
select * from LocalDB.Invoices where sincro > mylastsincro.
UniDump/UniScript/whatever.CahedUpdates;
starttransaction
While ther are fields
--->insert fields into UniDump/UniScript/whatever
endWhile
UniDump/UniScript/whatever.excecutesql
UniDump/UniScript/whatever.Applyupdates;
commit;
BTW any opinion about SQLlite vs EmbeddedMYSQL
Thank you for your time.