AdapterBaseParseInputMeasurementKeys Method
Parses input measurement keys from connection string setting.
Namespace: Gemstone.Timeseries.AdaptersAssembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.136 -- Release Build+045677775a56d15698be6ced5ce5213063e47102
public static MeasurementKey[] ParseInputMeasurementKeys(
DataSet? dataSource,
bool allowSelect,
string value,
string measurementTable = "ActiveMeasurements",
string[] measurementColumns = null
)
Public Shared Function ParseInputMeasurementKeys (
dataSource As DataSet,
allowSelect As Boolean,
value As String,
Optional measurementTable As String = "ActiveMeasurements",
Optional measurementColumns As String() = Nothing
) As MeasurementKey()
public:
static array<MeasurementKey^>^ ParseInputMeasurementKeys(
DataSet^ dataSource,
bool allowSelect,
String^ value,
String^ measurementTable = L"ActiveMeasurements",
array<String^>^ measurementColumns = nullptr
)
Gemstone.Timeseries.Adapters.AdapterBase.ParseInputMeasurementKeys = function(dataSource, allowSelect, value, measurementTable, measurementColumns);
- 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.
- measurementColumns String (Optional)
- Columns in measurementTable that should be searched when not applying a Filter Expression
MeasurementKeyUser selected input measurement keys.
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).