code: func (adapter *Adapter) Commit() error {
  	var err error
  
  	if adapter.Tx == nil {
  		err = errors.NewUnexpected("unable to commit outside transaction")
  	} else if adapter.savepoint > 0 {
  		_, _, err = adapter.Exec("RELEASE SAVEPOINT s"+strconv.Itoa(adapter.savepoint)+";", []interface{}{})
  	} else {
  		err = adapter.Tx.Commit()
  	}
  
  	return adapter.Config.ErrorFunc(err)
  }
docs: // Commit commits current transaction.