Class Oracle11SqlOptimizer
- Namespace
- LinqToDB.DataProvider.Oracle
- Assembly
- linq2db.dll
public class Oracle11SqlOptimizer : BasicSqlOptimizer, ISqlOptimizer
- Inheritance
-
Oracle11SqlOptimizer
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Oracle11SqlOptimizer(SqlProviderFlags)
public Oracle11SqlOptimizer(SqlProviderFlags sqlProviderFlags)
Parameters
sqlProviderFlags
SqlProviderFlags
Fields
OracleLikeCharactersToEscape
protected static string[] OracleLikeCharactersToEscape
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[]
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
ConvertPredicateImpl(ISqlPredicate, ConvertVisitor<RunOptimizationContext>)
public override ISqlPredicate ConvertPredicateImpl(ISqlPredicate predicate, ConvertVisitor<BasicSqlOptimizer.RunOptimizationContext> visitor)
Parameters
predicate
ISqlPredicatevisitor
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.
IsParameterDependedElement(IQueryElement)
public override bool IsParameterDependedElement(IQueryElement element)
Parameters
element
IQueryElement
Returns
ReplaceTakeSkipWithRowNum(SqlStatement, bool)
Replaces Take/Skip by ROWNUM usage. See 'Pagination with ROWNUM' for more information.
protected SqlStatement ReplaceTakeSkipWithRowNum(SqlStatement statement, bool onlySubqueries)
Parameters
statement
SqlStatementStatement which may contain take/skip modifiers.
onlySubqueries
boolIndicates when transformation needed only for subqueries.
Returns
- SqlStatement
The same
statement
or modified statement when optimization has been performed.
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