Made some changes to sms_logger.py script. added PostgreSQL support. script accept variables from OS to select driver and get the DB connection parameters. Also, added charge column to table and replaced rate to have:
rate price per pdu.
charge final price. (rate * pdu_count)
MySQL connection [x] Completed
PostgreSQL connection [x] Completed
Create table dynamically [x] Completed
ENV variable for DB type [x] Completed
ENV variable have default values [x] Completed
ENV variable have default values [x] Completed
Checks
[x] My pull request adheres to the code style of this project
Description
Made some changes to sms_logger.py script. added PostgreSQL support. script accept variables from OS to select driver and get the DB connection parameters. Also, added
charge
column to table and replacedrate
to have:rate
price perpdu
.charge
final price. (rate
*pdu_count
)Checks