Class 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 Details

  • Constructor Details

    • CreateCollectionStatement

      public CreateCollectionStatement(String collectionName)
    • CreateCollectionStatement

      public CreateCollectionStatement(String collectionName, String options)
    • CreateCollectionStatement

      public CreateCollectionStatement(String collectionName, org.bson.Document options)
  • Method Details