Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cryptix/mountmgo
Test of binding a mongodb to a fusefs
https://github.com/cryptix/mountmgo
Last synced: about 1 month ago
JSON representation
Test of binding a mongodb to a fusefs
- Host: GitHub
- URL: https://github.com/cryptix/mountmgo
- Owner: cryptix
- License: mit
- Created: 2014-05-24T13:13:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-03T02:53:29.000Z (almost 10 years ago)
- Last Synced: 2024-10-08T00:21:30.324Z (about 1 month ago)
- Language: Go
- Size: 167 KB
- Stars: 4
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mountMgo
========Allows reading a mongodb as a fusefs.
## working
* `ls mountpoint/` lists all collections in that database
* `ls mountpoint/collection` lists all documents with their `_id` as filename
* `cat mountpoint/collection/document` returns the document content with `json.MarshalIndent`## todo/ideas
- [x] collections are only read on startup
- [ ] check some corner cases
- [ ] documents in `xxx.index` collections don't have `_id` fields, so they aren't listed yet
- [ ] maybe experiment with mgo's GridFS(http://godoc.org/labix.org/v2/mgo#GridFS)## credits
* uses [bazil.org/fuse/](http://bazil.org/fuse/) for the fuse layer
* uses [labix.org/mgo](http://labix.org/mgo) for the mgo connection