In MindsDB, files are treated as tables. These are stored in the default files
database. To query a file, you must save this files
database into a variable and then, run the query()
function on it.
Example
Server server = MindsDB.connect();
Database filesDB = server.getDatabase("files");
Query query = filesDB.query("SELECT * FROM file_name");