README
PNR-Stat
This script is analysing the database records to extract some statistics
Information
- Number of passengers per PNR
- Number of segments per PNR
- Number of services per PNR
--------------------------------------
PASSENGER PER PNR
--------------------------------------
1099 _______ _________________________________________________________
1014 _______ _________________________________________________________
930 _______ _________________________________________________________
845 _______ _________________________________________________________
761 _______ _________________________________________________________
676 _______ _________________________________________________________
592 _______ _ __________________________________________________
507 _______ _ __________________________________________________
423 _______ _ __________________________________________________
338 _______ _ __________________________________________________
254 _______ _ __________________________________________________
169 _______ _ __________________________________________________
85 _______ _ _▄▄▄▄▄▄_▄▄▄▄▄▄____________________________________
0 _______ _ _ _ ____________________________________
0 1 2 3 4 5 6 7 8 9
How to install
npm install pnr-stats -g
How to use
pnr-stats --db=mongodb://LOGIN:PASSWORD@IP:PORT/DATABASE
Options
- --limit: max number of record to analyse by default 2000
- --query: json mongo style query by default {}
- --output: output in the console as CSV or by default BAR