github.com/dynastymasra/migrate/v4@v4.11.0/database/mongodb/README.md (about)

     1  # MongoDB
     2  
     3  * Driver work with mongo through [db.runCommands](https://docs.mongodb.com/manual/reference/command/)
     4  * Migrations support json format. It contains array of commands for `db.runCommand`. Every command is executed in separate request to database 
     5  * All keys have to be in quotes `"`
     6  * [Examples](./examples)
     7  
     8  # Usage
     9  
    10  `mongodb://user:password@host:port/dbname?query`
    11  
    12  | URL Query  | WithInstance Config | Description |
    13  |------------|---------------------|-------------|
    14  | `x-migrations-collection` | `MigrationsCollection` | Name of the migrations collection |
    15  | `x-transaction-mode` | `TransactionMode` | If set to `true` wrap commands in [transaction](https://docs.mongodb.com/manual/core/transactions). Available only for replica set. Driver is using [strconv.ParseBool](https://golang.org/pkg/strconv/#ParseBool) for parsing|
    16  | `dbname` | `DatabaseName` | The name of the database to connect to |
    17  | `user` | | The user to sign in as. Can be omitted |
    18  | `password` | | The user's password. Can be omitted | 
    19  | `host` | | The host to connect to |
    20  | `port` | | The port to bind to |