mirror of
https://github.com/status-im/migrate.git
synced 2025-02-24 00:38:07 +00:00
22 lines
1.3 KiB
Markdown
22 lines
1.3 KiB
Markdown
|
# Microsoft SQL Server
|
||
|
|
||
|
`sqlserver://username:password@host/instance?param1=value¶m2=value`
|
||
|
`sqlserver://username:password@host:port?param1=value¶m2=value`
|
||
|
|
||
|
| URL Query | WithInstance Config | Description |
|
||
|
|------------|---------------------|-------------|
|
||
|
| `x-migrations-table` | `MigrationsTable` | Name of the migrations table |
|
||
|
| `database` | `DatabaseName` | The name of the database to connect to |
|
||
|
| `username` | | enter the SQL Server Authentication user id or the Windows Authentication user id in the DOMAIN\User format. On Windows, if user id is empty or missing Single-Sign-On is used. |
|
||
|
| `password` | | The user's password. |
|
||
|
| `host` | | The host to connect to. |
|
||
|
| `port` | | The port to connect to. |
|
||
|
| `instance` | | SQL Server instance name. |
|
||
|
| `connection+timeout` | | in seconds (default is 0 for no timeout), set to 0 for no timeout. |
|
||
|
| `dial+timeout` | | in seconds (default is 15), set to 0 for no timeout. |
|
||
|
| `encrypt` | | `disable` - Data send between client and server is not encrypted. `false` - Data sent between client and server is not encrypted beyond the login packet (Default). `true` - Data sent between client and server is encrypted. |
|
||
|
| `app+name` || The application name (default is go-mssqldb). |
|
||
|
|
||
|
See https://github.com/denisenkom/go-mssqldb for full parameter list.
|
||
|
|