cube icon indicating copy to clipboard operation
cube copied to clipboard

How to Retrieve Request Information for the SQL API?

Open w1992wishes opened this issue 1 year ago • 1 comments

Problem

For the REST API, Cube.js can obtain and report request-related information through initApp. Is there a similar method for the SQL API? How can one retrieve request information related to the SQL API?

w1992wishes avatar Dec 26 '23 02:12 w1992wishes

Hi @w1992wishes 👋

I believe initApp (which is deprecated and not recommended for use) has no relation to this question. However, you can use extend_context (https://cube.dev/docs/reference/configuration/config#extend_context) to access some of the request context values. Please try printing them out and see.

How can one retrieve request information related to the SQL API?

I wonder what exactly you're trying to retrieve—and what is your use case?

igorlukanin avatar Jan 02 '24 12:01 igorlukanin