
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
.. image:: https://img.shields.io/pypi/v/mysqltokenparser.svg :target: https://pypi.python.org/pypi/mysqltokenparser
.. image:: https://img.shields.io/travis/LoveXiaoLiu/mysqltokenparser.svg :target: https://travis-ci.org/LoveXiaoLiu/mysqltokenparser
.. image:: https://readthedocs.org/projects/mysqltokenparser/badge/?version=latest :target: https://mysqltokenparser.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
.. image:: https://pyup.io/repos/github/LoveXiaoLiu/mysqltokenparser/shield.svg :target: https://pyup.io/repos/github/LoveXiaoLiu/mysqltokenparser/ :alt: Updates
A awesome tool that easy to get MySQL's tokens.
0x01 Inistall
.. code:: shell
pip install mysqltokenparser
0x02 Tutorial
.. code:: python
import mysqltokenparser as mtp
sql = u"""
ALTER TABLE t_a_gun2_6_dw_pfm_emp_cm ADD INDEX idx_eob_date(empid_org_bus (200),pfm_date);
"""
tokens = mtp.mysql_token_parser(sql)
print tokens
#{
# "type": "ddl",
# "data": {
# "type": "altertable",
# "data": {
# "tablename": "t_a_gun2_6_dw_pfm_emp_cm",
# "alter_data": [{
# "type": "addindex",
# "data": {
# "indexdefinition": {
# "columnnames": ["empid_org_bus", "pfm_date"]
# },
# "indexname": "idx_eob_date"
# }
# }]
# }
# }
#}
This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage
_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _audreyr/cookiecutter-pypackage
: https://github.com/audreyr/cookiecutter-pypackage
FAQs
Get the mysql's tokens by the tool.
We found that mysqltokenparser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.