Skip to content

dzwvip/oracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Other

Another library that uses the go-ora driver, gorm-oracle, does not require the installation of an Oracle client

Quick Start

how to install

go get github.com/dzwvip/oracle

usage

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
}