ydb-embedded-ui
ydb-embedded-ui copied to clipboard
Add Create Async Replication action to db context menu
Database context menu accessible under ... control must have an Item Create Async Replication that fills Query Editor with template query
CREATE ASYNC REPLICATION my_replication
FOR <remote_table_name> AS <local_table_name> [, <remote_table_name> AS <local_table_name> ...]
WITH (
ENDPOINT=<endpoint>, -- endpoint, e.g. grpcs://mydb.ydb.tech:2135/
DATABASE=<path_to_database>, --/cluster/dynamo
USER=<user>,
PASSWORD=<pwd>,
...
);
Command to stop replication is also needed
@CyberROFL please share a template of a query to stop replication and convert tables to RW state
ALTER ASYNC REPLICATION `my_replication` SET (STATE = 'DONE', FAILOVER_MODE = 'FORCE');
DROP ASYNC REPLICATION `my_replication`;
Templates do exist, but I had error on prestable