Class TimestampFlavours

java.lang.Object
dev.frostlake.types.TimestampFlavours

public final class TimestampFlavours extends Object
Which timestamp flavour a FUNCTION NAME asks for. Several conversions share one implementation but not one declared type — live reports TO_TIMESTAMP_LTZ(d) as TIMESTAMP_LTZ, TIMESTAMP_TZ_FROM_PARTS(…) as TIMESTAMP_TZ, and the unsuffixed spellings as TIMESTAMP_NTZ — so the registered name is what decides, not the shared code behind it.
  • Method Details

    • forFunctionName

      public static DateTimeType forFunctionName(String functionName)
      The flavour a function of that name declares.
      Parameters:
      functionName - the registered name
      Returns:
      the timestamp type it reports