Skip to main content

Function: generateMonitorTableSchema()

function generateMonitorTableSchema(): string;

Defined in: electron/services/database/utils/schema/dynamicSchema.ts:755

Generates the CREATE TABLE SQL statement for the monitors table, including all static and dynamic fields.

Returns​

string

SQL string for creating the monitors table.

Remarks​

Static fields are always present; dynamic fields are generated from monitor type registry.

Example​

const sql = generateMonitorTableSchema();