...

Text file src/go.mongodb.org/mongo-driver/testdata/read-write-concern/connection-string/read-concern.json

Documentation: go.mongodb.org/mongo-driver/testdata/read-write-concern/connection-string

     1{
     2  "tests": [
     3    {
     4      "description": "Default",
     5      "uri": "mongodb://localhost/",
     6      "valid": true,
     7      "warning": false,
     8      "readConcern": {}
     9    },
    10    {
    11      "description": "local specified",
    12      "uri": "mongodb://localhost/?readConcernLevel=local",
    13      "valid": true,
    14      "warning": false,
    15      "readConcern": {
    16        "level": "local"
    17      }
    18    },
    19    {
    20      "description": "majority specified",
    21      "uri": "mongodb://localhost/?readConcernLevel=majority",
    22      "valid": true,
    23      "warning": false,
    24      "readConcern": {
    25        "level": "majority"
    26      }
    27    },
    28    {
    29      "description": "available specified",
    30      "uri": "mongodb://localhost/?readConcernLevel=available",
    31      "valid": true,
    32      "warning": false,
    33      "readConcern": {
    34        "level": "available"
    35      }
    36    },
    37    {
    38      "description": "snapshot specified",
    39      "uri": "mongodb://localhost/?readConcernLevel=snapshot",
    40      "valid": true,
    41      "warning": false,
    42      "readConcern": {
    43        "level": "snapshot"
    44      }
    45    },
    46    {
    47      "description": "linearizable specified",
    48      "uri": "mongodb://localhost/?readConcernLevel=linearizable",
    49      "valid": true,
    50      "warning": false,
    51      "readConcern": {
    52        "level": "linearizable"
    53      }
    54    }
    55  ]
    56}

View as plain text