refactored to its own file for clarity

This commit is contained in:
Jim Lambert 2020-02-16 11:32:48 -05:00
parent 6a35b8fe6e
commit 33dab6599f

View File

@ -145,11 +145,3 @@ func currentDatabaseAndTable(dialect Dialect, tableName string) (string, string)
} }
return dialect.CurrentDatabase(), tableName 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)
}