Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Copy Database #1

Closed
ryneeverett opened this issue May 9, 2015 · 4 comments
Closed

Copy Database #1

ryneeverett opened this issue May 9, 2015 · 4 comments

Comments

@ryneeverett
Copy link
Owner

While it would be nice to keep the dump/load functionality around as an optional feature, I'd imagine copying the database would be more performant and less error prone for general use. There has got to be some way to do a db.copyDatabase() in Meteor.

@ryneeverett
Copy link
Owner Author

db is exposed in 1.0.4+ via the Collection.rawDatabase method. https://www.meteor.com/blog/2015/03/17/meteor-104-mongo-cordova-template-subscriptions#!

@ryneeverett
Copy link
Owner Author

Make database copying the default behavior. Use dumping/loading for backup purposes and take an environmental variable path. Suggest setting this to a separate repository (or submodule) so you can track fixtures without clogging up the app repo.

@ryneeverett
Copy link
Owner Author

Unfortunately the copyDatabase method is not available on db when instantiated with Collection.rawDatabase().

@ryneeverett
Copy link
Owner Author

Attempt in copyDatabase branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant