查询变得简单
QMS的Python项目详细描述
查询变得简单
依赖关系
- pymysql
功能
- 提供SQL查询编译器
待办事项
- 提供更好的方法来定义qms.json(和另一种方法)
- 安装过程
- 任何其他类型的查询(更新、删除、显示…)
- 测试
用法
from qms import * load_qms_config('qms.json')query= Query.select('some, field', 'table_name').where("field", Query.LIKE, '%a value%').orWhere("some_other_field", Query.EQUAL, "another_value"); print(query.get())results= query.execute("my_handler") print(results)