Add support for streaming and cursor query execution in SQL templates#1632
Add support for streaming and cursor query execution in SQL templates#1632zZHorizonZz wants to merge 1 commit intoeclipse-vertx:masterfrom
Conversation
Motivation: - Introduce a feature to handle large result sets efficiently with streaming and cursor-based query execution. Changes: - Added `SqlTemplateStream` and `forCursor` methods to `SqlTemplate`. - Added `SqlTemplateStreamImpl`, `CursorSqlTemplateImpl`, and `MappingRowStream` - Added documentation to `index.adoc` with examples
tsegismont
left a comment
There was a problem hiding this comment.
At first glance, I'm wondering why do we need a separate SqlTemplateStream.
In the original issue we talked about adding a couple methods to SqlTemplate and I assumed they would return a Cursor or a RowStream.
|
So, mostly, I think the most handy part of SqlTemplate is the mapTo methods. The issue here is that mapTo methods return |
Motivation:
vertx-sql-client-templatesChanges:
forStreamandforCursormethods toSqlTemplate.SqlTemplateStreamImpl,CursorSqlTemplateImpl, andMappingRowStreamindex.adocwith examplesCloses: #1624