761 B
761 B
GORM Oracle Driver
Description
GORM Oracle driver for connect Oracle DB and Manage Oracle DB, Based on CengSin/oracle ,not recommended for use in a production environment
Required dependency Install
- Oracle 12C+
- Oracle 11g
- Golang 1.13+
- see ODPI-C Installation.
- gorm 1.24.0+
Quick Start
how to install
go get github.com/dzwvip/oracle
usage
import (
"fmt"
"github.com/dzwvip/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
}