public function GetColumnDirection(Column $Column) { if (isset($this->Directions[$Column->GetName()])) { return $this->Directions[$Column->GetName()]; } else { return IndexDirection::Ascending; } }
public function __construct(Column $Column, CoreExpression $ValueExpression) { $this->PersistExpression = $Column instanceof Column ? $Column->GetDataType()->GetPersistExpression($ValueExpression) : $ValueExpression; }
public final function AppendColumnData(Relational\Columns\Column $Column, $Value) { $ValueExpression = Relational\Expressions\Expression::Constant($Value); $PersistExpression = $Column->GetDataType()->GetPersistExpression($ValueExpression); if ($ValueExpression === $PersistExpression) { $this->AppendSingleValue($Value); } else { $this->ExpressionCompiler->Append($this, $PersistExpression); } }
public function __construct($Name, $Length, $Precision, $Unsigned = false) { parent::__construct($Name, new Columns\DataType('DECIMAL', [$Length, $Precision], $Unsigned ? 'UNSIGNED' : '', ParameterType::String)); }
private function AppendColumnPosition(QueryBuilder $QueryBuilder, Column $PreviousColumn = null) { return $PreviousColumn === null ? $QueryBuilder->Append('FIRST') : $QueryBuilder->AppendIdentifier('AFTER #', [$PreviousColumn->GetName()]); }