go-Gentity

command module
v0.0.0-...-1a1764e Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 1 Imported by: 0

README

《一键生成Go-orm结构体模型工具》V1.01

环境要求

  • Go版本 >= 1.13
  • Go Module 模式

安装步骤

  • go mod init 创建项目
  • 项目根目录执行命令 go get -u github.com/phpwei/gentity
  • 自动加入环境变量 bin
  • go环境安装 可以参考 https://learnku.com/articles/38410

工具命令汇总

  • 【一键生成指定表】 gentity db -m 输入表名
  • 【一键生成全部表】 gentity db -m all
  • 【一键生成全部表自动生成 无需提醒】gentity db -m all -y
  • 【生成配置文件到自己的根目录下】gentity conf -c

注意事项

  • 生成的model结构体默认在根目录 app/models/ 下面
  • 数据库配置文件在根目录下 application.yaml

效果展示

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

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