haf plugin sql publish
The plugin sql publish of haf, now only support mysql
How to get it?
by pip tool
tsbx-mw# pip install hafsqlpublish
by src
tsbx-mw# git clone https://github.com/hautof/haf-plugin-sqlpublish ./
tsbx-mw# python setup.py install
usage
notice
first of all , you must create an new database by the haf-plugin-sqlpublish/haf_publish.sql script file.
using as haf params
python -m haf run --sql-publish=True --sql-publish-db=192.168.0.101:6606@root:test123@haf_publish
using as haf config
"sql_publish": {
"id": 1,
"sql_name": "upload",
"publish": true,
"host": "192.168.1.2",
"port": 3306,
"username": "root",
"password": "test123",
"database": "haf_publish",
"protocol": "mysql"
}
design
Metadata
Release files for hafsqlpublish 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hafsqlpublish-0.0.8-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / hafsqlpublish-0.0.8-py2.py3-none-any.whl
| Download URL | hafsqlpublish-0.0.8-py2.py3-none-any.whl |
|---|---|
| Size | 27.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
476f6fdf79a2c39a12082b1d23c1ed30d1b70fc691d8814b363a7ecb0eb4f3fe
|
|
BLAKE2b-256 checksum How to use checksums |
70fe44f850b9682c510aeb0dcce4b2487b70dbd7428df29e93253e4840bf6159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|