Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make delete line magic. #17

Closed
Bloodevil opened this issue Nov 9, 2014 · 1 comment
Closed

make delete line magic. #17

Bloodevil opened this issue Nov 9, 2014 · 1 comment

Comments

@Bloodevil
Copy link
Owner

%delete db.collection : delete collection
%delete db : delete db

Bloodevil added a commit that referenced this issue Nov 9, 2014
===
 when I want to delete collection or db in mongo. use %delete line magic.
 - %delete db.collection : delete collection
 - %delete db : delete db

 I will make delete_data line magic.
 this function matched by conn.drop_database() and conn.db.drop_collections('name') in pymongo.
@Bloodevil
Copy link
Owner Author

not delete but drop.
this command mean mongo shell's drop operator.

@Bloodevil Bloodevil reopened this Nov 10, 2014
Bloodevil added a commit that referenced this issue Nov 10, 2014
 ==
 mongodb original shell use 'drop' not 'delete' so change delete to drop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant