Class QueryEvaluator
Utility class that encapsulates the query evaluation process
Namespace: Workspace.XBR.Xperiflow.Parsing.SQL
Assembly: Xperiflow.dll
Declaration
public static class QueryEvaluator
Methods
EvaluatePotentialAdminQuery(IParseTreeSafetyListener, ParseTreeSafetyListenerType, string, string)
Evaluates a query and returns a QueryBehaviorResponse containing information
about the query's behavior. This should only be used if the "unsafe" flag should
make the query admin-only.
Declaration
public static QueryBehaviorResponse EvaluatePotentialAdminQuery(IParseTreeSafetyListener listener, ParseTreeSafetyListenerType listenerType, string sqlQuery, string queryDetails)
Returns
Workspace.XBR.Xperiflow.Parsing.SQL.QueryBehaviorResponse
A QueryBehaviorResponse object with information about the query
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Parsing.SQL.IParseTreeSafetyListener | listener | The listener to be used to evaluate the query |
| Workspace.XBR.Xperiflow.Parsing.SQL.ParseTreeSafetyListenerType | listenerType | The type of listener to be used |
System.String | sqlQuery | The query string to be evaluated |
System.String | queryDetails | Details about the query's behavior |
EvaluatePotentialWriteQuery(IParseTreeSafetyListener, ParseTreeSafetyListenerType, string, string)
Evaluates a query and returns a QueryBehaviorResponse containing information
about the query's behavior. This should only be used if the "unsafe" flag should
make the query write-only.
Declaration
public static QueryBehaviorResponse EvaluatePotentialWriteQuery(IParseTreeSafetyListener listener, ParseTreeSafetyListenerType listenerType, string sqlQuery, string queryDetails)
Returns
Workspace.XBR.Xperiflow.Parsing.SQL.QueryBehaviorResponse
A QueryBehaviorResponse object with information about the query
Parameters
| Type | Name | Description |
|---|---|---|
| Workspace.XBR.Xperiflow.Parsing.SQL.IParseTreeSafetyListener | listener | The listener to be used to evaluate the query |
| Workspace.XBR.Xperiflow.Parsing.SQL.ParseTreeSafetyListenerType | listenerType | The type of listener to use |
System.String | sqlQuery | The query string to be evaluated |
System.String | queryDetails | Details about the query's behavior |
Inherited Members
System.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString