Package de.chojo.sqlutil.databases
Class Postgres
- All Implemented Interfaces:
SqlType<PostgresJdbc>
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSchema(String schema) Returns a query to create a schema with this name.getName()Get a unique name to identify the database.booleanIndicates if this type supports schemas.Returns theJdbcConfigimplementation for this databaseReturns a query which returns a boolean indicating if a schema with this name exists.Methods inherited from class de.chojo.sqlutil.databases.DefaultType
createVersionTableQuery, deleteVersion, getVersion, insertVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.chojo.sqlutil.databases.SqlType
cleanStatements, splitStatements
-
Constructor Details
-
Postgres
public Postgres()
-
-
Method Details
-
getName
Description copied from interface:SqlTypeGet a unique name to identify the database.- Returns:
- database name
-
jdbcBuilder
Description copied from interface:SqlTypeReturns theJdbcConfigimplementation for this database- Returns:
- jdbc builder
-
hasSchemas
public boolean hasSchemas()Description copied from interface:SqlTypeIndicates if this type supports schemas.When schemas are supported the methods
SqlType.createSchema(String)andSqlType.schemaExists()needs to be implemented.- Returns:
- true when schemas are supported
-
schemaExists
Description copied from interface:SqlTypeReturns a query which returns a boolean indicating if a schema with this name exists.- Returns:
- query to check for schema
-
createSchema
Description copied from interface:SqlTypeReturns a query to create a schema with this name.- Parameters:
schema- schema- Returns:
- query to create schema
-