package
4.14.2
Repository: https://github.com/brandonmartin/migrate.git
Documentation: pkg.go.dev

# README

Microsoft SQL Server

sqlserver://username:password@host/instance?param1=value&param2=value sqlserver://username:password@host:port?param1=value&param2=value

URL QueryWithInstance ConfigDescription
x-migrations-tableMigrationsTableName of the migrations table
usernameenter 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.
passwordThe user's password.
hostThe host to connect to.
portThe port to connect to.
instanceSQL Server instance name.
databaseDatabaseNameThe name of the database to connect to
connection+timeoutin seconds (default is 0 for no timeout), set to 0 for no timeout.
dial+timeoutin seconds (default is 15), set to 0 for no timeout.
encryptdisable - 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+nameThe application name (default is go-mssqldb).

See https://github.com/denisenkom/go-mssqldb for full parameter list.

Driver Support

Which go-mssqldb driver to us?

Please note that the deprecated mssql driver is not supported. Please use the newer sqlserver driver.
See https://github.com/denisenkom/go-mssqldb#deprecated for more information.

Official Support by migrate

Versions of MS SQL Server 2019 newer than CTP3.1 are not officially supported since there are issues testing against the Docker image. For more info, see: https://github.com/golang-migrate/migrate/issues/160#issuecomment-522433269

# Functions

WithInstance returns a database instance from an already created database connection.

# Variables

DefaultMigrationsTable is the name of the migrations table in the database.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Config for database.
SQL Server connection.