gorm/callback_shared.go
2014-01-26 17:10:33 +08:00

10 lines
147 B
Go

package gorm
func BeginTransaction(scope *Scope) {
scope.Begin()
}
func CommitOrRollbackTransaction(scope *Scope) {
scope.CommitOrRollback()
}