private SqlCompilationResult Compile(ISqlCompileUnit unit, NodeConfiguration nodeConfiguration) { if (nodeConfiguration != null) { return(driver.Compile(unit, nodeConfiguration)); } return(driver.Compile(unit)); }
public void Prepare() { if (compiledStatement != null) { return; } compiledStatement = (NodeConfiguration != null) ? driver.Compile(CompileUnit, NodeConfiguration) : driver.Compile(CompileUnit); CompileUnit = null; Statement = null; }
public void Prepare() { if (compiledStatement != null && accessor != null) { return; } compiledStatement = (NodeConfiguration != null) ? driver.Compile(Statement, NodeConfiguration) : driver.Compile(Statement); accessor = driver.GetDataReaderAccessor(TupleDescriptor); Statement = null; }
private string Compile(ISqlCompileUnit statement) { if (session == null) { return(driver.Compile(statement).GetCommandText()); } var upgradeContext = UpgradeContext.GetCurrent(session.Domain.UpgradeContextCookie); if (upgradeContext != null) { return(driver.Compile(statement, upgradeContext.NodeConfiguration).GetCommandText()); } return(driver.Compile(statement, session.StorageNode.Configuration).GetCommandText()); }