Package com.io7m.idstore.database.api
Interface IdDatabaseFactoryType
- All Known Implementing Classes:
IdDatabases
public interface IdDatabaseFactoryType
The type of server database factories.
-
Method Summary
Modifier and TypeMethodDescriptionkind()
open
(IdDatabaseConfiguration configuration, IdDatabaseTelemetry telemetry, Consumer<String> startupMessages) Open a database.
-
Method Details
-
kind
String kind()- Returns:
- The database kind (such as "POSTGRESQL")
-
open
IdDatabaseType open(IdDatabaseConfiguration configuration, IdDatabaseTelemetry telemetry, Consumer<String> startupMessages) throws IdDatabaseException Open a database.- Parameters:
configuration
- The database configurationtelemetry
- The telemetrystartupMessages
- A function that will receive startup messages- Returns:
- A database
- Throws:
IdDatabaseException
- On errors
-