mongoid / mongoid-grid_fs

A pure Mongoid/Moped implementation of the MongoDB GridFS specification.
Other
83 stars 50 forks source link

mongoid-grid_fs

Gem Version CI

A pure Mongoid/Moped implementation of the MongoDB GridFS specification

INSTALL

gem install mongoid-grid_fs

SYNOPSIS

require 'mongoid/grid_fs'

grid_fs = Mongoid::GridFs
f = grid_fs.put(readable)

grid_fs.get(f.id)
grid_fs.delete(f.id)

g = grid_fs.get(f.id)
g.data # big huge blob
g.each { |chunk| file.write(chunk) } # streaming write

DESCRIPTION

mongoid_grid_fs is A pure Mongoid/Moped implementation of the MongoDB GridFS specification

Reference: http://docs.mongodb.org/manual/reference/gridfs/

It has the following features:

CONTRIBUTING

See CONTRIBUTING.

LICENSE

This is licensed under the Ruby License: http://www.ruby-lang.org/en/about/license.txt