|
ESP32 MQTT IoT Communication
|
Abstract Class containing basic functions for inserting JSON objects ito a database. More...

Public Member Functions | |
| str | __str__ (self) |
| Returns an SQL insert query as a str. | |
| str | sql_query (self) |
| Returns The Object encoded into an "INSERT" SQL statement. | |
| None | insert (self, sqlite3.Connection db_connection) |
| Inserts the object into the provided database. | |
Abstract Class containing basic functions for inserting JSON objects ito a database.
Writer Abstract Class
| str device_writer.Writer.__str__ | ( | self | ) |
Returns an SQL insert query as a str.
Returns an SQL insert query as a str
| None device_writer.Writer.insert | ( | self, | |
| sqlite3.Connection | db_connection | ||
| ) |
Inserts the object into the provided database.
| Opened | Sqlite connection |
Inserts the object into the provided database
| str device_writer.Writer.sql_query | ( | self | ) |
Returns The Object encoded into an "INSERT" SQL statement.
Returns The Object encoded into an "INSERT" SQL statement
Reimplemented in device_writer.DeviceWriter, device_writer.SensorWriter, and device_writer.ReadingsWriter.