code: func (adapter *PostgresAdapter) ErrorEquals(err error, sqlErrorType types.SQLErrorType) bool {
  	if err, ok := err.(*pq.Error); ok {
  		switch sqlErrorType {
  		case types.SQLErrorTypeGeneric:
  			return true
  		case types.SQLErrorTypeDuplicatedColumn:
  			return err.Code == "42701"
  		case types.SQLErrorTypeDuplicatedTable:
  			return err.Code == "42P07"
  		case types.SQLErrorTypeDuplicatedSchema:
  			return err.Code == "42P06"
  		case types.SQLErrorTypeUndefinedTable:
  			return err.Code == "42P01"
  		case types.SQLErrorTypeUndefinedColumn:
  			return err.Code == "42703"
  		case types.SQLErrorTypeInvalidType:
  			return err.Code == "42704"
  		}
  	}
  
  	return false
  }
docs: // ErrorEquals verify if an error is of a given SQL type