Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mindsdb-js-sdk

Package Overview
Dependencies
Maintainers
2
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mindsdb-js-sdk

[![npm version](https://img.shields.io/badge/npm-v6.13.7-orange)](https://www.npmjs.com/package/mindsdb-js-sdk) [![axios](https://img.shields.io/badge/axios-v0.18.1-orange)](https://www.npmjs.com/package/mindsdb-js-sdk) [![install size](https://img.shield

  • 1.0.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
233
increased by3.1%
Maintainers
2
Weekly downloads
 
Created
Source

MindsDB

npm version axios install size

JS MindsDB SDK

MindsDB generates metadata about your specific machine learning task, that you can visualize through our graphical user interface MindsDB GUI.

Installing

Using npm:

$ npm install mindsdb-js-sdk

Using yarn:

$ yarn add mindsdb-js-sdk

Install and build

Commands should executed from javascript/ folder.

  1. install dependencies:
yarn
npm install
  1. build:
yarn build
npm run build

Usage

example of usage:

import MindsDB from 'mindsdb-js-sdk';

//connection

const connectData = {
    email : 'user@muser.com', // 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();

Documentation

root methods

MindsDB.connect(url)

Initialize connection to MindsDB server

params

  • email - mindsdb Email
  • password - mindsdb Password

returns Mindsdb User Info

MindsDB.disconnect()

Clear connection data

returns undefined

MindsDB.setQuery()

Send query

returns query response

License

MIT

Keywords

FAQs

Package last updated on 26 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc