周玉环 d906a41c2e first commit vor 5 Tagen
..
i18n d906a41c2e first commit vor 5 Tagen
parser d906a41c2e first commit vor 5 Tagen
security d906a41c2e first commit vor 5 Tagen
util d906a41c2e first commit vor 5 Tagen
CHANGELOG.md d906a41c2e first commit vor 5 Tagen
README.md d906a41c2e first commit vor 5 Tagen
VERSION d906a41c2e first commit vor 5 Tagen
a.go d906a41c2e first commit vor 5 Tagen
b.go d906a41c2e first commit vor 5 Tagen
c.go d906a41c2e first commit vor 5 Tagen
d.go d906a41c2e first commit vor 5 Tagen
e.go d906a41c2e first commit vor 5 Tagen
f.go d906a41c2e first commit vor 5 Tagen
g.go d906a41c2e first commit vor 5 Tagen
h.go d906a41c2e first commit vor 5 Tagen
i.go d906a41c2e first commit vor 5 Tagen
j.go d906a41c2e first commit vor 5 Tagen
k.go d906a41c2e first commit vor 5 Tagen
l.go d906a41c2e first commit vor 5 Tagen
m.go d906a41c2e first commit vor 5 Tagen
n.go d906a41c2e first commit vor 5 Tagen
o.go d906a41c2e first commit vor 5 Tagen
p.go d906a41c2e first commit vor 5 Tagen
q.go d906a41c2e first commit vor 5 Tagen
r.go d906a41c2e first commit vor 5 Tagen
s.go d906a41c2e first commit vor 5 Tagen
t.go d906a41c2e first commit vor 5 Tagen
u.go d906a41c2e first commit vor 5 Tagen
v.go d906a41c2e first commit vor 5 Tagen
w.go d906a41c2e first commit vor 5 Tagen
x.go d906a41c2e first commit vor 5 Tagen
y.go d906a41c2e first commit vor 5 Tagen
z.go d906a41c2e first commit vor 5 Tagen
za.go d906a41c2e first commit vor 5 Tagen
zb.go d906a41c2e first commit vor 5 Tagen
zc.go d906a41c2e first commit vor 5 Tagen
zd.go d906a41c2e first commit vor 5 Tagen
ze.go d906a41c2e first commit vor 5 Tagen
zf.go d906a41c2e first commit vor 5 Tagen
zg.go d906a41c2e first commit vor 5 Tagen
zh.go d906a41c2e first commit vor 5 Tagen
zi.go d906a41c2e first commit vor 5 Tagen
zn.go d906a41c2e first commit vor 5 Tagen
zo.go d906a41c2e first commit vor 5 Tagen
zp.go d906a41c2e first commit vor 5 Tagen
zq.go d906a41c2e first commit vor 5 Tagen
zr.go d906a41c2e first commit vor 5 Tagen
zs.go d906a41c2e first commit vor 5 Tagen
zv.go d906a41c2e first commit vor 5 Tagen
zw.go d906a41c2e first commit vor 5 Tagen
zx.go d906a41c2e first commit vor 5 Tagen
zzj.go d906a41c2e first commit vor 5 Tagen
zzk.go d906a41c2e first commit vor 5 Tagen
zzl.go d906a41c2e first commit vor 5 Tagen
zzm.go d906a41c2e first commit vor 5 Tagen
zzn.go d906a41c2e first commit vor 5 Tagen
zzo.go d906a41c2e first commit vor 5 Tagen
zzp.go d906a41c2e first commit vor 5 Tagen

README.md

dm

介绍

go get gitee.com/chunanyong/dm 

达梦数据库官方Go驱动,本项目和官方驱动版本同步,方便go mod 使用.
安装达梦数据库(版本>=8.1.1.126),安装目录下 drivers/go/dm-go-driver.zip
达梦官方文档:https://eco.dameng.com/docs/zh-cn/app-dev/go-go.html
资源下载:https://eco.dameng.com/download/
达梦官方Go驱动包:https://package.dameng.com/eco/adapter/resource/go/dm-go-driver.zip
达梦官方论坛(提交bug):https://eco.dameng.com/community/question

zorm

Go轻量ORM https://gitee.com/chunanyong/zorm 原生支持达梦数据库

DSN

dm://userName:password@127.0.0.1:5236?schema=DBName
用户名(userName)默认就是数据库的名称,达梦用户模式和数据库名称是对应的,也可以通过schema参数指定数据库
建议达梦使用UTF-8字符编码,不区分大小写,建表语句的字段名不要带""双引号

bug

  • 达梦开启等保参数 COMM_ENCRYPT_NAME = AES128_ECB,导致连接异常

版本号

Go三段位版本号和达梦四段位版本号不兼容,统一使用1.达梦主版本号.发布的小版本号,具体查看标签的备注

  • v1.8.13 来自 达梦8.1.3.62
  • v1.8.12 来自 达梦8.1.3.12
  • v1.8.11 来自 达梦8.1.2.192
  • v1.8.10 来自 达梦8.1.2.174
  • v1.8.9 来自 达梦8.1.2.162
  • v1.8.8 来自 达梦8.1.2.138
  • v1.8.7 来自 达梦8.1.2.128
  • v1.8.6 来自 达梦8.1.2.114
  • v1.8.5 来自 达梦8.1.2.94
  • v1.8.4 来自 达梦8.1.2.84
  • v1.8.3 来自 达梦8.1.2.38
  • v1.8.2 来自 达梦8.1.2.18
  • v1.8.1 来自 达梦8.1.1.190
  • v1.8.0 来自 达梦8.1.1.126