@@ -376,18 +376,42 @@ export const getCubestoreResult = (ref: CubeStoreResultWrapper): ResultRow[] =>
376376 return native . getCubestoreResult ( ref ) ;
377377} ;
378378
379+ /**
380+ * Transform and prepare single query final result data that is sent to the client.
381+ *
382+ * @param transformDataObj Data needed to transform raw query results
383+ * @param rows Raw data received from the source DB via driver or reference to a native CubeStore response result
384+ * @param resultData Final query result structure without actual data
385+ * @return {Promise<ArrayBuffer> } ArrayBuffer with json-serialized data which should be directly sent to the client
386+ */
379387export const getFinalQueryResult = ( transformDataObj : Object , rows : any , resultData : Object ) : Promise < ArrayBuffer > => {
380388 const native = loadNative ( ) ;
381389
382390 return native . getFinalQueryResult ( transformDataObj , rows , resultData ) ;
383391} ;
384392
393+ /**
394+ * Transform and prepare multiple query final results data that is sent to the client (used in sqlApiLoad).
395+ *
396+ * @param transformDataArr Array of data needed to transform raw query results
397+ * @param rows Array of raw data received from the source DB via driver or reference to native CubeStore response results
398+ * @param resultDataArr Array of final query result structures without actual data
399+ * @return {Promise<ArrayBuffer> } ArrayBuffer with json-serialized data which should be directly sent to the client
400+ */
385401export const getFinalQueryResultArray = ( transformDataArr : Object [ ] , rows : any [ ] , resultDataArr : Object [ ] ) : Promise < ArrayBuffer > => {
386402 const native = loadNative ( ) ;
387403
388404 return native . getFinalQueryResultArray ( transformDataArr , rows , resultDataArr ) ;
389405} ;
390406
407+ /**
408+ * Transform and prepare multiple query final results data into a single response structure.
409+ *
410+ * @param transformDataArr Array of data needed to transform raw query results
411+ * @param rows Array of raw data received from the source DB via driver or reference to native CubeStore response results
412+ * @param responseData Final combined query result structure without actual data
413+ * @return {Promise<ArrayBuffer> } ArrayBuffer with json-serialized data which should be directly sent to the client
414+ */
391415export const getFinalQueryResultMulti = ( transformDataArr : Object [ ] , rows : any [ ] , responseData : Object ) : Promise < ArrayBuffer > => {
392416 const native = loadNative ( ) ;
393417
0 commit comments