New feature for MyDump. Add IGNORE argument

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
GuzunNicolae
Posts: 78
Joined: Wed 17 Jan 2007 14:16

New feature for MyDump. Add IGNORE argument

Post by GuzunNicolae » Tue 28 Aug 2007 11:46

Hello

I've just had a need of a nice (in my opinion) feature from MyDump.
I have 2 databases. In two different countries. One table of one DB has to be transfered to another DB. But during the day data are inserted in both DBs. It is a kind of master-slave relationship.
So the solution I've found is to dump only the data from the slave with 'IGNORE' argument of the INSERT command and to restore it to the master. This way the records that exists already on the master are ignored, and the new ones are inserted.
Easy and simple. :)
The main problem is that MyDump does not support including 'IGNORE' argument. By now I've done it by hand. But I guess this would be a very nice feature to add in MyDump in the future.

Tell me your opinion about this. Thanks

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 29 Aug 2007 07:21

Thank you for information. We will add such option in the nearest MyDAC builds.

Post Reply