public class CosmosConnection extends AbstractNoSqlConnection
| Modifier and Type | Field and Description |
|---|---|
static String |
LIQUIBASE_EXTENSION_USER_AGENT_SUFFIX |
| Constructor and Description |
|---|
CosmosConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getCatalog() |
String |
getConnectionUserName() |
int |
getDatabaseMajorVersion() |
int |
getDatabaseMinorVersion() |
String |
getDatabaseProductName() |
String |
getDatabaseProductVersion() |
String |
getURL() |
boolean |
isClosed() |
void |
open(CosmosConnectionString cosmosConnectionString,
Driver driverObject,
Properties driverProperties) |
void |
open(String url,
Driver driverObject,
Properties driverProperties)
Opens a CosmosConnection based
Creates a new client with the given connection string.
|
attached, commit, getAutoCommit, getPriority, nativeSQL, rollback, setAutoCommitpublic static final String LIQUIBASE_EXTENSION_USER_AGENT_SUFFIX
public String getCatalog() throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic String getDatabaseProductName() throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic String getDatabaseProductVersion() throws liquibase.exception.DatabaseException
getDatabaseProductVersion in interface liquibase.database.DatabaseConnectiongetDatabaseProductVersion in class AbstractNoSqlConnectionliquibase.exception.DatabaseExceptionpublic int getDatabaseMajorVersion()
throws liquibase.exception.DatabaseException
getDatabaseMajorVersion in interface liquibase.database.DatabaseConnectiongetDatabaseMajorVersion in class AbstractNoSqlConnectionliquibase.exception.DatabaseExceptionpublic int getDatabaseMinorVersion()
throws liquibase.exception.DatabaseException
getDatabaseMinorVersion in interface liquibase.database.DatabaseConnectiongetDatabaseMinorVersion in class AbstractNoSqlConnectionliquibase.exception.DatabaseExceptionpublic String getURL()
public String getConnectionUserName()
public boolean isClosed()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic void open(String url, Driver driverObject, Properties driverProperties) throws liquibase.exception.DatabaseException
CosmosConnectionString.fromJsonConnectionString(String)
Note: Intended for driver and library authors to associate extra driver metadata with the connections.
url - connectionString the json format connection stringdriverObject - driverObject identifieddriverProperties - driverProperties passed throughliquibase.exception.DatabaseExceptionCosmosConnectionStringpublic void open(CosmosConnectionString cosmosConnectionString, Driver driverObject, Properties driverProperties) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic void close()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionCopyright © 2021 Liquibase.org. All rights reserved.