Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 832 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 832 Bytes

GORM Oracle Driver

Description

GORM Oracle driver for connect Oracle DB and Manage Oracle DB, Based on stevefan1999-personal/gorm-driver-oracle ,not recommended for use in a production environment

Required dependency Install

Quick Start

how to install

go get github.com/cengsin/oracle

usage

import (
	"fmt"
	"github.com/cengsin/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
}