Go to file
2024-05-10 10:27:21 +08:00
clauses update 2024-05-09 16:59:25 +08:00
.gitignore update 2024-05-10 10:27:21 +08:00
create.go update 2024-05-10 10:27:21 +08:00
go.mod update 2024-05-10 10:27:21 +08:00
go.sum update 2024-05-10 10:27:21 +08:00
License update 2024-05-10 10:27:21 +08:00
migrator.go update 2024-05-10 10:27:21 +08:00
namer.go update 2024-05-10 10:27:21 +08:00
oracle.go update 2024-05-10 10:27:21 +08:00
README.md update 2024-05-10 10:27:21 +08:00
reserved.go update 2024-05-09 16:59:25 +08:00
utils.go update 2024-05-09 16:59:25 +08:00

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

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
}