1 Star 0 Fork 0

miajio / go-generator-mysql

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

go-generator-mysql

介绍

仿java mybatis generator 代码生成工具

go语言版本 >= 1.18

已完成工作

连接数据库后依据数据库表名生成结构体

需要完成工作

生成结构体后生成结构体快捷操作Example

Example结构体需生成

findById key = ?

page limit (?, ?)

基于结构体对应参数生成

EqualTo(val interface{}) param = ?

NotEqualTo(val interface{}) param <> ?

GreaterThan(val interface{}) param > ?

GreaterThanOrEqualTo(val interface{}) param >= ?

LessThan(val interface{}) param < ?

LessThanOrEqualTo(val interface{}) param <= ?

Like(val interface{}) param like ?

NotLike(val interface{}) param not like ?

In(val interface{}) param in (?)

NotIn(val interface{}) param not in (?)

Between(a, b interface{}) param between (?, ?)

NotBetween(a, b interface{}) param not between (?, ?)

IsNull param is null

IsNotNull param not null

MIT License Copyright (c) 2022 miajio 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.

简介

仿java mybatis generator 代码生成工具 V1.0.1版本 master分支 可通过generate文件目录中的TestEngine方法执行生成数据库对应的结构体输出 展开 收起
Go
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/miajio/go-generator-mysql.git
git@gitee.com:miajio/go-generator-mysql.git
miajio
go-generator-mysql
go-generator-mysql
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891