SQLite Plugin
With our SQLite output plugin, data can be stored in a local or remote SQLite database. This allows for implementing high-frequency and edge-only data collection use-cases as well as storing the data locally only without connecting to the internet. Transferring the SQLite database to a remote computer with an internet connection allows transmiting the data to our cloud afterward.
A ring-buffer setting allows limiting the maximum amount of data stored locally to prevent disc overflow.
File location:
Configuration
Mandatory settings
The following settings are mandatory for running the SQLite output plugin
Setting | Description |
DataSource | Filepath (with filename) pointing to the SQLite database file |
RingBufferTableName | Specify the table which is used for implementing the ring-buffer. Remove this setting, if no ring-buffer behavior is desired. |
AutoIncrementColumn | Name of a column in the SQLITE ringbuffer table. Use an INT autoincrement column for this. |
The SQLite database as well as the desired table need to be available on startup. Senseforce Edge does not create a new database or a new table.
Use the EventDefinition.xml (Data Routing Definition) to define in which tables as well as which columns the data should be inserted.
Sample configuration
A sample MQTT plugin configuration is illustrated below
Advanced Settings
The following settings are available: (Note: the corresponding line in the above sample file is provided in brackets).
Setting | Description |
Mode | File opening mode. Use |
Cache | Represents the caching modes that can be used when creating a new Connection. Valid values: Default, Private, Shared |
NumberOfMessagesToCombine MessageCombineCounterMs | Messages arriving from ingress plugins are batched until the Note: SQLite is very fast when inserting huge batches of data. |
RingBufferLength | Defines the size of the ringbuffer implementation |
Sample file
Last updated