# dragonfly-mongo_data_store **Repository Path**: mirrors_journeyapps/dragonfly-mongo_data_store ## Basic Information - **Project Name**: dragonfly-mongo_data_store - **Description**: Mongo data store for Dragonfly ruby gem - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Dragonfly::MongoDataStore Mongo data store for use with the [Dragonfly](http://github.com/markevans/dragonfly) gem. ## Gemfile ```ruby gem 'dragonfly-mongo_data_store' ``` ## Usage Configuration, with default options (remember the require) ```ruby require 'dragonfly/mongo_data_store' Dragonfly.app.configure do # ... datastore :mongo # ... end ``` Or with options: ```ruby datastore :mongo, host: 'my.host', database: 'my_database' ``` ### Available options ```ruby :host # e.g. 'my.domain' :hosts # for replica sets, e.g. ['n1.mydb.net:27017', 'n2.mydb.net:27017'] :connection_opts # hash that passes through to Mongo::Connection or Mongo::ReplSetConnection :port # e.g. 27017 :database # defaults to 'dragonfly' :username :password :connection # use this if you already have a Mongo::Connection object :db # use this if you already have a Mongo::DB object ```