Socket
Book a DemoInstallSign in
Socket

bs-mysql

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-mysql

Bucklescript bindings for mysql.js, written in Reason.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

MySQL.js Bindings for Reason/Bucklescript

This repository contains in-progress Reason/Bucklescript bindings for mysql.

Example

let conn = Mysql.createConnection(~host="127.0.0.1", ~port=3306, ~user="root", ());

Mysql.query(conn, "SHOW DATABASES", result => {
  switch (result) {
  | Ok(results) => Js.log(results.results)
  | Error(err) => Js.log(err##message)
  }
});

Mysql.endConnection(conn);

Installation

  • Install the bindings using npm install --save bs-mysql
  • Add the bindings to bsconfig.json:
{
  "bs-dependencies": ["bs-mysql"]
}

Build

npm run build

Build + Watch

npm run start

Current State & Todo

The API is still very incomplete. Use at your own risk, contributions are welcome!

Keywords

BuckleScript

FAQs

Package last updated on 01 Feb 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.