Skip to content

lily-lee/mysql2go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql2go

convert mysql table into go struct.

Install

$ go get -u github.com/lily-lee/mysql2go

Usage

$ mysql2go table.sql

or

$ mysql2go table.sql table.go

or

$ mysql2go --infile=table.sql --outfile=table.go


# use --help

$ mysql2go --help

Hi~, Welcome to mysql2go.
        
mysql2go is used to convert mysql table structure to go struct.

Usage:
  mysql2go [flags]

Flags:
  -h, --help             help for mysql2go
  -i, --infile string    input file path,eg: your sql file.
  -o, --outfile string   output file path. go file.

About

mysql table structure to go struct

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages