文件名称:mongoid-report
文件大小:29KB
文件格式:ZIP
更新时间:2024-08-01 01:21:38
Ruby
蒙古人报告 使用 mongodb 聚合框架轻松构建聚合报告的库。 例子 class Model include Mongoid :: Document field :field1 , type : Integer , default : 0 field :field2 , type : Integer , default : 0 field :day , type : Date end class Report1 include Mongoid :: Report report 'example' do attach_to Model do group_by :day column :field1 , collection : Model end end e
【文件预览】:
mongoid-report-master
----mongoid-report.gemspec(951B)
----.vimrc(158B)
----LICENSE.txt(1KB)
----.ruby-version(11B)
----lib()
--------mongoid()
----Gemfile(196B)
----Guardfile(495B)
----spec()
--------mongoid()
--------spec_helper.rb(553B)
--------support()
----Rakefile(79B)
----.travis.yml(33B)
----README.md(2KB)
----.drone.yml(318B)
----.rspec(8B)
----Gemfile.lock(2KB)
----.gitignore(22B)