优雅的语法,支持批量插入,轻松嵌套条件,处理各种复杂的查询sql,诸如: and 和or组合
全语法支持: for update锁,is null, exists 子查询等基本上所有sql语法
风格如下:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
特点
- Golang-style SQL builder go语言风格sql生成
- Unlimited nesting query 查询条件无限嵌套
- Reading and Writing Separation 读写分离
- Delay connection creation 延迟创建连接
- ORM maping to sturct ORM映射结构体
- Transactions 事务支持
- Versatile 功能多样的
- Clean Code 简洁的代码
- Bulk Insert 支持批量插入
仓库地址:
https://github.com/rushteam/gosql
以上就是分享一款golang style语法的golang orm库的详细内容,更多文章请关注木庄网络博客!!
相关阅读 >>
手撸golang 基本数据结构与算法 图的搜索 深度优先/广度优先
linux怎么安装golang和dep(附错两个误解决方法)
使用 goroutine 和 chanel 快速实现并发和排队
更多相关阅读请进入《mysql》频道 >>

Go语言101
一个与时俱进的Go编程知识库。