sqlparse:用于Python的非验证SQL解析器模块

时间:2021-02-22 06:13:51
【文件属性】:
文件名称:sqlparse:用于Python的非验证SQL解析器模块
文件大小:89KB
文件格式:ZIP
更新时间:2021-02-22 06:13:51
Python python-sqlparse-解析SQL语句 sqlparse是用于Python的非验证SQL解析器。 它提供了对SQL语句的解析,拆分和格式化的支持。 该模块与Python 3.5+兼容,并根据的条款。 访问项目页面,为以获取有关该项目的更多信息。 快速开始 $ pip install sqlparse >> > import sqlparse >> > # Split a string containing two SQL statements: >> > raw = 'select * from foo; select * from bar;' >> > statements = sqlparse . split ( raw ) >> > statements [ 'select * from foo;' , 'select * from bar;' ] >> > # Fo
【文件预览】:
sqlparse-master
----setup.py(284B)
----.gitignore(275B)
----Makefile(506B)
----CHANGELOG(17KB)
----sqlparse()
--------__init__.py(2KB)
--------lexer.py(2KB)
--------engine()
--------cli.py(6KB)
--------utils.py(3KB)
--------sql.py(20KB)
--------formatter.py(7KB)
--------__main__.py(610B)
--------tokens.py(2KB)
--------filters()
--------keywords.py(29KB)
--------exceptions.py(342B)
----.travis.yml(418B)
----MANIFEST.in(228B)
----TODO(290B)
----LICENSE(2KB)
----setup.cfg(1KB)
----examples()
--------extract_table_names.py(2KB)
--------column_defs_lowlevel.py(2KB)
----README.rst(2KB)
----tests()
--------conftest.py(2KB)
--------test_tokenize.py(6KB)
--------test_cli.py(3KB)
--------test_grouping.py(22KB)
--------test_regressions.py(13KB)
--------__init__.py(0B)
--------files()
--------test_keywords.py(424B)
--------test_parse.py(15KB)
--------test_format.py(25KB)
--------test_split.py(5KB)
----docs()
--------Makefile(3KB)
--------sqlformat.1(2KB)
--------source()
----AUTHORS(3KB)
----.editorconfig(338B)
----tox.ini(303B)

网友评论