Gradle-DatabasePlugin V1.0.12

au.com.coherentsoftware.gradle.database.task
[Groovy] Class DbReset

java.lang.Object
  org.gradle.api.DefaultTask
      au.com.coherentsoftware.gradle.database.task.DbBaseTask
          au.com.coherentsoftware.gradle.database.task.DbReset

class DbReset
extends DbBaseTask

Gradle Task to reset a database by dropping it then re-creating it. Database user must have appropriate permissions. See the DatabasePlugin documentation for sample use.

See Also:
DatabasePlugin


Property Summary
List databaseList

String dbType

 
Method Summary
def dbReset()

Drops and re-creates each database.

String getDescription()

A dynamically generated description of this task, which includes the names of the databases it will reset.

def setDatabase(String dbname)

Add a database name to the list of databases to be reset.

def setDatabases(List dbnamelist)

Add a list of database names to those to be reset.

 

Property Detail

databaseList

List databaseList


dbType

String dbType


 
Method Detail

dbReset

@TaskAction
def dbReset()
Drops and re-creates each database. Logs at the lifecycle level the name of each database it resets.


getDescription

String getDescription()
A dynamically generated description of this task, which includes the names of the databases it will reset.
Returns:
A description.


setDatabase

def setDatabase(String dbname)
Add a database name to the list of databases to be reset.
Parameters:
dbname - The name of the database to add.


setDatabases

def setDatabases(List dbnamelist)
Add a list of database names to those to be reset.
Parameters:
dbnamelist - A list of database names


 

Copyright 2014 Coherent Software Australia Pty Ltd