You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executesthestatementandprocessestheresultsetrowbyrow. UsethisAPIinsteadof [`cds.run`](#srv-run-query) ifyouexpectlargeresultsets. Thenthey're processed in a streaming-like fashion instead of materializing the full result set in memory before processing.
comment in source:
node_modules/@sap/cds/lib/srv/srv-api.js
/**
Streaming API variant of .run(). Subclasses should override this to support real streaming.
The default implementation doesn't stream, but simply invokes the callback on each row.
The callback function is invoked with (row, index).
*/
Does this mean that we have to implement this ourselves? I can't find a subclass for this or is that nearly planned? We've come across this point several times and after the big release of the revised documentary we wanted to address it here as well.
For example, the hana with the stream module actually supports this function.
The text was updated successfully, but these errors were encountered:
correct, it is not yet implemented by any subclass (cds.DatabaseService, mainly). i'll try to clarify that. the implementation in cds.Service itself is there to ensure the API and will/ must always remain a mock.
The documentation describes a behaviour that is not implemented:
docs/node.js/core-services.md
Line 1064 in 44749e0
comment in source:
Does this mean that we have to implement this ourselves? I can't find a subclass for this or is that nearly planned? We've come across this point several times and after the big release of the revised documentary we wanted to address it here as well.
For example, the hana with the stream module actually supports this function.
The text was updated successfully, but these errors were encountered: