Skip to content

Commit b51a44d

Browse files
author
unknown
committed
readme update
1 parent 76927e1 commit b51a44d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ Next, the script uses the following library to connect to the database and requi
1818

1919
The following instructions use the `monitor_main.py` file but all instructions can be directly given to the `Monitor` class in the same order
2020

21-
The script uses the following arguments :
22-
- `-h` to display help ( standalone argument )
23-
24-
All other arguments will require the authentication string<br />
25-
The authentication string is just as described in the `psycopg2` documentation
21+
The script uses the following arguments : <br/>
22+
authentication string + display instruction(s) + quantity<br/>
23+
or :<br/>
24+
authentication string + query id
2625

26+
The authentication string is just as described in the `psycopg2` documentation<br/>
2727
Example of authentication string :<br />
2828
`"dbname=test user=user password=my-password host=127.0.0.1 port=5432"`
2929

@@ -46,6 +46,8 @@ The ids are displayed using any of the other instructions
4646

4747
`quantity` is a positive integer used for the maximum displayed queries
4848

49+
`query id` is one of the ids displayed by one of the other instructions. It is used to see the entire, indented and non truncated query
50+
4951
**Note** : the previously shown arguments arguments can be used simultaneously. Therefor the following instruction is valid :<br/>
5052
`[authentification string] mostUsed longestTimeOnAverage mostRowsReturnedAccumulated 10`<br/>
5153
It will display just the queries for `mostUsed`, `longestTimeOnAverage` and `mostRowsReturnedAccumulated` one after an other

0 commit comments

Comments
 (0)