~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_data.h

  • Committer: Brian Aker
  • Date: 2010-10-27 21:00:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1886.
  • Revision ID: brian@tangent.org-20101027210049-zfpgx2cfbrh8maq9
A couple of fixes to documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
 
65
65
    DrizzleDumpIndex(std::string &index, DrizzleDumpConnection* connection) :
66
66
      dcon(connection),
67
 
      indexName(index),
68
 
      isPrimary(false),
69
 
      isUnique(false),
70
 
      isHash(false)
 
67
      indexName(index)
71
68
    { }
72
69
 
73
70
    virtual ~DrizzleDumpIndex() { }
86
83
  public:
87
84
    DrizzleDumpField(std::string &field, DrizzleDumpConnection* connection) :
88
85
      dcon(connection),
89
 
      fieldName(field),
90
 
      isNull(false),
91
 
      isUnsigned(false),
92
 
      isAutoIncrement(false),
93
 
      defaultIsNull(false),
94
 
      convertDateTime(false),
95
 
      rangeCheck(false)
 
86
      fieldName(field)
96
87
    { }
97
88
 
98
89
    virtual ~DrizzleDumpField() { }
110
101
    bool isAutoIncrement;
111
102
    bool defaultIsNull;
112
103
    bool convertDateTime;
113
 
    bool rangeCheck;
114
104
    std::string defaultValue;
115
105
    std::string collation;
116
 
    std::string comment;
117
106
 
118
107
    /* For enum type */
119
108
    std::string enumValues;
131
120
  public:
132
121
    DrizzleDumpTable(std::string &table, DrizzleDumpConnection* connection) :
133
122
      dcon(connection),
134
 
      tableName(table),
135
 
      database(NULL)
 
123
      tableName(table)
136
124
    { }
137
125
 
138
126
    virtual ~DrizzleDumpTable() { }
195
183
    drizzle_result_st *result;
196
184
    DrizzleDumpData(DrizzleDumpTable *dataTable, DrizzleDumpConnection *connection) :
197
185
      dcon(connection),
198
 
      table(dataTable),
199
 
      result(NULL)
 
186
      table(dataTable)
200
187
    { }
201
188
 
202
189
    virtual ~DrizzleDumpData() { }
242
229
 
243
230
    void freeResult(drizzle_result_st* result);
244
231
    bool setDB(std::string databaseName);
245
 
    bool usingDrizzleProtocol(void) const { return drizzleProtocol; }
246
 
    bool getServerType(void) const { return serverType; }
 
232
    bool usingDrizzleProtocol(void) { return drizzleProtocol; }
 
233
    bool getServerType(void) { return serverType; }
247
234
    const char* getServerVersion(void) { return drizzle_con_server_version(&connection); }
248
235
};
249
236
 
265
252
    void writeString(std::string &str)
266
253
    {
267
254
      if (not connection->queryNoResult(str))
268
 
        throw std::exception();
 
255
        throw 1;
269
256
    }
270
257
 
271
258
    void setConnection(DrizzleDumpConnection *conn) { connection= conn; }