|
AdapterBaseParseInputMeasurementKeys Method
|
Parses input measurement keys from connection string setting.
Namespace: GSF.TimeSeries.AdaptersAssembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.218-beta
Syntax static member ParseInputMeasurementKeys :
dataSource : DataSet *
allowSelect : bool *
value : string *
?measurementTable : string
(* Defaults:
let _measurementTable = defaultArg measurementTable "ActiveMeasurements"
*)
-> MeasurementKey[]
GSF.TimeSeries.Adapters.AdapterBase.ParseInputMeasurementKeys = function(dataSource, allowSelect, value, measurementTable);
View SourceParameters
- dataSource DataSet
- The DataSet used to define input measurement keys.
- allowSelect Boolean
- Determines if database access via "SELECT" statement should be allowed for defining input measurement keys (see remarks about security).
- value String
- Value of setting used to define input measurement keys, typically "inputMeasurementKeys".
- measurementTable String (Optional)
- Measurement table name used to load additional meta-data; this is not used when specifying a FILTER expression.
Return Value
MeasurementKeyUser selected input measurement keys.
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