public function GetPersistExpression(CoreExpression $Expression) { return Expression::FunctionCall('UNHEX', Expression::ValueList([$Expression])); }
private function AddDateTimeInterval(CoreExpression &$ObjectExpression, CoreExpression $Value, $Unit) { $ObjectExpression = Expression::FunctionCall('TIMESTAMPADD', Expression::ValueList([Expression::Keyword($Unit), $Value, $ObjectExpression])); }
private function RandomInt(CoreExpression $Minimum, CoreExpression $Maximum) { //Add one due to flooring the random value $Maximum = $this->Add($Maximum, 1); $DifferenceExpression = Expression::BinaryOperation($Maximum, O\Binary::Subtraction, $Minimum); return $this->MapFunctionCallExpression('floor', [Expression::BinaryOperation($Minimum, O\Binary::Addition, Expression::BinaryOperation(Expression::FunctionCall('RAND'), O\Binary::Multiplication, $DifferenceExpression))]); }
public function GetPersistExpression(CoreExpression $Expression) { return Expression::FunctionCall($this->PersistFunctionName, Expression::ValueList([$Expression])); }