⚠️ Depricated repo, please use https://github.com/mindsdb/mindsdb-js-sdk ⚠️
MindsDB generates metadata about your specific machine learning task, that you can visualize through our graphical user interface MindsDB GUI.
Using npm:
$ npm install mindsdb-js-sdk
Using yarn:
$ yarn add mindsdb-js-sdk
Commands should executed from javascript/
folder.
- install dependencies:
yarn
npm install
- build:
yarn build
npm run build
example of usage:
import MindsDB from 'mindsdb-js-sdk';
//connection
const connectData = {
email : '[email protected]', // mindsdb user
password : '' // mindsdb Password
}
const test = async () => {
const connect = await MindsDB.connect(connectData);
const getFiles = await MindsDB.getFiles();
const setQuery = await MindsDB.setQuery("SELECT * FROM example_db.demo_data.home_rentals LIMIT 10;");
console.log('=Get Account Status=>');
console.log(connect);
console.log('=Get Files=>');
console.log(getFiles);
console.log('=Set Files=>');
console.log(setQuery);
};
test();
Initialize connection to MindsDB server
params
- email - mindsdb Email
- password - mindsdb Password
returns Mindsdb User Info
Clear connection data
returns undefined
Send query
returns query response