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
Parameter | Description |
---|---|
host | MySql Host |
user | MySql Username |
passwd | MySql Password |
db | MySql 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:
Parameter | Description |
---|---|
namespace | any alphanumeric string |
config | host, user, passwd, and db |
example:
{
"namespace": "staging",
"config": {
"host":"fakeserver.net",
"user":"someuser",
"passwd":"somepass",
"db":"somedb"
}
}
Contents