Package liquibase.ext.mongodb.statement
Class CreateCollectionStatement
java.lang.Object
liquibase.statement.AbstractSqlStatement
liquibase.nosql.statement.AbstractNoSqlStatement
liquibase.ext.mongodb.statement.AbstractMongoStatement
liquibase.ext.mongodb.statement.AbstractRunCommandStatement
liquibase.ext.mongodb.statement.CreateCollectionStatement
- All Implemented Interfaces:
NoSqlExecuteStatement<MongoLiquibaseDatabase>,liquibase.statement.SqlStatement
- Direct Known Subclasses:
CreateChangeLogCollectionStatement,CreateChangeLogLockCollectionStatement
Creates a collection via the database runCommand method
For a list of supported options see the reference page:
https://docs.mongodb.com/manual/reference/command/create/#create
-
Field Summary
FieldsFields inherited from class liquibase.ext.mongodb.statement.AbstractRunCommandStatement
command, COMMAND_NAME, OK, SHELL_DB_PREFIX, WRITE_ERRORSFields inherited from interface liquibase.statement.SqlStatement
EMPTY_SQL_STATEMENT -
Constructor Summary
ConstructorsConstructorDescriptionCreateCollectionStatement(String collectionName) CreateCollectionStatement(String collectionName, String options) CreateCollectionStatement(String collectionName, org.bson.Document options) -
Method Summary
Modifier and TypeMethodDescriptionReturns the RunCommand command name.Methods inherited from class liquibase.ext.mongodb.statement.AbstractRunCommandStatement
checkResponse, execute, getCommandName, run, run, toJsMethods inherited from class liquibase.nosql.statement.AbstractNoSqlStatement
continueOnError, skipOnUnsupported, toStringMethods inherited from class liquibase.statement.AbstractSqlStatement
setContinueOnError
-
Field Details
-
RUN_COMMAND_NAME
- See Also:
-
-
Constructor Details
-
CreateCollectionStatement
-
CreateCollectionStatement
-
CreateCollectionStatement
-
-
Method Details
-
getRunCommandName
Description copied from class:AbstractRunCommandStatementReturns the RunCommand command name.- Specified by:
getRunCommandNamein classAbstractRunCommandStatement- Returns:
- the run command as this is not used and not required for a generic RunCommandStatement
- See Also:
-