ForerunnerDB
ForerunnerDB copied to clipboard
DB Class Instance Tagging
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.