0 purchases
pymysqljsoncli 0.0.1
pymysql-json-cli
install
pip install pymysql-json-cli
usage
cat << EOF |
SHOW DATABASES;
EOF
pymysql-json
# [{"Database": "information_schema"}, {"Database": "test"}]
cat <<EOF |
SELECT *
FROM %(table_name)s
EOF
pymysql-json --args '{"table_name": "test_table"}'
# [{"test_column": "arg_value"}, {"test_column": "test_value"}]
echo "SHOW DATABASES;" > db.sql
pymysql-json --sqlfile ./db.sql
# [{"Database": "information_schema"}, {"Database": "test"}]
development
Need
cargo-make
docker
lint & test
makers --env-file .env.test tests
lint except python code
makers --env-file .env.test lints
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.