dzwvip / oracle

gorm-oracle godror
Other
21 stars 9 forks source link
driver godror gorm oracle

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

DB Driver

godror

Required dependency Install

import (
    "fmt"
    "github.com/dzwvip/oracle"
    "gorm.io/gorm"
    "log"
)

func main() {
    dsn := "oracle://system:password@127.0.0.1:1521/orcl"
    db, err := gorm.Open(oracle.Open(dsn), &gorm.Config{})
    if err != nil {
        // panic error or log error info
    } 

    // do somethings
}