refactored to its own file: it defines an interface for ora specific behaviours, especially when handling last insert id

This commit is contained in:
Jim Lambert 2020-02-16 11:33:44 -05:00
parent 33dab6599f
commit 10c90b51a7

8
dialect_ora.go Normal file
View 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)
}