MongoDBDumpFormat Enumeration
On this page
Specifies the format in which
MongoDBDump backs up and restores a collection.
Syntax
Members
| Member | Description |
| Command | With 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. |
| CSV | The 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. |
| JSON | Each document is written as Extended JSON on a separate line; restoring inserts the documents line by line. Requires Sql Engine=false. |
| JSONArray | All 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