mirror of
https://github.com/status-im/migrate.git
synced 2025-02-23 16:28:08 +00:00
This addresses https://github.com/golang-migrate/migrate/issues/90 . The exported Redshift object no longer exports an embedde 'Driver' however, so some more work is needed to make this backwards compatible.
22 lines
1.4 KiB
Markdown
22 lines
1.4 KiB
Markdown
# Redshift
|
|
|
|
`redshift://user:password@host:port/dbname?query`
|
|
|
|
| URL Query | WithInstance Config | Description |
|
|
|------------|---------------------|-------------|
|
|
| `x-migrations-table` | `MigrationsTable` | Name of the migrations table |
|
|
| `dbname` | `DatabaseName` | The name of the database to connect to |
|
|
| `search_path` | | This variable specifies the order in which schemas are searched when an object is referenced by a simple name with no schema specified. |
|
|
| `user` | | The user to sign in as |
|
|
| `password` | | The user's password |
|
|
| `host` | | The host to connect to. Values that start with / are for unix domain sockets. (default is localhost) |
|
|
| `port` | | The port to bind to. (default is 5439) |
|
|
| `fallback_application_name` | | An application_name to fall back to if one isn't provided. |
|
|
| `connect_timeout` | | Maximum wait for connection, in seconds. Zero or not specified means wait indefinitely. |
|
|
| `sslcert` | | Cert file location. The file must contain PEM encoded data. |
|
|
| `sslkey` | | Key file location. The file must contain PEM encoded data. |
|
|
| `sslrootcert` | | The location of the root certificate file. The file must contain PEM encoded data. |
|
|
| `sslmode` | | Whether or not to use SSL (disable\|require\|verify-ca\|verify-full) |
|
|
|
|
Redshift is PostgreSQL compatible but has some specific features (or lack thereof) that require slightly different behavior.
|