Description
The listDatabases()
function lists all data sources connected to MindsDB.
Syntax
Use the listDatabases()
method to list all databases:
/**
* This method retrieves a list of all databases available on the server.
*
* @return List<Database> A list of Database objects representing databases.
*/
public List<Database> listDatabases();
Example:
Server server = MindsDB.connect();
List<Database> databases = server.listDatabases();