Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Mode Functionality #165

Open
MichalisDBA opened this issue Nov 28, 2023 · 0 comments
Open

Delete Mode Functionality #165

MichalisDBA opened this issue Nov 28, 2023 · 0 comments

Comments

@MichalisDBA
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant