MongoDB Create-Drop

  • Tags: mongodb, nosql
  • Latest: 1.0.2
  • Last Updated: 13 August 2014
  • Grails version: 2.0 > *
1 vote
Dependency:
compile ":mongodb-create-drop:1.0.2"

 Documentation  Source  Issues

Summary

Provides applications using MongoDB with the ability to mimic the "create-drop" behaviour available for other databases.

Installation

grails install-plugin mongodb-create-drop

Description

This plugin enables Grails applications using MongoDB to mimic the "create-drop" behaviour available for other databases. This is useful during development, testing and integration.

Features:

  • Drop and recreate a whole Mongo database at startup.
  • Drop and recreate a subset of collections within a database. For example, keep the Mongo users collection between startups.
  • Use regex patterns to keep or drop collections.
  • Can do nothing! For example, production environment.
  • Simplifies the transition between authenticated and non-authenticated Mongo instances. For example, when deploying to a CI server.
Please see the plugin README for examples of usage.