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
public class CreateCollectionStatement extends AbstractRunCommandStatement
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
Fields Modifier and Type Field Description static StringRUN_COMMAND_NAME-
Fields inherited from class liquibase.ext.mongodb.statement.AbstractRunCommandStatement
command, COMMAND_NAME, OK, SHELL_DB_PREFIX, WRITE_ERRORS
-
-
Constructor Summary
Constructors Constructor Description CreateCollectionStatement(String collectionName)CreateCollectionStatement(String collectionName, String options)CreateCollectionStatement(String collectionName, org.bson.Document options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRunCommandName()Returns the RunCommand command name.-
Methods inherited from class liquibase.ext.mongodb.statement.AbstractRunCommandStatement
checkResponse, execute, getCommandName, run, run, toJs
-
Methods inherited from class liquibase.nosql.statement.AbstractNoSqlStatement
continueOnError, skipOnUnsupported, toString
-
-
-
-
Field Detail
-
RUN_COMMAND_NAME
public static final String RUN_COMMAND_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRunCommandName
public String 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:
- Database Commands
-
-