ReplicaDB icon indicating copy to clipboard operation
ReplicaDB copied to clipboard

Delete Mode Functionality

Open MichalisDBA opened this issue 2 years ago • 0 comments

Can we have a mode option to DELETE table data alogn with where clause etc.?

For example

######################## ReplicadB General Options ########################
mode=delete
jobs=1
fetch.size=10000
verbose=true
############################# Soruce Options ##############################
source.connect=jdbc:oracle:thin:@10.1.0.10:1521:TEST
source.user=USER
source.password=PASS

source.table=USER.TABLE
source.where=ID > 10

We can not give TRUNCATE permissions to a user to a specific table. You have to grant them on all tables and schemas and you can not use sink.disable.truncate=false on other modes, complete etc.

That way we can first run replicadb to DELETE the table and then do a COMPLETE or INCREMENTAL insert.

MichalisDBA avatar Nov 28 '23 09:11 MichalisDBA