dbshift-cli-mysql

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2021 License: MIT Imports: 5 Imported by: 0

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

Key Description Value example
Core configuration See Dbshit Core.
DBSHIFT_CLI_MYSQL_TABLE Table used by dbshift to manage migrations logics. dbshift
DBSHIFT_CLI_MYSQL_USERNAME Database username See mysql drive
DBSHIFT_CLI_MYSQL_PASSWORD Database password See mysql drive
DBSHIFT_CLI_MYSQL_DATABASE Database name See mysql drive
DBSHIFT_CLI_MYSQL_ADDRESS Database protocol and address See mysql drive
DBSHIFT_CLI_MYSQL_OPTION_IS_MULTI_STATEMENT Table used by dbshift to manage migrations logics. true/false See mysql drive

Exit codes

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL