Documentation ¶
Index ¶
Constants ¶
View Source
const ( TIMESTAMP_FORMAT = "2006-01-02 15:04:05" MYSQL_URL_FORMAT = "%s:%s@(%s)/%s" MYSQL_QUERY = "Insert Into %s (DeviceName,TelemetryData,TelemetryTimeStamp) Values('%s','%s','%s')" MYSQL = "mysql" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBHelper ¶
type DBHelper struct { DB *sql.DB Settings *v1alpha1.SQLConnectionSetting }
func (*DBHelper) InsertDataToDB ¶
This table stores telemetry data from various devices. CREATE TABLE ${DbTableName} (
TelemetryID INT AUTO_INCREMENT PRIMARY KEY, DeviceName VARCHAR(255), TelemetryData TEXT, TelemetryTimeStamp TIMESTAMP )
The table is used to track telemetry information for analysis and monitoring.
Click to show internal directories.
Click to hide internal directories.