List Data Handlers

Data handlers in MindsDB are components that enable integration with various data sources and systems

Here is how you can fetch all available data handlers directly from Java code:

package org.example;

import mindsdb.MindsDB;
import mindsdb.models.Project;
import mindsdb.services.Query;
import mindsdb.services.Server;
import tech.tablesaw.api.Table;

public class Main {
    public static void main(String[] args) {
        Server server = MindsDB.connect();
        Project mindsdb = server.getProject("mindsdb");
        Query listDataHandlerQuery = mindsdb.query("SHOW HANDLERS WHERE type = 'data'");
        Table dataHandlers = listDataHandlerQuery.fetch();
        System.out.println(dataHandlers);
    }
}

Output will be in Tablesaw Table Object:

Updated on