基于ddd的minty命令查询
mint的Python项目详细描述
这个“命令和查询”模块允许开发人员围绕 在域模型中调用命令和查询。
开始
# In your calling module from minty.cqrs import CQRS from minty.infrastructure import InfrastructureFactory from zsnl_domains import some_domain # Configure a CQRS instance (config file type may be ".conf" or ".json") infra_factory = InfrastructureFactory("/etc/configfile.conf") cqrs = CQRS([some_domain], infra_factory) # Params can also be pre-set by the command or query function: query_instance = cqrs.get_query_instance("some_domain", "context") query_instance.some_query()
更多文档
有关此操作的详细信息,请参阅通过CI生成的文档 模块以及如何在我们的在线文档中做出贡献。打开index.html 当你到达那里: Sphinx Docs
贡献
请阅读CONTRIBUTING.md 有关我们的行为准则以及向我们提交请求的过程的详细信息。
版本控制
我们使用SemVer进行版本控制。对于版本 可用,请参阅 tags on this repository