springboot-ddd-gen-mysql

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 8 Imported by: 0

README

SpringBoot DDD gen mysql

读取 MySQL 表信息,生成 DDD 模式的,可以在 SpringBoot 项目中工作的代码。

目前生成的代码仅适用于公司的项目结构,可以按需调整内容。

install

go install -v github.com/AyakuraYuki/springboot-ddd-gen-mysql@latest

$GOBIN/springboot-ddd-gen-mysql -h
# -h string
#       host - 主机名,默认 localhost (default "localhost")
# -P int
#       port - 端口号,默认 3306 (default 3306)
# -u string
#       user - 用户名 (default "root")
# -p string
#       password - 密码 (default "root")
# -d string
#       schema name - 数据库名 (default "db_local")
# -t string
#       table name - 表名 (default "tb_user")
# -D string
#       domain name - 领域名 (default "user")

build from source codes

  1. clone this repository
  2. enter the path to your clone
  3. run cmd go build -o springboot-ddd-gen-mysql

Documentation

Overview

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Jump to

Keyboard shortcuts

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