dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBDumpFormat Enumeration

On this page
    MongoDBDumpFormat Enumeration
    On this page
    Specifies the format in which MongoDBDump backs up and restores a collection.
    Syntax
    'Declaration
     
    Public Enum MongoDBDumpFormat 
       Inherits System.Enum
       Implements System.IComparable, System.IConvertible, System.IFormattable 
    Members
    MemberDescription
    CommandWith Sql Engine=false, the documents are written as one MongoDB insert command; with Sql Engine=true, as SQL INSERT statements, one per document. A query result is written as commands that insert into the collection named in Tables, so BackupQuery in this format throws System.InvalidOperationException when Tables is empty. This is the default format.
    CSVThe field names and then the values of each document are written on separate lines, separated by semicolons. A value that contains a semicolon, a double quote, or a line break is enclosed in double quotes, with the double quotes inside it doubled; a a null reference (Nothing in Visual Basic) value is an empty field. Supported for backup only.
    JSONEach document is written as Extended JSON on a separate line; restoring inserts the documents line by line. Requires Sql Engine=false.
    JSONArrayAll documents are written as one JSON array. Requires Sql Engine=false.
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             Devart.Data.MongoDB.MongoDBDumpFormat

    See Also