Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sql2struct is a tool for sql statement to golang struct

License

Notifications You must be signed in to change notification settings

starfishs/sql2struct

Repository files navigation

Build Status Go Report Card GoDoc codecov License

sql2struct

mysql/postgresql database to golang struct for gorm model

install

go install github.com/starfishs/sql2struct@latest

usage

sql2struct --dsn="mysql://root:123456@tcp(localhost:3306)/test?charset=utf8mb4"

docker

docker run -v /path/to/store:/workspace -w /workspace starfishsfive/sql2struct:v1.0.0 --dsn="postgresql://root:123456@localhost:5432/test?sslmode=disable"

support

  • mysql
  • postgreSQL

Contributors

About

sql2struct is a tool for sql statement to golang struct

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Contributors 5

AltStyle によって変換されたページ (->オリジナル) /