ForerunnerDB icon indicating copy to clipboard operation
ForerunnerDB copied to clipboard

DB Class Instance Tagging

Open Irrelon opened this issue 10 years ago • 0 comments

Allow a DB class instance to be assigned multiple tags. These tags can then later be used to identify or operate on, such as dropping all objects by tag:

db.collection('myCollection', {tags:  ['myTag']});
db.view('myView', {tags: ['myTag']});

db.tag('myTag').drop(); // Gets all objects with the tag 'myTag' and calls the drop() method on them.

This would allow sections of a web application to setup and then entirely pull down the database components it uses without having to write specific drop() calls for every db asset being used.

Irrelon avatar Oct 05 '15 11:10 Irrelon