예제 #1
0
 public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent)
 {
     if (string.IsNullOrEmpty(_tz) || usageIntent == ClickHouseTypeUsageIntent.ColumnInfo)
     {
         return($"DateTime64({_precision})");
     }
     return($"DateTime64({_precision}, '{ProtocolFormatter.EscapeStringValue(_tz)}')");
 }
예제 #2
0
 public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) => "DateTime";
예제 #3
0
 public abstract string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent);
예제 #4
0
 public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) => $"Decimal({_length}, {_precision})";
예제 #5
0
 public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) => "Null";
예제 #6
0
 public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) => $"Enum{BaseSize}({string.Join(",", Values.Select(x => $"{x.Item1}={x.Item2}"))})";
예제 #7
0
 public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) => $"Array({InnerType.AsClickHouseType(usageIntent)})";