sling_aptsell/sling_cli.sh

23 lines
998 B
Bash

sling conns discover tidb_test --schema autoflow
sling run --src-conn tidb_test --src-stream 'select * from crm_accounts limit 10' --stdout
sling run --src-conn tidb_test --src-stream 'autoflow.crm_accounts' --tgt-conn tidb_local --tgt-object 'autoflow.crm_accounts' --mode full-refresh
sling run --src-conn tidb_test --src-stream 'autoflow.crm_accounts' --tgt-conn tidb_local --tgt-object 'autoflow.crm_accounts' --mode full-refresh
sling run -r sync_test.yaml
sling run -r sync_dev.yaml
sling run -r sync_prod_cbg.yaml
# sling conns set CONN_NAME type=mysql host=HOST_IP port=4000 username=USER password=PASS database=DB_NAME
sling conns set tidb_homelab_aptselldemo type=mysql host=192.168.2.210 port=4000 username=root database=aptselldemo
sling conns set tidb_prod_aptselldemo type=mysql host=115.190.25.86 port=4000 username=root password=n-zJ@2s^t3r+4HA718 database=qingflow
sling run -r sync_aptselldemo.yaml
sling run -r sync_demo_local.yaml
sling run -r sync_demo.yaml