sampler-fork/example-interactive-shell.yml

31 lines
912 B
YAML

variables:
PGPASSWORD: fred
mongoconnection: mongo --quiet --host=localhost blog
mysqlconnection: mysql -u root -s --database mysql --skip-column-names
neo4jconnection: cypher-shell -u neo4j -p 121314 --format plain
postgresconnection: psql -h localhost -U postgres --no-align --tuples-only
sshconnection: ssh -i ~/sqshq.pem ec2-user@3.215.108.82
textboxes:
- title: Neo4j
position: [[0, 0], [10, 40]]
init: $neo4jconnection
sample: RETURN rand();
transform: echo "$sample" | tail -n 1
- title: Postgres
position: [[10, 0], [9, 40]]
init: $postgresconnection
sample: select random();
- title: MySQL
position: [[19, 0], [10, 40]]
init: $mysqlconnection
sample: select rand();
- title: MongoDB
position: [[29, 0], [10, 40]]
rate-ms: 500
init: $mongoconnection
sample: sleep(3000);Date.now();
- title: SSH
position: [[39, 0], [41, 40]]
init: $sshconnection
sample: top