public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) { if (string.IsNullOrEmpty(_tz) || usageIntent == ClickHouseTypeUsageIntent.ColumnInfo) { return($"DateTime64({_precision})"); } return($"DateTime64({_precision}, '{ProtocolFormatter.EscapeStringValue(_tz)}')"); }
public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) => "DateTime";
public abstract string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent);
public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) => $"Decimal({_length}, {_precision})";
public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) => "Null";
public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) => $"Enum{BaseSize}({string.Join(",", Values.Select(x => $"{x.Item1}={x.Item2}"))})";
public override string AsClickHouseType(ClickHouseTypeUsageIntent usageIntent) => $"Array({InnerType.AsClickHouseType(usageIntent)})";