meterReadingBackup_02a module

class meterReadingBackup_02a.DatabaseManager(credentials)[source]

Bases: object

The Card class represents a single database accessed across a specific mysql connector. It is initialised by passing a set of credentials for opening a connection to a MySQL server; these credentials are passed as a dictionary which defines the values for the ‘user’, ‘password’, ‘host’, ‘port’ and ‘database’ variables to be used to access an existing database on a MySQL server and the value of the ‘raise_on_warnings’ flag to be used over the connection to that database. The class supports query and update functions for a specific (Readings) table in the database, and ‘serverInfo’ and ‘close’ functions for the connection. Work ongoing!

close()[source]
query(sqlQuery)[source]
serverInfo()[source]
update(sqlUpdate, data)[source]
meterReadingBackup_02a.cls()[source]
meterReadingBackup_02a.dateSuffix(date)[source]
meterReadingBackup_02a.formatReading(result, fuelFlag)[source]
meterReadingBackup_02a.main()[source]
meterReadingBackup_02a.printReadings(readings, fuelString)[source]