Comparing version 0.1.0 to 0.1.2
{ | ||
"name": "ocaml-mysql", | ||
"name": "bs-mysql", | ||
"version": "0.1.0", | ||
"sources": [ | ||
{ | ||
"dir": ".", | ||
"files": [ "mysql.ml" ] | ||
} | ||
"sources": [ | ||
"src", | ||
{ | ||
"dir": "example", | ||
"type": "dev" | ||
} | ||
], | ||
@@ -15,5 +16,4 @@ "package-specs": { | ||
"suffix": ".bs.js", | ||
"bs-dependencies": [ | ||
// add your bs-dependencies here | ||
] | ||
"namespace": true, | ||
"refmt": 3 | ||
} |
{ | ||
"name": "bs-mysql", | ||
"description": "Bucklescript-consumable MySQL library.", | ||
"version": "0.1.0", | ||
"scripts": { | ||
"clean": "bsb -clean-world", | ||
"build": "bsb -make-world", | ||
"watch": "bsb -make-world -w" | ||
}, | ||
"keywords": [ | ||
"BuckleScript", | ||
"mysql", | ||
"database" | ||
], | ||
"license": "LGPL", | ||
"devDependencies": { | ||
"bs-platform": "^2.1.0" | ||
}, | ||
"bugs": "https://github.com/davidgomes/ocaml-mysql/issues", | ||
"homepage": "https://github.com/davidgomes/ocaml-mysql", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/davidgomes/ocaml-mysql" | ||
} | ||
"name": "bs-mysql", | ||
"description": "Bucklescript bindings for mysql.js, written in Reason.", | ||
"version": "0.1.2", | ||
"scripts": { | ||
"build": "bsb -make-world", | ||
"start": "bsb -make-world -w", | ||
"example": "node example/example.bs.js", | ||
"clean": "bsb -clean-world" | ||
}, | ||
"keywords": [ | ||
"BuckleScript", | ||
"reason", | ||
"reasonml", | ||
"mysql", | ||
"databases" | ||
], | ||
"author": "David Gomes <davidrafagomes@gmail.com>", | ||
"license": "MIT", | ||
"bugs": "https://github.com/davidgomes/bs-mysql/issues", | ||
"homepage": "https://github.com/davidgomes/bs-mysql", | ||
"peerDependencies": { | ||
"mysql": "^2.15.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/davidgomes/bs-mysql" | ||
}, | ||
"devDependencies": { | ||
"bs-platform": "^2.1.0", | ||
"mysql": "^2.15.0" | ||
} | ||
} |
@@ -0,16 +1,50 @@ | ||
# MySQL.js Bindings for Reason/Bucklescript | ||
This repository contains in-progress Reason/Bucklescript bindings for [mysql](https://github.com/mysqljs/mysql). | ||
# Build | ||
## Example | ||
```ocaml | ||
let conn = Mysql.connect(~host="127.0.0.1", ~port=3306, ~user="root"); | ||
Mysql.query( | ||
conn, | ||
"SHOW DATABASES", | ||
(error, results, fields) => | ||
switch (Js.Nullable.to_opt(error)) { | ||
| None => | ||
Js.log(results); | ||
Js.log(fields) | ||
| Some(error) => Js.log(error##message) | ||
} | ||
); | ||
Mysql.endConnection(conn); | ||
``` | ||
## Installation | ||
1. Install the bindings using `npm install --save bs-mysql` | ||
2. Add the bindings to `bsconfig.json`: | ||
```json | ||
{ | ||
"bs-dependencies": [ | ||
"bs-mysql" | ||
] | ||
} | ||
``` | ||
## Build | ||
``` | ||
npm run build | ||
``` | ||
# Watch | ||
## Build + Watch | ||
``` | ||
npm run watch | ||
npm run start | ||
``` | ||
## Current State & Todo | ||
# Editor | ||
If you use `vscode`, Press `Windows + Shift + B` it will build automatically | ||
The API is still very incomplete. Use at your own risk, contributions are welcome! |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
0
0
100
2
1
2870
1
2
5
50