Split statements for MySQL
Project description
Split-MySQL
将字符串形式的MySQL语句拆分成每句为一个元素的列表。
使用方法
from split_mysql import split_mysql
sql = '''use abc;select 1;'''
my_list = split_mysql(sql)
if isinstance(my_list, list):
print('拆分成功。')
for i, v in enumerate(my_list):
print(i, v)
else:
print('拆分失败。')
print(my_list)
系统兼容性
- Linux
- MacOS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file split_mysql-1.0.1-py3-none-any.whl.
File metadata
- Download URL: split_mysql-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.5 Darwin/22.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2416aae921c8d54e82c41e44860f2dda37e2b6fcc6aab842b815099bc292937a
|
|
| MD5 |
101bbc84e4e6b3f3b5a40f286172db58
|
|
| BLAKE2b-256 |
c51143a2b188f448ae19df28d556723a760c12dbe7a9f9d25e08848ba9f20ca2
|