没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
光 light是一种用于从go源文件中生成数据库查询代码的工具,该工具具有使用SQL和Variables注释的接口方法。 Interface methods commented with SQL and variables => go generate => Database query code implementation 用法 安装light工具。 确保$ PATH环境中的$ GOBIN。 `go get -u -v github.com/omigo/light` 运行light -h ,检查安装。 # light -h Usage of light: -log Generated file with log 定义接口,并使用SQL和变量注释方法,然后编写指令//go:generate light 。 //go:generate light -log -timeout 30 type User interface { // UPDATE users // SET [username=?,] // [phone=?,]
资源推荐
资源详情
资源评论
收起资源包目录
light-master.zip (51个子文件)
light-master
.travis.yml 86B
example
conf
conf.go 568B
model
user.go 337B
schema
1.user.sql 476B
store
user_test.go 5KB
user.light.go 12KB
user.go 3KB
connect.go 730B
sqlparser
select.go 2KB
insert.go 3KB
parser.go 5KB
update_test.go 460B
token.go 4KB
update.go 396B
insert_test.go 553B
create.go 443B
replace.go 2KB
delete_test.go 288B
delete.go 396B
create_test.go 388B
scanner.go 5KB
select_test.go 749B
ast.go 536B
light
execer.go 501B
goparser
method.go 3KB
parse_test.go 1KB
profile.go 3KB
parse.go 6KB
results.go 340B
params.go 817B
variable.go 4KB
generator
generate.go 2KB
template.go 12KB
generate_test.go 286B
main.go 1KB
.gitignore 468B
CHANGELOG.md 836B
go.sum 3KB
README.md 2KB
light.jpg 382KB
null
ints.go 7KB
floats.go 3KB
null.go 1KB
null_test.go 118B
string.go 1KB
clickhousetime.go 2KB
timestamp.go 1KB
bool.go 1KB
time.go 2KB
time_test.go 281B
go.mod 203B
共 51 条
- 1
资源评论
薯条说影
- 粉丝: 33
- 资源: 4689
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功