[
https://issues.apache.org/jira/browse/CAMEL-7447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009345#comment-14009345
]
Antoine DESSAIGNE commented on CAMEL-7447:
------------------------------------------
I would add the following paragraph at the end of the description of
{{outputType}}
{quote}
*Camel 2.14.0:* New {{StreamList}} output type value that streams the result of
the query using an {{Iterator<Map<String, Object>>}}, it should be used along
with the Splitter EIP.
{quote}
And I would update the split example
{code:java}
from("direct:hello")
// here we split the data from the testdb into new messages one by one
// so the mock endpoint will receive a message per row in the table
// the StreamList option allows to stream the result of the query
without creating a List of rows
.to("jdbc:testdb?outputType=StreamList").split(body()).to("mock:result");
{code}
> Allow to stream the result of a database query
> ----------------------------------------------
>
> Key: CAMEL-7447
> URL: https://issues.apache.org/jira/browse/CAMEL-7447
> Project: Camel
> Issue Type: New Feature
> Components: camel-jdbc
> Reporter: Antoine DESSAIGNE
> Fix For: 2.14.0
>
>
> Allow to stream the result of a database query
> Example:
> {code}
> from("direct:streamDB")
> .setBody(constant("select * from customer"))
> .to("jdbc:db?outputType=StreamList")
> .split(body())
> .to("direct:processSingleActor")
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)