Skip to content

Commit 7e1d7ba

Browse files
authored
Merge pull request #2 from dbpunk-labs/feat/db3_mysql_backup
add mysql_cdc into demo
2 parents 51cbd04 + f21e294 commit 7e1d7ba

File tree

4 files changed

+522
-2
lines changed

4 files changed

+522
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ sp-keyring = { version = "6.0.0", git = "https://github.com/dbpunk-labs/substrat
5555
pallet-sql-db = { git = "https://github.com/dbpunk-labs/db3.git", branch = "fix/db3-runtime-compile" }
5656
clap = { version = "2.33", features = ["yaml"] }
5757
wabt = "0.10.0"
58-
58+
mysql_cdc = { git = "https://github.com/rusuly/mysql_cdc.git"}
5959

6060
[features]
6161
default = ["std", "ws-client"]

examples/db3_backup.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "substrate-api-client-examples"
2+
version: "1.0.0"
3+
about: Example codes showing the api's capabilities
4+
authors: "Supercomputing Systems AG <info@scs.ch>"
5+
6+
# AppSettings can be defined as a list and are **not** ascii case sensitive
7+
settings:
8+
- ColoredHelp
9+
10+
args:
11+
- node-server:
12+
long: url
13+
help: Set the node server IP address including ws:// or wss:// prefix
14+
takes_value: true
15+
- node-port:
16+
long: port
17+
help: Set the websocket port to listen for substrate events
18+
takes_value: true
19+
- node-ns:
20+
long: ns
21+
help: Set the namespace
22+
takes_value: true
23+
- mysql-username:
24+
long: username
25+
help: Set the username of the mysql
26+
takes_value: true
27+
- mysql-password:
28+
long: password
29+
help: Set the passowrd of the mysql
30+
takes_value: true
31+
- mysql-database:
32+
long: database
33+
help: Set the bakcup database
34+
takes_value: true
35+
36+
37+

0 commit comments

Comments
 (0)