github.com/scraniel/migrate@v0.0.0-20230320185700-339088f36cee/database/cockroachdb/README.md (about) 1 # cockroachdb 2 3 `cockroachdb://user:password@host:port/dbname?query` (`cockroach://`, and `crdb-postgres://` work, too) 4 5 | URL Query | WithInstance Config | Description | 6 |------------|---------------------|-------------| 7 | `x-migrations-table` | `MigrationsTable` | Name of the migrations table | 8 | `x-lock-table` | `LockTable` | Name of the table which maintains the migration lock | 9 | `x-force-lock` | `ForceLock` | Force lock acquisition to fix faulty migrations which may not have released the schema lock (Boolean, default is `false`) | 10 | `dbname` | `DatabaseName` | The name of the database to connect to | 11 | `user` | | The user to sign in as | 12 | `password` | | The user's password | 13 | `host` | | The host to connect to. Values that start with / are for unix domain sockets. (default is localhost) | 14 | `port` | | The port to bind to. (default is 5432) | 15 | `connect_timeout` | | Maximum wait for connection, in seconds. Zero or not specified means wait indefinitely. | 16 | `sslcert` | | Cert file location. The file must contain PEM encoded data. | 17 | `sslkey` | | Key file location. The file must contain PEM encoded data. | 18 | `sslrootcert` | | The location of the root certificate file. The file must contain PEM encoded data. | 19 | `sslmode` | | Whether or not to use SSL (disable\|require\|verify-ca\|verify-full) |