GORM Oracle driver for connect Oracle DB and Manage Oracle DB, forked from CengSin/oracle.
- Oracle 12C+
- Golang 1.13+
- see ODPI-C Installation.
go get github.com/moveaxlab/oracle
import (
"fmt"
"github.com/moveaxlab/oracle"
"gorm.io/gorm"
"log"
)
func main() {
db, err := gorm.Open(oracle.Open("system/[email protected]:1521/XE"), &gorm.Config{})
if err != nil {
// panic error or log error info
}
// do somethings
}