Class Query

java.lang.Object
mindsdb.services.Query
Direct Known Subclasses:
KnowledgeBase, MDBTable

public class Query extends Object
Query class for handling SQL queries.
  • Constructor Details

    • Query

      public Query(RestAPI api, String sql, String database)
      Constructs a new Query instance with the provided API, SQL query, and database.
      Parameters:
      api - - RestAPI object
      sql - - SQL query
      database - - database name
    • Query

      public Query(RestAPI api, String sql)
      Constructs a new Query instance with the provided API and SQL query.
      Parameters:
      api - - RestAPI object
      sql - - SQL query
  • Method Details

    • fetch

      public tech.tablesaw.api.Table fetch()
      Fetch the result of the SQL query.
      Returns:
      Table object containing the result of the SQL query
    • toString

      public String toString()
      Overrides:
      toString in class Object