sqlalchemy-json-api:快速SQLAlchemy查询生成器,用于返回JSON API响应

上传者: 42139460 | 上传时间: 2022-08-26 00:15:07 | 文件大小: 41KB | 文件类型: ZIP
SQLAlchemy-JSON-API 快速的查询构建器,用于返回与兼容的结果。 目前仅支持 。 为什么? 速度对于JSON API至关重要。 与直接从数据库返回JSON相比,在获取对象并在Python服务器上对其进行序列化要慢一个数量级。 这是因为 当序列化发生在Python端时,使用单个查询很难或不可能获取复杂的对象结构。 可以通过数据库中的单个查询返回任何与JSON API兼容的对象结构。 SQLAlchemy对象内存不足。 与其直接从数据库作为JSON直接返回数据,不如将其首先转换为Python数据类型,然后再序列化回JSON。 通过遵循此逻辑,直接从数据库返回JSON似乎很容易。 但是查询很难编写。 幸运的是,这是SQLAlchemy-JSON-API拯救这一天的地方。 因此,与其写这样的东西: SELECT row_to_json(main_json_query.

文件下载

资源详情

[{"title":"( 35 个子文件 41KB ) sqlalchemy-json-api:快速SQLAlchemy查询生成器,用于返回JSON API响应","children":[{"title":"sqlalchemy-json-api-master","children":[{"title":".travis.yml <span style='color:#111;'> 578B </span>","children":null,"spread":false},{"title":"sqlalchemy_json_api","children":[{"title":"utils.py <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 306B </span>","children":null,"spread":false},{"title":"query_builder.py <span style='color:#111;'> 27.46KB </span>","children":null,"spread":false},{"title":"exc.py <span style='color:#111;'> 964B </span>","children":null,"spread":false},{"title":"hybrids.py <span style='color:#111;'> 1021B </span>","children":null,"spread":false}],"spread":true},{"title":"README.rst <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"quickstart.rst <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"fields.rst <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"api.rst <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"conf.py <span style='color:#111;'> 9.43KB </span>","children":null,"spread":false},{"title":"type_formatting.rst <span style='color:#111;'> 922B </span>","children":null,"spread":false},{"title":"make.bat <span style='color:#111;'> 7.10KB </span>","children":null,"spread":false},{"title":"compound_documents.rst <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"installation.rst <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"filtering.rst <span style='color:#111;'> 871B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 7.29KB </span>","children":null,"spread":false},{"title":"sorting.rst <span style='color:#111;'> 548B </span>","children":null,"spread":false},{"title":"index.rst <span style='color:#111;'> 194B </span>","children":null,"spread":false}],"spread":false},{"title":"CHANGES.rst <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"test_select_with_sort.py <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"test_utils.py <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"test_type_formatters.py <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"test_select_with_links.py <span style='color:#111;'> 3.94KB </span>","children":null,"spread":false},{"title":"test_select_one.py <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"conftest.py <span style='color:#111;'> 10.61KB </span>","children":null,"spread":false},{"title":"test_select_related.py <span style='color:#111;'> 8.37KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test_select_with_include.py <span style='color:#111;'> 29.19KB </span>","children":null,"spread":false},{"title":"test_select_relationship.py <span style='color:#111;'> 6.85KB </span>","children":null,"spread":false},{"title":"test_select.py <span style='color:#111;'> 23.33KB </span>","children":null,"spread":false}],"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":".isort.cfg <span style='color:#111;'> 87B </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 702B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明