【文件属性】:
文件名称:daodalus:用于构建 MongoDB 查询、更新和聚合的 DSL
文件大小:46KB
文件格式:ZIP
更新时间:2021-07-09 14:17:39
Ruby
道达路斯
构建复杂的 MongoDB 查询、更新和聚合。
配置:
# config/mongo.yml
development:
animals:
database: animals_development
host: localhost
pool_size: 5
timeout: 5
replicate_set_name: animals_development
servers:
- { host: localhost, port: 27017 }
初始化:
# config/initializers/daodalus.rb
Daodalus::Configuration.load('config/mongo.yml', Rails.env)
例子:
#!ruby
class CatDAO
extend Da
【文件预览】:
daodalus-master
----.travis.yml(72B)
----features()
--------support()
--------where.feature(293B)
--------step_definitions()
----Rakefile(131B)
----daodalus.gemspec(844B)
----Gemfile(175B)
----Gemfile.lock(936B)
----spec()
--------support()
--------lib()
--------integration()
--------spec_helper.rb(501B)
----LICENSE.md(1KB)
----.gitignore(56B)
----lib()
--------daodalus.rb(55B)
--------daodalus()
----README.md(2KB)