Merge a8cecf2b8edcce50649a52af7a63338264e64427 into 9acaa33324bbcc78239a1c913d4f1292c12177b9

This commit is contained in:
Thomas Boerger 2017-05-27 20:05:10 +00:00 committed by GitHub
commit 70df6760e9

View File

@ -110,6 +110,11 @@ func (s *DB) DB() *sql.DB {
return db
}
// DialectName returns the name of the used dialect.
func (s *DB) DialectName() string {
return s.dialect.GetName()
}
// CommonDB return the underlying `*sql.DB` or `*sql.Tx` instance, mainly intended to allow coexistence with legacy non-GORM code.
func (s *DB) CommonDB() SQLCommon {
return s.db