Metadata-Version: 2.1
Name: posql
Version: 0.1.2a0
Summary: A small database operation package
Home-page: UNKNOWN
Author: YinYang
Author-email: 01@yinyang.live
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

> 数据库操作有风险，请谨慎对待！一旦出现问题，阴阳亦爱莫能助。切记，勿忘。

```python
import posql

myconn = posql.mysql(passwd='Ycode01')
myconn.select_table('default', 'test')

""" 增
myconn.sql(0).insert({'domain': 'www.baidu.com', 'position': 'start'})
"""

""" 删
myconn.sql(0).where('`id` > 7').delete()
"""

""" 改
myconn.sql(0).where('`id` = 7').update({'position': 'end'})
"""

""" 查
results = myconn.select()
print(results)
"""

"""
results = myconn.where('`id` = 1').sql(1).select()
print(results)
"""

"""
results = myconn.order(field='id').limit(5).select()
print(results)
"""
```


