Class Postgres

All Implemented Interfaces:
SqlType<PostgresJdbc>

public class Postgres extends DefaultType<PostgresJdbc>
  • Constructor Details

    • Postgres

      public Postgres()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: SqlType
      Get a unique name to identify the database.
      Returns:
      database name
    • jdbcBuilder

      public PostgresJdbc jdbcBuilder()
      Description copied from interface: SqlType
      Returns the JdbcConfig implementation for this database
      Returns:
      jdbc builder
    • hasSchemas

      public boolean hasSchemas()
      Description copied from interface: SqlType
      Indicates if this type supports schemas.

      When schemas are supported the methods SqlType.createSchema(String) and SqlType.schemaExists() needs to be implemented.

      Returns:
      true when schemas are supported
    • schemaExists

      public String schemaExists()
      Description copied from interface: SqlType
      Returns a query which returns a boolean indicating if a schema with this name exists.
      Returns:
      query to check for schema
    • createSchema

      public String createSchema(String schema)
      Description copied from interface: SqlType
      Returns a query to create a schema with this name.
      Parameters:
      schema - schema
      Returns:
      query to create schema