Package play.db
Interface DBApi
- All Known Implementing Classes:
DefaultDBApi
public interface DBApi
DB API for managing application databases.
-
Method Summary
Modifier and TypeMethodDescriptiongetDatabase(String name) voidshutdown()Shutdown all databases, releasing resources.
-
Method Details
-
getDatabases
- Returns:
- all configured databases.
-
getDatabase
- Parameters:
name- the configuration name of the database- Returns:
- Get database with given configuration name.
-
shutdown
void shutdown()Shutdown all databases, releasing resources.
-