The fantastic ORM library for Golang, aims to be developer friendly.
参考此博客增加的对 Oracle 数据库的支持。版本号与原版将保持一致。如未用到 Oracle 数据库,请使用原版。
建立此仓库旨在维护 dialect_oracle.go 文件,此文件来自上述博客。
import (
_ "github.com/mattn/go-oci8"
_ "github.com/scfhao/gorm/dialects/oci8"
"github.com/scfhao/gorm"
)
// if use SID, "username/password@tnsname"
db, err := gorm.Open("oci8", "username/password@127.0.0.1:1521/ServiceName")
© Jinzhu, 2013~time.Now
Released under the MIT License