util

util / MySqlConfig / 0.1.2

README.md

Overview

Before using the util/MySql algorithm to query databases, you must first configure your MySql credentials via this algorithm. The configuration will be stored in a Hosted Data collection accessible only by you.

Usage

ParameterDescription
hostMySql Host
userMySql Username
passwdMySql Password
dbMySql Database Name

Any other parameter allowed in pymysql.connect(), such a port, may be optionally added.

example:

{
  "host":"fakeserver.net",
  "user":"someuser",
  "passwd":"somepass",
  "db":"somedb"
}

Specifying namespaces

You may wish to be able to store different sets of credentials; you can do so by specifying a namespace as follows:

ParameterDescription
namespaceany alphanumeric string
confighost, user, passwd, and db

example:

{
	"namespace": "staging",
	"config": {
		"host":"fakeserver.net",
		"user":"someuser",
		"passwd":"somepass",
		"db":"somedb"
	}
}