Now, restore jobs initiate a transaction for each table restoration.
Implemented insert commands based on COPY format data.
Added support for ON CONFLICT DO NOTHING.
Implemented errors exclusion for insert-like commands
Implemented full --exit-on-error support for data section
Fixed an issue where an error in a subsequent restoration task could potentially rollback data inserted during a previous task
Introduced the --restore-in-order parameter for the restore command, which enforces restoration in topological order. This is useful when all references and constraints are deployed, and we only need to restore the data
Refactored the restore and dump command code by decomposing it into simpler functions.
Removed the code responsible for toc.Entry reception; now, []*toc.Entry is generated directly based on the context.
TODO:
Need to write a doc - DONE
Restore tables in topological order - DONE
Implement a restoration controller that distributes table restoration tasks across workers, ensuring that dependent tables are only restored after all the tables they depend on have been successfully restored - DONE
Add warning that constraint might be violated in restore command for restore-in-order parameter - DONE
--restore-in-order
parameter for the restore command, which enforces restoration in topological order. This is useful when all references and constraints are deployed, and we only need to restore the datatoc.Entry
reception; now,[]*toc.Entry
is generated directly based on the context.TODO:
restore-in-order
parameter - DONECloses #153