Mysql Connector
This plugin connects to Mysql and executes a SQL query.
Configuration
Example
{
"source": {
"name": "mysql",
"id": "a8430a5c-43de-44eb-9c25-2b1426aed3a0"
},
"type": "select",
"query": "SELECT * FROM user WHERE User=%s;",
"data": [
"root"
],
"timeout": 10
}
- source this a resource with MySQL credentials. See below for credentials schema.
- type - type of query, possible values are ['select', 'insert', 'delete', 'update']
- query - this is the SQL prepared statement. It will replace %s with data provided in data key. This is a sequential order so order of %s and data matters.
- data - data to replace in SQL prepared statement template.
- timeout - query timeout.
Output
It returns the data in JSON.
Example
{
"result": [
{
"Host": "%",
"User": "root",
"Select_priv": "Y",
"Insert_priv": "Y",
"Update_priv": "Y",
"Delete_priv": "Y",
"Create_priv": "Y",
"Drop_priv": "Y"
},
{
"Host": "localhost",
"User": "root",
"Select_priv": "Y",
"Insert_priv": "Y",
"Update_priv": "Y",
"Delete_priv": "Y",
"Create_priv": "Y",
"Drop_priv": "Y"
}
]
}
If the query is of insert type then the output result will have last inserted record id.
If the query is of type "delete","update", or "create" then the output result will have input payload.
Errors
Not all arguments converted during string formatting
This error is raised when the number of %s placeholders and data do not match. That means the number of placeholders is not equal to the number of data.
Metadata
Release files for tracardi-mysql-connector 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tracardi-mysql-connector-0.6.0.tar.gz | 9.2 kB | Without provenance | Details for tracardi-mysql-connector-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tracardi_mysql_connector-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for tracardi_mysql_connector-0.6.0-py3-none-any.whl |
Total release size: 18.5 kB
Release files / tracardi-mysql-connector-0.6.0.tar.gz
| Download URL | tracardi-mysql-connector-0.6.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59935fdf2fb87a6565c49502ef7fdb460331e79b0b5cb623a2e492874737fc73
|
|
BLAKE2b-256 checksum How to use checksums |
8093e834aae705c12c05052e16c7cd17ee6d9b3d72e8f59fdc6ee7cda345bdf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / tracardi_mysql_connector-0.6.0-py3-none-any.whl
| Download URL | tracardi_mysql_connector-0.6.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c78d73a37a61ed65998e4796a8bc6f64b1e569c2acbace7dc7c67785dd74306
|
|
BLAKE2b-256 checksum How to use checksums |
4f5268c32a4b219ca2ec74d2ac86d98653a0a1ac32151aa5a47e0206253ba138
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for tracardi-mysql-connector 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.