Class InsertOneStatement

All Implemented Interfaces:
NoSqlExecuteStatement<MongoLiquibaseDatabase>, liquibase.statement.SqlStatement

public class InsertOneStatement extends InsertManyStatement
Inserts a document via the database runCommand method For a list of supported options see the reference page:
See Also:
  • Constructor Details

    • InsertOneStatement

      public InsertOneStatement(String collectionName, String document, String options)
    • InsertOneStatement

      public InsertOneStatement(String collectionName, org.bson.Document document, org.bson.Document options)
    • InsertOneStatement

      public InsertOneStatement(String collectionName, org.bson.Document document)