submit_request
- submit_request<T = Record<string, any>>(
endpoint: string,
request: Record<string, any>,
callback?: GPUdbCallback,
): Promise<T>Parameters
- endpoint: string
The endpoint path, such as
/show/table - request: Record<string, any>
The request object, matching the endpoint’s schema
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<T>
Promise resolving to the endpoint’s response
- Defined in src/GPUdb.ts:1847
- endpoint: string
Submits a request to any endpoint by path.
For endpoints without a generated method, such as those of the host manager, and for callers that already hold a request object. The call behaves exactly like the generated methods: it fails over, it is job-wrapped when the endpoint is in
job_endpoints, it returns a promise and invokes the optional callback, and in the standalone build it blocks and returns the response itself when no callback is given.