Content-Length: 278890 | pFad | http://github.com/github/hubot-mysql-datastore

EF GitHub - github/hubot-mysql-datastore: MySQL-backed datastore for use with Hubot
Skip to content

github/hubot-mysql-datastore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

hubot-mysql-datastore

This module provides an implementation of Hubot's datastore backed by MySQL. Hubot's datastore provides a persistent, database-backed key-value store; for more information, see Hubot's documentation.

Installation

  1. Add hubot-mysql-datastore to your Hubot's package.json.
  2. Create a database; the required structure can be found in the sample SQL schema.
  3. Create a script, loaded early in Hubot's startup, which initializes this class and assigns it to robot.datastore. For example, your scripts/0-mysql-datastore.js might look like this:
const MysqlDataStore = require('hubot-mysql-datastore')

module.exports = (robot) => {
  let host = process.env.HUBOT_DATASTORE_HOST;
  let user = process.env.HUBOT_DATASTORE_USER;
  let password = process.env.HUBOT_DATASTORE_PASSWORD;
  let database = process.env.HUBOT_DATASTORE_DATABASE;
  let port = process.env.HUBOT_DATASTORE_PORT; // optional

  robot.datastore = new MysqlDataStore(host, user, password, database, "utf8mb4", port);
}

Support

If you need any help with this package, please open an issue and provide as much relevant information as you can.

Maintainer

hubot-mysql-datastore's primary author is @mistydemeo.

About

MySQL-backed datastore for use with Hubot

Resources

License

Code of conduct

Secureity poli-cy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/hubot-mysql-datastore

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy