declare OraDialect interface so different Ora drivers can properly implement this behaviour
This commit is contained in:
parent
b85e1c548f
commit
37acd305bf
@ -145,3 +145,11 @@ func currentDatabaseAndTable(dialect Dialect, tableName string) (string, string)
|
||||
}
|
||||
return dialect.CurrentDatabase(), tableName
|
||||
}
|
||||
|
||||
// OraDialect interface contains behaviors that differ that other databases and 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