Package com.io7m.idstore.database.postgres

# Class IdDatabases

java.lang.Object
com.io7m.idstore.database.postgres.IdDatabases

All Implemented Interfaces:
  `IdDatabaseFactoryType`

public final class IdDatabases extends Object implements IdDatabaseFactoryType
The default postgres server database implementation.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IdDatabases()`
  The default postgres server database implementation.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `kind()`
  `IdDatabaseType`
  `open(IdDatabaseConfiguration configuration, IdDatabaseTelemetry telemetry, Consumer<String> startupMessages)`
  Open a database.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### IdDatabases

    public IdDatabases()
    The default postgres server database implementation.

- ## Method Details

  - ### kind

    public String kind()
    Specified by:
      `kind` in interface `IdDatabaseFactoryType`
    Returns:
      The database kind (such as "POSTGRESQL")

  - ### open

    public IdDatabaseType open(IdDatabaseConfiguration configuration, IdDatabaseTelemetry telemetry, Consumer<String> startupMessages) throws IdDatabaseException
    Description copied from interface: `IdDatabaseFactoryType`
    Open a database.
    Specified by:
      `open` in interface `IdDatabaseFactoryType`
    Parameters:
      `configuration` - The database configuration
      `telemetry` - The telemetry
      `startupMessages` - A function that will receive startup messages
    Returns:
      A database
    Throws:
      `IdDatabaseException` - On errors