【文件属性】:
文件名称:cqlmapper:datastax的cqlengine库的与底板兼容的分支
文件大小:148KB
文件格式:ZIP
更新时间:2021-02-09 03:37:02
python orm reddit cassandra Python
cqlmapper
该项目是一个分支,进行了许多更改,使其可以在应用程序中工作
主要变化:
删除对多态模型的支持
删除定义查询约束的查询评估器方法
从使用全局连接对象切换为将连接对象传递给与数据库交互的方法
批处理查询由类似Connection的Batch对象处理,该对象作为函数的conn参数提供,而不是使用cqlengine的Model.batch语法
用法示例:
import uuid
from cassandra.cluster import Cluster
from cqlmapper import columns, connection, models
from cqlmapper.batch import Batch
from cqlmapper.connection import Connection as CQLMapperConnection
from cqlmap
【文件预览】:
cqlmapper-master
----setup.py(1KB)
----.gitignore(460B)
----Dockerfile(211B)
----requirements.txt(37B)
----Makefile(441B)
----pyproject.toml(57B)
----cqlmapper()
--------management.py(19KB)
--------functions.py(4KB)
--------__init__.py(2KB)
--------batch.py(8KB)
--------columns.py(29KB)
--------operators.py(2KB)
--------statements.py(28KB)
--------query_set.py(35KB)
--------connection.py(5KB)
--------models.py(35KB)
--------usertype.py(7KB)
--------query.py(9KB)
----.dockerignore(262B)
----LICENSE(10KB)
----setup.cfg(399B)
----docker-compose.yml(383B)
----.github()
--------workflows()
----README.rst(2KB)
----tests()
--------__init__.py(630B)
--------integration()
--------unit()
----requirements-lint.txt(507B)
----requirements-dev.txt(51B)