command_post-源码

上传者: 42170790 | 上传时间: 2021-06-18 13:05:16 | 文件大小: 35KB | 文件类型: ZIP
指挥所 CommandPost – 命令模式、对象存储和事件溯源 CommandPost 是一个便于检索和存储对象的库。 对象只不过是哈希,以 JSON 形式存储在关系数据库中。 CommandPost 具有以下功能来促进这一点: 一个基类 (Persistence),它封装了一个 Hash 以允许点符号访问(myobject.myproperty 而不是 myobject['myproperty'])以及该类的计算方法。 一种模式声明语法,可确保仅将有效对象保存到数据库中 模块 (Identity) 为对象提供身份,以便它可以在以后通过其“aggregate_id”进行持久化和检索。 完全集成的“核心”事件溯源机制。 对象不会保存到数据库中,直到它们的“更改事件”首先被记录到事件存储中。 单个表 (aggregate_events) 保存每个对象发生的每个事件。 描绘整个系统在某个

文件下载

资源详情

[{"title":"( 40 个子文件 35KB ) command_post-源码","children":[{"title":"command_post-master","children":[{"title":".gitignore <span style='color:#111;'> 178B </span>","children":null,"spread":false},{"title":"command_post.gemspec <span style='color:#111;'> 943B </span>","children":null,"spread":false},{"title":"scratch.rb <span style='color:#111;'> 9.65KB </span>","children":null,"spread":false},{"title":"run_spec.bat <span style='color:#111;'> 481B </span>","children":null,"spread":false},{"title":"scratch3.rb <span style='color:#111;'> 560B </span>","children":null,"spread":false},{"title":"spec","children":[{"title":"spec_helper.rb <span style='color:#111;'> 125B </span>","children":null,"spread":false},{"title":"command_post","children":[{"title":"command","children":[{"title":"command_spec.rb <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"persistence","children":[{"title":"scratch.rb <span style='color:#111;'> 867B </span>","children":null,"spread":false},{"title":"data_validation_spec.rb <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"indexing_spec.rb <span style='color:#111;'> 4.16KB </span>","children":null,"spread":false},{"title":"schema_validation_spec.rb <span style='color:#111;'> 7.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"app_config_spec.rb <span style='color:#111;'> 404B </span>","children":null,"spread":false}],"spread":true},{"title":"identity","children":[{"title":"identity_lookup_value_field_spec.rb <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"identity_lookup_value_aggregate_id_spec.rb <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 14.88KB </span>","children":null,"spread":false},{"title":"generate_add_ui.rb <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"gui.erb <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"command_post.rb <span style='color:#111;'> 136B </span>","children":null,"spread":false},{"title":"command_post","children":[{"title":"read_model","children":[{"title":"example_message.json <span style='color:#111;'> 353B </span>","children":null,"spread":false},{"title":"view_cache.rb <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"db","children":[{"title":"connection.rb <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"postgresql.sql <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"hash_util.rb <span style='color:#111;'> 793B </span>","children":null,"spread":false},{"title":"string_util.rb <span style='color:#111;'> 521B </span>","children":null,"spread":false}],"spread":false},{"title":"event_sourcing","children":[{"title":"aggregate.rb <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"aggregate_event.rb <span style='color:#111;'> 4.72KB </span>","children":null,"spread":false}],"spread":false},{"title":"command","children":[{"title":"command.rb <span style='color:#111;'> 7.58KB </span>","children":null,"spread":false}],"spread":false},{"title":"persistence","children":[{"title":"persistence.rb <span style='color:#111;'> 10.13KB </span>","children":null,"spread":false},{"title":"data_validation.rb <span style='color:#111;'> 4.69KB </span>","children":null,"spread":false},{"title":"auto_load.rb <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"aggregate_pointer.rb <span style='color:#111;'> 423B </span>","children":null,"spread":false},{"title":"schema_validation.rb <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"app_config.rb <span style='color:#111;'> 981B </span>","children":null,"spread":false}],"spread":false},{"title":"version.rb <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"identity","children":[{"title":"sequence_generator.rb <span style='color:#111;'> 681B </span>","children":null,"spread":false},{"title":"identity.rb <span style='color:#111;'> 956B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"Gemfile <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"Rakefile <span style='color:#111;'> 28B </span>","children":null,"spread":false},{"title":"scratch2.rb <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"Gemfile.lock <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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