static folly::StringPiece operationTypeToString()

in squangle/logger/DBEventLogger.h [62:87]


  static folly::StringPiece operationTypeToString(
      OperationType operation_type) {
    switch (operation_type) {
      case OperationType::None:
        return "None";
      case OperationType::Query:
        return "Query";
      case OperationType::MultiQuery:
        return "MultiQuery";
      case OperationType::MultiQueryStream:
        return "MultiQueryStream";
      case OperationType::Connect:
        return "Connect";
      case OperationType::PoolConnect:
        return "PoolConnect";
      case OperationType::Locator:
        return "Locator";
      case OperationType::TestDatabase:
        return "TestDatabase";
      case OperationType::Reset:
        return "Reset";
      case OperationType::ChangeUser:
        return "ChangeUser";
    }
    return "(should not happen)";
  }