def METHOD_NAME(self, value: str, coltype: TemporalType) -> str:
    if coltype.rounds:
        return f"to_char(cast({value} as timestamp({coltype.precision})), 'YYYY-MM-DD HH24:MI:SS.FF6')"
    if coltype.precision > 0:
        truncated = f"to_char({value}, 'YYYY-MM-DD HH24:MI:SS.FF{coltype.precision}')"
    else:
        truncated = f"to_char({value}, 'YYYY-MM-DD HH24:MI:SS.')"
    return f"RPAD({truncated}, {TIMESTAMP_PRECISION_POS+6}, '0')"