mirror of https://github.com/go-gorm/gorm.git
Get Dialect of DB
This commit is contained in:
parent
02f6ae3c4e
commit
6732a50dfb
5
main.go
5
main.go
|
@ -91,6 +91,11 @@ func (s *DB) DB() *sql.DB {
|
||||||
return s.db.(*sql.DB)
|
return s.db.(*sql.DB)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dialect get dialect
|
||||||
|
func (s *DB) Dialect() Dialect {
|
||||||
|
return s.parent.dialect
|
||||||
|
}
|
||||||
|
|
||||||
// New clone a new db connection without search conditions
|
// New clone a new db connection without search conditions
|
||||||
func (s *DB) New() *DB {
|
func (s *DB) New() *DB {
|
||||||
clone := s.clone()
|
clone := s.clone()
|
||||||
|
|
Loading…
Reference in New Issue