refactored to its own file: it defines an interface for ora specific behaviours, especially when handling last insert id
This commit is contained in:
parent
33dab6599f
commit
10c90b51a7
8
dialect_ora.go
Normal file
8
dialect_ora.go
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
package gorm
|
||||||
|
|
||||||
|
// OraDialect interface allows for each Ora driver to implement custom behaviours
|
||||||
|
type OraDialect interface {
|
||||||
|
// CreateWithReturningInto is called by gorm.createCallback(*Scope) and will create new entity while populating the identity ID into the primary key
|
||||||
|
// different drivers will have different ways of handling this behaviour for Ora
|
||||||
|
CreateWithReturningInto(*Scope)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user