orm_adapter:提供使用RubyORM基本功能的单一入口点

时间:2021-04-23 19:56:37
【文件属性】:
文件名称:orm_adapter:提供使用RubyORM基本功能的单一入口点
文件大小:20KB
文件格式:ZIP
更新时间:2021-04-23 19:56:37
Ruby ORM适配器 为流行的RubyORM提供一个入口。 它的目标受众是想要支持多个ORM的宝石作家。 使用示例 require 'orm_adapter' User # is it an ActiveRecord, DM Resource, MongoMapper or MongoId Document? User . to_adapter . find_first :name => 'Fred' # we don't care! user_model = User . to_adapter user_model . get! ( 1 ) # find a record by id user_model . find_first ( :name => 'fred' ) # find first fred user_model . find_fi
【文件预览】:
orm_adapter-master
----.gitignore(147B)
----gemfiles()
--------activerecord-4.1.gemfile(304B)
--------activerecord-4.0.gemfile(304B)
----Gemfile(260B)
----LICENSE(1KB)
----orm_adapter.gemspec(1KB)
----.rspec(9B)
----spec()
--------orm_adapter_spec.rb(326B)
--------orm_adapter()
--------spec_helper.rb(280B)
----README.rdoc(4KB)
----History.txt(2KB)
----.travis.yml(1KB)
----lib()
--------orm_adapter()
--------orm_adapter.rb(513B)
----Rakefile(572B)

网友评论