Skip to content

echotrue/MySQL2Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL2Go

Generate struct for Golang

Install

go get -u github.com/echotrue/MySQL2Go

Download

Linux Windows MacOS

Usage

./GoSQL generate -H 192.168.1.1 -U root -P password -D database_name

Get help

$ ./GoSQL generate -h
Generate MySQL tables to Golang struct.

Usage:
  GoSQL generate [flags]

Flags:
  -D, --db string     db name
  -h, --help          help for generate
  -H, --host string   host (default "127.0.0.1")
      --path string   path to be saved struct (default "./struct")
  -p, --port uint16   port (default 3306)
  -P, --pwd string    password
  -U, --user string   user (default "root")

Global Flags:
      --config string   config file (default is $HOME/.MySQL2Go.yaml)

About

Generate MySQL tables to Golang struct

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages