Package mindsdb

Class MindsDB

java.lang.Object
mindsdb.MindsDB

public class MindsDB extends Object
MindsDB class for connecting to MindsDB server.
  • Constructor Details

    • MindsDB

      public MindsDB()
  • Method Details

    • connect

      public static Server connect(String url, String login, String password, String apiKey, boolean isManaged, Map<String,String> headers)
      Create a connection to MindsDB server.
      Parameters:
      url - URL to MindsDB server.
      login - User login, for cloud version it contains email.
      password - User password to login (for cloud version).
      apiKey - API key to authenticate (for cloud version).
      isManaged - Whether or not the URL points to a managed instance.
      headers - Additional headers to send with the connection, optional.
      Returns:
      Server object.
    • connect

      public static Server connect()
      Create a connection to MindsDB server.
      Returns:
      Server object.
    • connect

      public static Server connect(String url)
      Create a connection to MindsDB server.
      Parameters:
      url - URL to MindsDB server.
      Returns:
      Server object.
    • connect

      public static Server connect(String url, String login, String password)
      Create a connection to MindsDB server.
      Parameters:
      url - URL to MindsDB server.
      login - User login, for cloud version it contains email.
      password - User password to login (for cloud version).
      Returns:
      Server object.
    • connect

      public static Server connect(String url, String login, String password, String apiKey)
      Create a connection to MindsDB server.
      Parameters:
      url - URL to MindsDB server.
      login - User login, for cloud version it contains email.
      password - User password to login (for cloud version).
      apiKey - API key to authenticate (for cloud version).
      Returns:
      Server object.