func (dbc *Connection) Begin(opts ...func(*sql.TxOptions)) (*sql.Tx, error) {
	if dbc.Connection == nil {
		return nil, ex.New(ErrConnectionClosed)
	}
	return dbc.BeginContext(context.Background(), opts...)
}
// Begin starts a new transaction.
Begin starts a new transaction.
// Begin starts a new transaction .
func (dbc *Connection) Begin(opts ...func(*sql.TxOptions)) (*sql.Tx, error) {
	if dbc.Connection == nil {
		return nil, ex.New(ErrConnectionClosed)
	}
	return dbc.BeginContext(context.Background(), opts...)
}
func ( dbc * Connection ) Begin ( opts ... func ( * sql . TxOptions ) ) ( * sql . Tx , error ) { if dbc . Connection == nil { return nil , ex . New ( ErrConnectionClosed ) } return dbc . BeginContext ( context . Background ( ) , opts ... ) }
Begin starts a new transaction.
Begin starts a new transaction .