Class FirebirdSqlOptimizer
- Namespace
- LinqToDB.DataProvider.Firebird
- Assembly
- linq2db.dll
public class FirebirdSqlOptimizer : BasicSqlOptimizer, ISqlOptimizer
- Inheritance
-
FirebirdSqlOptimizer
- Implements
- Inherited Members
- Extension Methods
Constructors
FirebirdSqlOptimizer(SqlProviderFlags)
public FirebirdSqlOptimizer(SqlProviderFlags sqlProviderFlags)
Parameters
sqlProviderFlags
SqlProviderFlags
Fields
LikeFirebirdEscapeSymbols
protected static string[] LikeFirebirdEscapeSymbols
Field Value
- string[]
Properties
LikeCharactersToEscape
Characters with special meaning in LIKE predicate (defined by LikeCharactersToEscape) that should be escaped to be used as matched character.
Default: ["%", "_", "?", "*", "#", "[", "]"]
.
public override string[] LikeCharactersToEscape { get; }
Property Value
- string[]
LikeValueParameterSupport
public override bool LikeValueParameterSupport { get; }
Property Value
Methods
ConvertExpressionImpl(ISqlExpression, ConvertVisitor<RunOptimizationContext>)
public override ISqlExpression ConvertExpressionImpl(ISqlExpression expression, ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext> visitor)
Parameters
expression
ISqlExpressionvisitor
ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext>
Returns
ConvertFunction(SqlFunction)
protected override ISqlExpression ConvertFunction(SqlFunction func)
Parameters
func
SqlFunction
Returns
ConvertSearchStringPredicate(SearchString, ConvertVisitor<RunOptimizationContext>)
public override ISqlPredicate ConvertSearchStringPredicate(SqlPredicate.SearchString predicate, ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext> visitor)
Parameters
predicate
SqlPredicate.SearchStringvisitor
ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext>
Returns
Finalize(MappingSchema, SqlStatement, DataOptions)
Finalizes query.
public override SqlStatement Finalize(MappingSchema mappingSchema, SqlStatement statement, DataOptions dataOptions)
Parameters
mappingSchema
MappingSchemastatement
SqlStatementdataOptions
DataOptions
Returns
- SqlStatement
Query which is ready for optimization.
FinalizeStatement(SqlStatement, EvaluationContext, DataOptions)
public override SqlStatement FinalizeStatement(SqlStatement statement, EvaluationContext context, DataOptions dataOptions)
Parameters
statement
SqlStatementcontext
EvaluationContextdataOptions
DataOptions
Returns
IsParameterDependedElement(IQueryElement)
public override bool IsParameterDependedElement(IQueryElement element)
Parameters
element
IQueryElement
Returns
OptimizeExpression(ISqlExpression, ConvertVisitor<RunOptimizationContext>)
public override ISqlExpression OptimizeExpression(ISqlExpression expression, ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext> convertVisitor)
Parameters
expression
ISqlExpressionconvertVisitor
ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext>
Returns
TransformStatement(SqlStatement, DataOptions)
Used for correcting statement and should return new statement if changes were made.
public override SqlStatement TransformStatement(SqlStatement statement, DataOptions dataOptions)
Parameters
statement
SqlStatementdataOptions
DataOptions