hstore-document:使用 Hstore 在 PostgreSQL 上的 ActiveRecord 中嵌入文档

时间:2021-06-26 20:08:38
【文件属性】:
文件名称:hstore-document:使用 Hstore 在 PostgreSQL 上的 ActiveRecord 中嵌入文档
文件大小:17KB
文件格式:ZIP
更新时间:2021-06-26 20:08:38
Ruby hstore 文档 这个 gem 允许使用 Hstore 在 ActiveRecord::Base 模型中嵌入辅助对象。 这将 Mongo 的嵌入式文档的优点带到了 PostgreSQL。 它以 Mongoid 的嵌入文档为模型。 一个例子胜过千言万语: class Person < ActiveRecord :: Base embeds :address # you can even do that: accepts_nested_attributes_for :address end class Address include Hstore :: Document field :street field :number , type : Fixnum field :zip , type : Fixnum f
【文件预览】:
hstore-document-master
----.gitignore(826B)
----Guardfile(1KB)
----.document(55B)
----.rspec(8B)
----LICENSE.txt(1KB)
----spec()
--------integration_spec.rb(3KB)
--------support()
--------spec_helper.rb(844B)
--------document_spec.rb(2KB)
----README.md(2KB)
----circle.yml(41B)
----VERSION(5B)
----lib()
--------hstore()
--------hstore-document.rb(273B)
--------active_record()
----Gemfile(433B)
----Rakefile(1KB)
----hstore-document.gemspec(3KB)
----Gemfile.lock(3KB)

网友评论