Top Fields Constructors Methods
liquibase.database.core

public Class CockroachDatabase

extends PostgresDatabase
Class Inheritance
Imports
liquibase.Scope, liquibase.database.DatabaseConnection, liquibase.database.jvm.JdbcConnection, liquibase.exception.DatabaseException, liquibase.executor.ExecutorService, liquibase.statement.core.RawSqlStatement, liquibase.structure.DatabaseObject, liquibase.structure.core.Table, liquibase.util.JdbcUtil, java.sql.ResultSet, .SQLException, .Statement, java.util.regex.Matcher, .Pattern

Field Summary

Modifier and TypeField and Description
private Integer
private Integer
private static final Pattern
private static final String
Inherited from liquibase.database.core.PostgresDatabase:
MINIMUM_DBMS_MAJOR_VERSIONMINIMUM_DBMS_MINOR_VERSIONPGSQL_PK_BYTES_LIMITPGSQL_PK_SUFFIXPRODUCT_NAMEVALID_AUTO_INCREMENT_COLUMN_TYPE_NAMES

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public int
protected String
public Integer
public int
public String
getShortName()

Overrides liquibase.database.core.PostgresDatabase.getShortName.

Implements liquibase.database.Database.getShortName.

Returns an all-lower-case short name of the product.

public boolean
public void
public boolean
supportsCreateIfNotExists(Class<? extends DatabaseObject>
the DatabaseObject type to be checked.
type
)

Overrides liquibase.database.core.PostgresDatabase.supportsCreateIfNotExists.

Overrides default liquibase.database.Database.supportsCreateIfNotExists.

Does the database support the "if not exits" syntax?

public boolean
supportsDDLInTransaction()

Overrides liquibase.database.AbstractJdbcDatabase.supportsDDLInTransaction.

Implements liquibase.database.Database.supportsDDLInTransaction.

Determines if the database supports DDL within a transaction or not.

public boolean
public boolean
public boolean
useSerialDatatypes()

Overrides liquibase.database.core.PostgresDatabase.useSerialDatatypes.

Should the database use "serial" datatypes vs. "generated by default as identity"

Inherited from liquibase.database.core.PostgresDatabase:
correctObjectNameequalsescapeObjectNamegenerateAutoIncrementBygenerateAutoIncrementStartWithgeneratePrimaryKeyNamegetAutoIncrementClausegetAutoIncrementClausegetConnectionSchemaNameCallStatementgetDatabaseChangeLogLockTableNamegetDatabaseChangeLogTableNamegetDefaultDrivergetMaxFractionalDigitsForTimestampgetSchemaAndCatalogCasegetSystemViewshashCodehasMixedCaseisReservedWordisSystemObjectrollbacksetDefaultCatalogNamesupportsCatalogInObjectNamesupportsSequencesunescapeDataTypeName

Field Detail

databaseMajorVersionback to summary
private Integer databaseMajorVersion
databaseMinorVersionback to summary
private Integer databaseMinorVersion
VERSION_NUMBER_PATTERNback to summary
private static final Pattern VERSION_NUMBER_PATTERN
VERSION_NUMBER_REGEXback to summary
private static final String VERSION_NUMBER_REGEX

Constructor Detail

CockroachDatabaseback to summary
public CockroachDatabase()

Method Detail

getDatabaseMajorVersionback to summary
public int getDatabaseMajorVersion() throws DatabaseException

Overrides liquibase.database.AbstractJdbcDatabase.getDatabaseMajorVersion.

Implements liquibase.database.Database.getDatabaseMajorVersion.

Annotations
@Override
getDatabaseMinorVersionback to summary
public int getDatabaseMinorVersion() throws DatabaseException

Overrides liquibase.database.AbstractJdbcDatabase.getDatabaseMinorVersion.

Implements liquibase.database.Database.getDatabaseMinorVersion.

Annotations
@Override
getDefaultDatabaseProductNameback to summary
protected String getDefaultDatabaseProductName()

Overrides liquibase.database.core.PostgresDatabase.getDefaultDatabaseProductName.

Annotations
@Override
getDefaultPortback to summary
public Integer getDefaultPort()

Overrides liquibase.database.core.PostgresDatabase.getDefaultPort.

Implements liquibase.database.Database.getDefaultPort.

Annotations
@Override
getPriorityback to summary
public int getPriority()

Overrides liquibase.database.core.PostgresDatabase.getPriority.

Implements liquibase.servicelocator.PrioritizedService.getPriority.

Annotations
@Override
getShortNameback to summary
public String getShortName()

Overrides liquibase.database.core.PostgresDatabase.getShortName.

Implements liquibase.database.Database.getShortName.

Doc from liquibase.database.Database.getShortName.

Returns an all-lower-case short name of the product. Used for end-user selecting of database type such as the DBMS precondition.

Annotations
@Override
isCorrectDatabaseImplementationback to summary
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws DatabaseException

Overrides liquibase.database.core.PostgresDatabase.isCorrectDatabaseImplementation.

Implements liquibase.database.Database.isCorrectDatabaseImplementation.

Doc from liquibase.database.Database.isCorrectDatabaseImplementation.

Is this AbstractDatabase subclass the correct one to use for the given connection.

Annotations
@Override
setConnectionback to summary
public void setConnection(DatabaseConnection conn)

Overrides liquibase.database.core.PostgresDatabase.setConnection.

Implements liquibase.database.Database.setConnection.

Annotations
@Override
supportsCreateIfNotExistsback to summary
public boolean supportsCreateIfNotExists(Class<? extends DatabaseObject> type)

Overrides liquibase.database.core.PostgresDatabase.supportsCreateIfNotExists.

Overrides default liquibase.database.Database.supportsCreateIfNotExists.

Doc from liquibase.database.Database.supportsCreateIfNotExists.

Does the database support the "if not exits" syntax?

Parameters
type:Class<? extends DatabaseObject>

the DatabaseObject type to be checked.

Returns:boolean

true if the "if not exists" syntax is supported, false otherwise.

Annotations
@Override
supportsDDLInTransactionback to summary
public boolean supportsDDLInTransaction()

Overrides liquibase.database.AbstractJdbcDatabase.supportsDDLInTransaction.

Implements liquibase.database.Database.supportsDDLInTransaction.

Doc from liquibase.database.AbstractJdbcDatabase.supportsDDLInTransaction.

Determines if the database supports DDL within a transaction or not.

Returns:boolean

True if the database supports DDL within a transaction, otherwise false.

Annotations
@Override
supportsInitiallyDeferrableColumnsback to summary
public boolean supportsInitiallyDeferrableColumns()

Overrides liquibase.database.core.PostgresDatabase.supportsInitiallyDeferrableColumns.

Implements liquibase.database.Database.supportsInitiallyDeferrableColumns.

Doc from liquibase.database.Database.supportsInitiallyDeferrableColumns.

Returns whether this database support initially deferrable columns.

Annotations
@Override
supportsTablespacesback to summary
public boolean supportsTablespaces()

Overrides liquibase.database.core.PostgresDatabase.supportsTablespaces.

Implements liquibase.database.Database.supportsTablespaces.

Annotations
@Override
useSerialDatatypesback to summary
public boolean useSerialDatatypes()

Overrides liquibase.database.core.PostgresDatabase.useSerialDatatypes.

Doc from liquibase.database.core.PostgresDatabase.useSerialDatatypes.

Should the database use "serial" datatypes vs. "generated by default as identity"

Annotations
@Override