Skip to content

team4yf/fpm-plugin-mysql

Repository files navigation

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

$ npm i fpm-plugin-mysql --save

Config In config.json

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

Code

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

Releases

No releases published

Packages

No packages published