https://github.com/devzolo/oracle
https://github.com/devzolo/oracle
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devzolo/oracle
- Owner: devzolo
- License: other
- Created: 2022-07-20T14:28:48.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T14:29:29.000Z (about 2 years ago)
- Last Synced: 2025-04-04T03:29:51.384Z (about 1 year ago)
- Language: Go
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# GORM Oracle Driver
## Required dependency Install
- Oracle 12C+
- Golang 1.13+
- see [ODPI-C Installation.](https://oracle.github.io/odpi/doc/installation.html)
## Quick Start
### how to install
```bash
go get github.com/devzolo/oracle
```
### usage
```go
import (
"fmt"
"github.com/devzolo/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
}
```