Skip to main content

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
TypeNameDescription
Workspace.XBR.Xperiflow.Parsing.SQL.IParseTreeSafetyListenerlistenerThe listener to be used to evaluate the query
Workspace.XBR.Xperiflow.Parsing.SQL.ParseTreeSafetyListenerTypelistenerTypeThe type of listener to be used
System.StringsqlQueryThe query string to be evaluated
System.StringqueryDetailsDetails 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
TypeNameDescription
Workspace.XBR.Xperiflow.Parsing.SQL.IParseTreeSafetyListenerlistenerThe listener to be used to evaluate the query
Workspace.XBR.Xperiflow.Parsing.SQL.ParseTreeSafetyListenerTypelistenerTypeThe type of listener to use
System.StringsqlQueryThe query string to be evaluated
System.StringqueryDetailsDetails about the query's behavior

Inherited Members

  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.ToString

Was this page helpful?