~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_data.h

  • Committer: Mark Atwood
  • Date: 2011-11-30 07:06:47 UTC
  • mfrom: (2463.1.6 drizzle-include)
  • Revision ID: me@mark.atwood.name-20111130070647-ixp7oalp70hkbt6l
mergeĀ lp:~brianaker/drizzle/libdrizzle-2.0-not-install

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
class DrizzleDumpConnection
213
213
{
214
214
  private:
215
 
    drizzle_st drizzle;
216
 
    drizzle_con_st connection;
 
215
    drizzle_st *drizzle;
 
216
    drizzle_con_st *connection;
217
217
    std::string hostName;
218
218
    bool drizzleProtocol;
219
219
    ServerDetect::server_type serverType;
220
220
    std::string serverVersion;
221
221
 
222
222
  public:
223
 
    DrizzleDumpConnection(std::string &host, uint16_t port,
224
 
      std::string &username, std::string &password, bool drizzle_protocol);
 
223
    DrizzleDumpConnection(std::string &host,
 
224
                          uint16_t port,
 
225
                          std::string &username,
 
226
                          std::string &password,
 
227
                          bool drizzle_protocol);
 
228
 
225
229
    ~DrizzleDumpConnection();
 
230
 
226
231
    void errorHandler(drizzle_result_st *res,  drizzle_return_t ret, const char *when);
227
232
    drizzle_result_st* query(std::string &str_query);
228
233
    bool queryNoResult(std::string &str_query);
232
237
      std::string str_query(ch_query);
233
238
      return query(str_query);
234
239
    }
 
240
 
235
241
    bool queryNoResult(const char* ch_query)
236
242
    {
237
243
      std::string str_query(ch_query);
263
269
    void writeString(std::string &str)
264
270
    {
265
271
      if (not connection->queryNoResult(str))
 
272
      {
266
273
        throw std::exception();
 
274
      }
267
275
    }
268
276
 
269
277
    void setConnection(DrizzleDumpConnection *conn) { connection= conn; }