mysql2api

1.0.1 • Public • Published

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]

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i mysql2api

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • suntao