[JAVA-501] Direct access to local database files Created: 05/Jan/12 Updated: 25/Jun/13 Resolved: 27/Aug/12 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Thilo Planz | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Maybe this is out-of-scope, but there could be an API to directly read from (and write to) the database files without a server process. This could be useful for reporting tools that could run on local copies of database backups. It seems that the official command line client has such an option. |
| Comments |
| Comment by Jeffrey Yemin [ 15/May/12 ] |
|
No, there's no Java API for that. But pretty easy to implement using the existing BSON decoder. |
| Comment by Thilo Planz [ 05/Jan/12 ] |
|
Being able to read bson files produced by mongodump would also be a good feature. Something like a BSONObjectInputStream. There is no Java API for that now, right? |
| Comment by Scott Hernandez (Inactive) [ 05/Jan/12 ] |
|
This would be easy against the bson files from mongodump, but not against the real database files. The file format of the db files is not trivial, or well defined outside of the server code. Doing queries against bson files would require even more work. Better to just run a mongo server against the backup files, no? |