Skip to content

Latest commit

 

History

History
47 lines (43 loc) · 838 Bytes

README.md

File metadata and controls

47 lines (43 loc) · 838 Bytes

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()......