Constructor and Description |
---|
DefaultDBApi(play.api.db.DBApi dbApi) |
Modifier and Type | Method and Description |
---|---|
Database |
getDatabase(java.lang.String name)
Get database with given configuration name.
|
java.util.List<Database> |
getDatabases()
All configured databases.
|
void |
shutdown()
Shutdown all databases, releasing resources.
|
public java.util.List<Database> getDatabases()
DBApi
getDatabases
in interface DBApi
public Database getDatabase(java.lang.String name)
DBApi
getDatabase
in interface DBApi
name
- the configuration name of the database