Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6366

SQL component - Add option to dictate if output is list, object or map

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.12.0
    • camel-sql
    • None
    • Unknown

    Description

      When using the sql component, the output is always a List<Map>.

      It would be nice if you could configure an option to say its a

      • selectForObject
      • selectForList
      • selectForMap

      Like MyBatis can do.

      Also we can consider having a way to store the output on a header instead of altering the body.

      Attachments

        1. CAMEL-6366.patch
          29 kB
          Zemian Deng
        2. CAMEL-6366.patch.v2
          34 kB
          Zemian Deng

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: