1.0.1 • Published 8 years ago

mysql2api v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

mysql2api

mysql to api

install

npm i -g mysql2api

usage

Please make node version is above 7.6.0

Baisc Usage

mysql2api -c mysql://username:password@host/db?multipleStatements=true

and server started at 0.0.0.0:3307

you can access follow uri

  • //server/api/metadata
  • //server/api/:table
  • //server/api/:table/:id
  • and more in this document

Please make sure multipleStatements param in it

Full Options

mysql2api -c [connection str] -p [listen port] -l [listen host]