zorm 1.3.2 发布,Golang 轻量级 ORM

栏目: 软件资讯 · 发布时间: 5年前

内容简介:zorm,golang 轻量级 ORM,readygo子项目 源码地址:https://gitee.com/chunanyong/zorm go get gitee.com/chunanyong/zorm 基于原生sql语句编写,是springrain的精简和优化. 自带代码生成器 代码精简,总计2000行...

zorm,golang 轻量级 ORM,readygo子项目

源码地址:https://gitee.com/chunanyong/zorm

go get gitee.com/chunanyong/zorm 

生产使用参考 UserStructService.go

更新内容如下:

  1. 增加达梦数据的分页适配
  2. 完善调整代码注释
  3. 增加存储过程和函数的调用示例

//TestProc 13.测试调用存储过程
func TestProc(t *testing.T) {
	user := permstruct.UserStruct{}
	finder := zorm.NewFinder().Append("call testproc(?) ", "u_10001")
	zorm.Query(ctx, finder, &user)
	fmt.Println(user)
}

//TestFunc 14.测试调用自定义函数
func TestFunc(t *testing.T) {
	userName := ""
	finder := zorm.NewFinder().Append("select testfunc(?) ", "u_10001")
	zorm.Query(ctx, finder, &userName)
	fmt.Println(userName)
}

 


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Smashing Book

The Smashing Book

Jacob Gube、Dmitry Fadeev、Chris Spooner、Darius A Monsef IV、Alessandro Cattaneo、Steven Snell、David Leggett、Andrew Maier、Kayla Knight、Yves Peters、René Schmidt、Smashing Magazine editorial team、Vitaly Friedman、Sven Lennartz / 2009 / $ 29.90 / € 23.90

The Smashing Book is a printed book about best practices in modern Web design. The book shares technical tips and best practices on coding, usability and optimization and explores how to create succes......一起来看看 《The Smashing Book》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

html转js在线工具
html转js在线工具

html转js在线工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具