scfhao / gorm

Oracle support for jinzhu/gorm

Home Page:https://gorm.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GORM

The fantastic ORM library for Golang, aims to be developer friendly.

go report card wercker status codecov Join the chat at https://gitter.im/jinzhu/gorm Open Collective Backer Open Collective Sponsor MIT license GoDoc

Overview

参考此博客增加的对 Oracle 数据库的支持。版本号与原版将保持一致。如未用到 Oracle 数据库,请使用原版。

建立此仓库旨在维护 dialect_oracle.go 文件,此文件来自上述博客。

使用方法

import (
	_ "github.com/mattn/go-oci8"
	_ "github.com/scfhao/gorm/dialects/oci8"
	"github.com/scfhao/gorm"
)

// if use SID, "username/password@tnsname"
db, err := gorm.Open("oci8", "username/password@127.0.0.1:1521/ServiceName")

License

© Jinzhu, 2013~time.Now

Released under the MIT License

About

Oracle support for jinzhu/gorm

https://gorm.io

License:MIT License


Languages

Language:Go 100.0%Language:Shell 0.0%