fpm-plugin-mysql
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dev
sql
src
test
.babelrc
.gitignore
.npmignore
CHANGELOG.md
DockerClean.bat
LICENSE
README.md
docker-compose.dev.yml
package.json
yarn.lock

README.md

FPM-PLUGIN-MYSQL

Basic Info

  • Run Action Hook Name
    • INIT
    • BEFORE_SERVER_START
  • ExtendModule Name: mysql
  • Exception
    • E.Nbiot.SEND_ERROR
      const E = {
          Nbiot: {
              SEND_ERROR: {
              errno: -10041, 
              code: 'SEND_ERROR', 
              message: 'An error occured when the mqtt server publish a message'
              }
          }
      }
  • getDependencies()
    • []
  • The Reference Of The Bind() Method An BizModule Object Contains The Functions
    • send

Usage

$ yarn add fpm-plugin-mysql

Config In config.json

"mysql":
  {
    "host": "localhost",
    "database": "db",
    "username": "root",
    "password": "root",
    "showSql": true
  }

Code

fpm.M.findAsync()......