yezihack / Go Mygen
Licence: apache-2.0
Quickly generate CURD and documentation for operating MYSQL.etc
Stars: ✭ 94
Projects that are alternatives of or similar to Go Mygen
Cetus
Cetus is a high performance middleware that provides transparent routing between your application and any backend MySQL Servers.
Stars: ✭ 1,199 (+1175.53%)
Mutual labels: database, mysql
Qtl
A friendly and lightweight C++ database library for MySQL, PostgreSQL, SQLite and ODBC.
Stars: ✭ 92 (-2.13%)
Mutual labels: database, mysql
Etl with python
ETL with Python - Taught at DWH course 2017 (TAU)
Stars: ✭ 68 (-27.66%)
Mutual labels: database, mysql
Directus Docker
Directus 6 Docker — Legacy Container [EOL]
Stars: ✭ 68 (-27.66%)
Mutual labels: database, mysql
Node Sql Fixtures
SQL fixtures for Node.js in PostgreSQL, MySQL, MariaDB and SQLite
Stars: ✭ 76 (-19.15%)
Mutual labels: database, mysql
Scalikejdbc
A tidy SQL-based DB access library for Scala developers. This library naturally wraps JDBC APIs and provides you easy-to-use APIs.
Stars: ✭ 1,139 (+1111.7%)
Mutual labels: database, mysql
Shorty
🔗 A URL shortening service built using Flask and MySQL
Stars: ✭ 78 (-17.02%)
Mutual labels: database, mysql
Agent
The best way to backup and restore your database
Stars: ✭ 80 (-14.89%)
Mutual labels: database, mysql
Dbmigrations
A library for the creation, management, and installation of schema updates for relational databases.
Stars: ✭ 67 (-28.72%)
Mutual labels: database, mysql
Docnado
Rapid documentation tool that will blow you away...
Stars: ✭ 67 (-28.72%)
Mutual labels: markdown, tool
Zabbixdba
Zabbix Database Monitoring Service (Oracle, Pg, MySQL, MS SQL, DB2, etc.)
Stars: ✭ 68 (-27.66%)
Mutual labels: database, mysql
Laravel Log To Db
Custom Laravel and Lumen 5.6+ Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel/Monolog native logging functionality.
Stars: ✭ 76 (-19.15%)
Mutual labels: database, mysql
Electrocrud
Database CRUD Application Built on Electron | MySQL, Postgres, SQLite
Stars: ✭ 1,267 (+1247.87%)
Mutual labels: database, mysql
Event Management
helps to register an users for on events conducted in college fests with simple logic with secured way
Stars: ✭ 65 (-30.85%)
Mutual labels: database, mysql
go-mygen
Code generator tools with MYSQL,avoid ORM performance penalty, Go-mygen is a tool that automatically generates MySQL table entities,CRUD and Markdown documents.
go-mygen是一款自动生成MySQL表实体,CRUD,Markdown文档工具
Install
>= go1.13.0
go get -u -x github.com/yezihack/go-mygen
Using v3.3.9 releases
Version information
QuickStart
- See Help
go-mygen help
- See Version
go-mygen v
- Connection
go-mygen -h localhost -P 3306 -u root -p 123456 -d default
Features
- Generate the markdown document for the database table
- Generate the structure entities for the golang table
- Custom structure parsing entities, such as json,gorm, XML, etc
- Generate golang operation mysql add, delete, modify and select code statements
- Config, Entity and CURD directories are stored separate
- Custom build directory
- Clear screen, exit and other functions
- Use an asterisk instead of the password you entered
Parameters info
Go-mygen GLOBAL OPTIONS
GLOBAL OPTIONS:
-h value Database address (default: "127.0.0.1")
-P value port number (default: 3306)
-u value database username (default: "root")
-p value database password
-c value database format (default: "utf8mb4")
-d value database name
--debug debug (default: false)
Operation Command (input number)
NO:0 Set build directory
NO:1 Generate the table markdown document
NO:2 Generate table structure entities
NO:3 Generate CURD insert, delete, update and select
NO:4 Sets the struct mapping name
NO:5 Find or set the table name
NO:7, c, clear Clear the screen
NO:8, h, help Show help list
NO:9, q, quit Quit
Go-mygen 全局参数说明
GLOBAL OPTIONS:
-h value Database address (default: "127.0.0.1") 数据库地址,必填
-P value port number (default: 3306) 数据库端口号,必填
-u value database username (default: "root") 数据库名称,必填
-p value database password 数据库登陆密码,必填
-c value database format (default: "utf8mb4") 数据库编码
-d value database name 数据库名称,必填
--debug debug (default: false) 开启调试
操作命令,只需要输入NO号,即可操作相关命令
NO:0 Set build directory 设置存储目录
NO:1 Generate the table markdown document 生成Markdonw文档
NO:2 Generate table structure entities 生成Golang代码的实体(即表的实体)
NO:3 Generate CURD insert, delete, update and select 生成Golang的CRUD代码
NO:4 Sets the struct mapping name 设置实体解析参数,多个,以逗号分隔. 如`json:"name"`
NO:5 Find or set the table name 选择需要操作的数据库表, 默认全部
NO:7, c, clear Clear the screen 清屏
NO:8, h, help Show help list 显示帮助
NO:9, q, quit Quit 安全退出
Package
Thanks for these packages
go get -u github.com/go-bindata/go-bindata/...
github.com/urfave/cli/v2
github.com/howeyc/gopass
Other
Welcome to issue, Thanks.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].