Namespace LinqToDB.Internal.SqlProvider
Classes
- IntervalLowering
Default lowering of interval nodes onto integral storage: the strategy used when a provider has no native interval type, or has one but the column is not mapped to it.
- SqlCommandExecutionContext
Threaded through the scenario interpreter; the single carrier of inter-step data. Holds one unified result value per step (rows-affected / scalar / output-parameter value / recordset marker), plus the typed rows-affected count of each executed NonQuery step. Gates, the outcome, and parameter forwarding read from it by explicit step index — nothing is pushed or declared by the producing step.
- SqlCommandGroup
A group of steps executed as one physical database command (a single round-trip). A group with more than one step is a combined (multi-statement) command whose results are read across result sets.
- SqlCommandGroupPlan
The physical grouping of a SqlCommandScenario into command groups, produced by the DML service.
- SqlCommandScenario
An ordered list of steps produced for one logical database operation, plus which step(s) yield the outcome. The scenario is a logical plan; how its steps map to physical commands is decided by SqlCommandGroupPlan.
- SqlCommandStep
A single executable step within a SqlCommandScenario. Pure execution data — the step declares only how it runs; its output lands in the SqlCommandExecutionContext. Behavior lives in the interpreter.
- SqlExpressionConvertVisitor
Lowers the SQL AST into provider-concrete form, and — by deriving from SqlExpressionOptimizerVisitor — optimizes each node in the same traversal. Every
VisitXxxhere callsbase.VisitXxxfirst, so a node's children are visited and the node is optimized before it is lowered.That is why the render pipeline needs only ONE pass: OptimizeAndConvertAll<T>(T, NullabilityContext) calls Convert(OptimizationContext, NullabilityContext, IQueryElement) and nothing else. Optimization over the un-lowered AST (the rules that match abstract nodes — nested case-conversion collapse, coalesce flattening,
SqlCompareToExpression) already happened during query build, inSelectQueryOptimizerVisitor.
- SqlStepCondition
A gate: the owning step runs only if the condition holds against an earlier step's result (explicit reference).
Interfaces
- ISqlBuilderRenderContext
The narrow render-time context the SQL builder needs from the query pipeline: the EvaluationContext for evaluating expressions against this run's parameter values, and AddParameter(SqlParameter) to register the parameters the rendered command references. The builder depends only on this — not on the full OptimizationContext, which also drives the optimize/convert pipeline the builder no longer touches.
Enums
- BasicSqlBuilder.ConcatBuildStyle
Built-in strategies for emitting a SqlConcatExpression. Providers select one via ConcatStyle; BuildSqlConcatExpression(SqlConcatExpression) is overridden only when none of the three fits.
- BasicSqlBuilder.WindowNullsPlacement
How the
IGNORE NULLSmodifier of a value/offset window function is emitted relative to the argument list.
- RowFeature
ROW constructor (tuple) feature support flags.
- SqlStepConditionKind
Predicate applied to an earlier step's recorded result to gate a SqlCommandStep.
- SqlStepKind
How a SqlCommandStep is executed against the database.