QueryService Class

Provides a set of web methods used to query the database. Loosely based on the CartoDB SQL API: https://carto.com/developers/sql-api/reference/

Constructors

QueryService( Database database, javaxt.io.Directory jobDir, javaxt.io.Directory logDir )

Public Methods

getServiceResponse( ServiceRequest request, Database database ) returns ServiceResponse
Used to generate a response to an HTTP request. The default routes are as follows:
  • POST /job - Used to create a new query job and return a jobID
  • GET /job/{jobID} - Returns query results or job status for a given jobID
  • DELETE /job/{jobID} - Used to cancel query for a given jobID
  • GET /jobs - Returns a list of all query jobs associated with the user
  • GET /tables - Returns a list of all the tables in the database
notify( QueryJob job ) returns void
getTables( ServiceRequest request, Database database ) returns ServiceResponse
Returns a list of tables and columns

Public Classes