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 Type
  Method
  Description
  `String`
  `kind()`
  `IdDatabaseType`
  `open(IdDatabaseConfiguration configuration, io.opentelemetry.api.OpenTelemetry openTelemetry, Consumer<String> startupMessages)`
  Open a database.

- ## Method Details

  - ### kind

    String kind()
    Returns:
      The database kind (such as "POSTGRESQL")

  - ### open

    IdDatabaseType open(IdDatabaseConfiguration configuration, io.opentelemetry.api.OpenTelemetry openTelemetry, Consumer<String> startupMessages) throws IdDatabaseException
    Open a database.
    Parameters:
      `configuration` - The database configuration
      `openTelemetry` - The OpenTelemetry instance
      `startupMessages` - A function that will receive startup messages
    Returns:
      A database
    Throws:
      `IdDatabaseException` - On errors