oracle
oracle copied to clipboard
GORM oracle driver
https://github.com/dzwvip/oracle
```bash go get github.com/cengsin/oracle # github.com/cengsin/oracle ../../../../../pkg/mod/github.com/cengsin/[email protected]/oracle.go:53:59: unknown field 'WithReturning' in struct literal of type callbacks.Config ```
# github.com/cengsin/oracle ..\..\pkg\mod\github.com\cengsin\[email protected]\oracle.go:53:59: unknown field 'WithReturning' in struct literal of type callbacks.Config
err = db.Where("ID=?",1).First(&info).Error 报错,dpiStmt_execute:ORA-00933:SQL command not properly ended
Trying to connect oracle with this URL > db, err := gorm.Open(oracle.Open("Soracle/oracle@[email protected]:1521/tibret") But got this instead ``` [error] failed to initialize database, got error params=user=Soracle password="SECRET-z4Enewm1A2k=" [email protected]:1521/tibret timezone=local poolIncrement=1 poolMaxSessions=1000...
支持 insert into `username.table` 格式
Changes to support newer versions of godror/gorm. Newest packages give these errors: go/pkg/mod/github.com/cengsin/[email protected]/create.go:137:39: not enough arguments in call to field.Set have (reflect.Value, any) want (context.Context, reflect.Value, interface{}) go/pkg/mod/github.com/cengsin/[email protected]/oracle.go:53:59: unknown field...