updated vitess.md

This commit is contained in:
hyung-hwan 2023-10-18 16:52:57 +09:00
parent 1ded7684cc
commit b477d12b38

View File

@ -1,6 +1,29 @@
# Vitess
```blockdiag
diagram login {
client [label = "Client"];
gw_sniproxy [label = "sniproxy"]
gw_nginx [label = "nginx"]
gw_redirect_pl [label = "redirect.pl"]
client -> gw_sniproxy -> gw_nginx;
gw_nginx ->gw_redirect_pl;
}
```
```blockdiag
diagram get-page-uuid {
index [ label = "login/index.ant" ]
inc-main [ label = "modules/policy/inc-main.php" ]
sql [ label = "SELECT location.location_group_id, settings FROM ant_policies.location LEFT JOIN ant_policies.policy ON location.location_group_id = policy.location_group_id WHERE ppli =\"eth0\"" ]
index -> inc-main -> sql;
}
```
```mermaid
graph LR
A --- B
@ -60,8 +83,8 @@ int main() {
int x = 100, y = 200;
int sum = calculate(add, x, y);
int diff = calculate(subtract, x, y);
printf("Sum: %d\n", sum);
printf("Difference: %d\n", diff);
printf("Sum: %d\n", sum);
printf("Difference: %d\n", diff);
return 0;
}
```