# Class CAPGDatabases

java.lang.Object
com.io7m.cardant.database.postgres.CAPGDatabases

All Implemented Interfaces:
  `CADatabaseFactoryType`

public final class CAPGDatabases extends Object implements CADatabaseFactoryType
The default postgres server database implementation.

- ## Constructor Summary

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `kind()`
  `CADatabaseType`
  `open(CADatabaseConfiguration configuration, CADatabaseTelemetry telemetry, Consumer<String> startupMessages)`
  Open a database.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### CAPGDatabases

    public CAPGDatabases()
    The default postgres server database implementation.

- ## Method Details

  - ### kind

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

  - ### open

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