forked from mirror/gorm
commit
a6b790ffd0
2
main.go
2
main.go
|
@ -528,7 +528,7 @@ func (s *DB) Begin() *DB {
|
||||||
return s.BeginTx(context.Background(), &sql.TxOptions{})
|
return s.BeginTx(context.Background(), &sql.TxOptions{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// BeginTX begins a transaction with options
|
// BeginTx begins a transaction with options
|
||||||
func (s *DB) BeginTx(ctx context.Context, opts *sql.TxOptions) *DB {
|
func (s *DB) BeginTx(ctx context.Context, opts *sql.TxOptions) *DB {
|
||||||
c := s.clone()
|
c := s.clone()
|
||||||
if db, ok := c.db.(sqlDb); ok && db != nil {
|
if db, ok := c.db.(sqlDb); ok && db != nil {
|
||||||
|
|
Loading…
Reference in New Issue