Categorygithub.com/limoli/dbshift-cli-mysql
modulepackage
0.0.1
Repository: https://github.com/limoli/dbshift-cli-mysql.git
Documentation: pkg.go.dev

# README

DbShift Client for MySQL

It provides simple and light logic for the management of database-schema migrations through the implementation of Dbshit Core.

You will be able to create migrations, check the current db status, decide to upgrade or downgrade easily.

GoDoc Build Status Go Report Card Maintainability Test Coverage License

Install

go get github.com/limoli/dbshift-cli-mysql

Commands

See Dbshit Core.

Configuration

KeyDescriptionValue example
Core configurationSee Dbshit Core.
DBSHIFT_CLI_MYSQL_TABLETable used by dbshift to manage migrations logics.dbshift
DBSHIFT_CLI_MYSQL_USERNAMEDatabase usernameSee mysql drive
DBSHIFT_CLI_MYSQL_PASSWORDDatabase passwordSee mysql drive
DBSHIFT_CLI_MYSQL_DATABASEDatabase nameSee mysql drive
DBSHIFT_CLI_MYSQL_ADDRESSDatabase protocol and addressSee mysql drive
DBSHIFT_CLI_MYSQL_OPTION_IS_MULTI_STATEMENTTable used by dbshift to manage migrations logics.true/false See mysql drive

Exit codes

FlagDescription
110When database name is not provided via environment.
115When the option isMultiStatement is badly set.
130When table-name value is missing (env var is not provided).
150When db connection gets an error.
160When core gets an error on initialisation.