go_gen

command module
v0.0.0-...-a4dc88f Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 5 Imported by: 0

README

go_gen

go_gen is a code generator for golang

Functions

generate rds db model
  • generate with rds ddl sql
cd xxx_repo(e.g. cd go_gen)
go_gen model -ddlPath internal/testdata/test.sql -output internal/testdata -override
  • generate with db dns address (and use initialisms)
cd xxx_repo(e.g. cd go_gen)
# gen all 
go_gen model -ddlPath "userName:password@tcp(IP:Port)/DBName" -output internal/testdata/dbmodels -override -initialisms
# specify some tables
go_gen model -ddlPath "userName:password@tcp(IP:Port)/DBName" -output internal/testdata/dbmodels -override -initialisms -tables test1,a
# output to cmd window instead of files
go_gen model -ddlPath "userName:password@tcp(IP:Port)/DBName" -output CMD -override -initialisms -tables test1,a

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
tpl

Jump to

Keyboard shortcuts

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