Merge a8cecf2b8edcce50649a52af7a63338264e64427 into 9acaa33324bbcc78239a1c913d4f1292c12177b9
This commit is contained in:
commit
70df6760e9
5
main.go
5
main.go
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user