~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_data.h

  • Committer: Lee Bieber
  • Date: 2011-02-11 20:30:05 UTC
  • mfrom: (2157.1.3 build)
  • Revision ID: kalebral@gmail.com-20110211203005-757o1y2yf78dxzqr
Merge Stewart - 716848: drizzleimport displays wrong program_name
Merge Stewart - update README file
Merge Andrew and Joe - Exposes the InnoDB SYS_REPLICATION_LOG to data_dictionary so that it is fast and fixes many issues we have been having

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#define DRIZZLE_MAX_LINE_LENGTH 1024*1024L-1025
24
24
#include "client_priv.h"
25
 
#include "server_detect.h"
26
25
#include <string>
27
26
#include <iostream>
28
27
#include <iomanip>
215
214
    drizzle_con_st connection;
216
215
    std::string hostName;
217
216
    bool drizzleProtocol;
218
 
    ServerDetect::server_type serverType;
219
 
    std::string serverVersion;
 
217
    int serverType;
220
218
 
221
219
  public:
 
220
    enum server_type {
 
221
      SERVER_MYSQL_FOUND,
 
222
      SERVER_DRIZZLE_FOUND,
 
223
      SERVER_UNKNOWN_FOUND
 
224
    };
222
225
    DrizzleDumpConnection(std::string &host, uint16_t port,
223
226
      std::string &username, std::string &password, bool drizzle_protocol);
224
227
    ~DrizzleDumpConnection();
241
244
    bool setDB(std::string databaseName);
242
245
    bool usingDrizzleProtocol(void) const { return drizzleProtocol; }
243
246
    bool getServerType(void) const { return serverType; }
244
 
    std::string getServerVersion(void) const { return serverVersion; }
 
247
    const char* getServerVersion(void) { return drizzle_con_server_version(&connection); }
245
248
};
246
249
 
247
250
class DrizzleStringBuf : public std::streambuf