AdapterBaseParseOutputMeasurementKeys Method

Parses output measurement keys from connection string setting.

Definition

Namespace: Gemstone.Timeseries.Adapters
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.180 -- Release Build+bcf005f1549dc3ddc54fe9666e195c1988efceb8
public static MeasurementKey[] ParseOutputMeasurementKeys(
	DataSet? dataSource,
	bool allowSelect,
	string value,
	string measurementTable = "ActiveMeasurements"
)

Parameters

dataSource  DataSet
The DataSet used to define output measurements.
allowSelect  Boolean
Determines if database access via "SELECT" statement should be allowed for defining output measurement keys (see remarks about security).
value  String
Value of setting used to define output measurements, typically "outputMeasurements".
measurementTable  String  (Optional)
Measurement table name used to load additional meta-data; this is not used when specifying a FILTER expression.

Return Value

MeasurementKey
User selected output measurements.

Remarks

Security warning: allowing SELECT statements, i.e., setting allowSelect to true, should only be allowed in cases where SQL injection would not be an issue (e.g., in places where a user can already access the database and would have nothing to gain via an injection attack).

See Also