chore: initial git load of code space
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
using Strata.SqlTools.SqlBreakdown.Interfaces.Core;
|
||||
|
||||
namespace Strata.SqlTools.SqlBreakdown.Expressions.Functions.DateTime;
|
||||
|
||||
public class TruncateDateFunction : FunctionExpression
|
||||
{
|
||||
public Expression DateTimeExpression { get; }
|
||||
public string DatePart { get; }
|
||||
|
||||
public override string FunctionName => "DATE_TRUNC";
|
||||
|
||||
public TruncateDateFunction(Expression dateTimeExpression, string datePart) : base(datePart, dateTimeExpression)
|
||||
{
|
||||
DateTimeExpression = dateTimeExpression;
|
||||
DatePart = datePart;
|
||||
}
|
||||
|
||||
public override T Accept<T>(IVisitor<T> visitor)
|
||||
{
|
||||
return visitor.VisitFunctionExpression(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user