attr_json:序列化的json哈希支持的ActiveRecord属性,超级流畅

时间:2021-05-01 12:53:41
【文件属性】:
文件名称:attr_json:序列化的json哈希支持的ActiveRecord属性,超级流畅
文件大小:97KB
文件格式:ZIP
更新时间:2021-05-01 12:53:41
Ruby AttrJson ActiveRecord属性存储在json列中序列化,非常流畅。 对于Rails 5.0到6.1。 Ruby 2.4以上版本。 像活动记录一样键入和转换。 支持,,一些(包含postgres )以及。 在相同的模型中,通过ActiveRecord将数据库用作通过ActiveRecord进行类型化的对象存储,紧靠普通ActiveRecord列支持的属性和关联。 您的json序列化的attr_json属性会尽可能使用现有的ActiveRecord体系结构。 专为postgres开发,但大多数功能也应适用于MySQL json列,尽管尚未经过MySQL的测试。 基本用途 # migration class CreatMyModels < ActiveRecord :: Migration [ 5.0 ] def change create_table :m
【文件预览】:
attr_json-master
----bin()
--------rspec(795B)
--------console(584B)
--------rake(787B)
--------setup(163B)
----attr_json.gemspec(3KB)
----Rakefile(153B)
----.github()
--------workflows()
----gemfiles()
--------rails_5_2.gemfile(371B)
--------rails_edge.gemfile(416B)
--------rails_5_0.gemfile(404B)
--------rails_5_1.gemfile(371B)
--------.bundle()
--------rails_6_0.gemfile(378B)
--------rails_6_1.gemfile(369B)
----.yardopts(67B)
----Appraisals(865B)
----Gemfile(1KB)
----playground_models.rb(2KB)
----.rspec(30B)
----spec()
--------nested_attributes()
--------model_spec.rb(7KB)
--------type()
--------internal()
--------record()
--------record_spec.rb(29KB)
--------single_serialized_model_attribute_spec.rb(4KB)
--------query_scopes_spec.rb(10KB)
--------record_with_model_spec.rb(12KB)
--------sti_records_spec.rb(2KB)
--------integration()
--------spec_helper.rb(7KB)
----.gitignore(145B)
----CHANGELOG.md(2KB)
----lib()
--------attr_json()
--------attr_json.rb(431B)
----doc_src()
--------forms.md(9KB)
--------dirty_tracking.md(6KB)
----README.md(24KB)
----config.ru(158B)
----LICENSE.txt(1KB)

网友评论