Documentation ¶
Index ¶
Constants ¶
View Source
const ( TIMESTAMP_FORMAT = "2006-01-02 15:04:05" SQLSERVER_URL_FORMAT = "sqlserver://%s:%s@%s?database=%s" SQLSERVER_QUERY = "Insert Into %s (DeviceName,TelemetryData,TelemetryTimeStamp) Values('%s','%s','%s')" SQLSERVER = "sqlserver" )
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 IDENTITY(1,1) PRIMARY KEY, DeviceName VARCHAR(255), TelemetryData TEXT, TelemetryTimeStamp DATETIME
) The table is used to track telemetry information for analysis and monitoring.
Click to show internal directories.
Click to hide internal directories.