Oracle 12C+
Golang 1.13+
下载依赖
go get github.com/cengsin/oracle
样例
import (
"fmt"
"github.com/cengsin/oracle"
"gorm.io/gorm"
"log"
)
func main() {
db, err := gorm.Open(oracle.Open("system/oracle@127.0.0.1:1521/XE"), &gorm.Config{})
if err != nil {
// panic error or log error info
}
// do somethings
}