~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_data.h

  • Committer: Mark Atwood
  • Date: 2011-08-17 19:14:47 UTC
  • mfrom: (2385.3.17 rf)
  • Revision ID: me@mark.atwood.name-20110817191447-h86yzddvycd0xmof
mergeĀ lp:~olafvdspek/drizzle/refactor6

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
      constraintName(name)
46
46
    { }
47
47
 
48
 
    virtual ~DrizzleDumpForeignKey() { }
49
 
 
50
48
    std::string parentColumns;
51
49
    std::string childColumns;
52
50
    std::string childTable;
54
52
    std::string deleteRule;
55
53
    std::string updateRule;
56
54
 
57
 
    friend std::ostream& operator <<(std::ostream &os, const DrizzleDumpForeignKey &obj);
 
55
    friend std::ostream& operator<<(std::ostream &os, const DrizzleDumpForeignKey &obj);
58
56
};
59
57
 
60
58
class DrizzleDumpIndex
80
78
    /* Stores the column name and the length of the index part */
81
79
    typedef std::pair<std::string,uint32_t> columnData;
82
80
    std::vector<columnData> columns;
83
 
    friend std::ostream& operator <<(std::ostream &os, const DrizzleDumpIndex &obj);
 
81
    friend std::ostream& operator<<(std::ostream &os, const DrizzleDumpIndex &obj);
84
82
};
85
83
 
86
84
class DrizzleDumpField
102
100
 
103
101
    std::stringstream errmsg;
104
102
 
105
 
    friend std::ostream& operator <<(std::ostream &os, const DrizzleDumpField &obj);
 
103
    friend std::ostream& operator<<(std::ostream &os, const DrizzleDumpField &obj);
106
104
    std::string fieldName;
107
105
 
108
106
    std::string type;
151
149
    std::vector<DrizzleDumpIndex*> indexes;
152
150
    std::vector<DrizzleDumpForeignKey*> fkeys;
153
151
 
154
 
    friend std::ostream& operator <<(std::ostream &os, const DrizzleDumpTable &obj);
 
152
    friend std::ostream& operator<<(std::ostream &os, const DrizzleDumpTable &obj);
155
153
    std::string tableName;
156
154
    std::string displayName;
157
155
    std::string engineName;
177
175
 
178
176
    std::stringstream errmsg;
179
177
 
180
 
    friend std::ostream& operator <<(std::ostream &os, const DrizzleDumpDatabase &obj);
 
178
    friend std::ostream& operator<<(std::ostream &os, const DrizzleDumpDatabase &obj);
181
179
 
182
180
    virtual bool populateTables(void) { return false; }
183
181
    virtual bool populateTables(const std::vector<std::string> &table_names) { return table_names.empty(); }
204
202
    { }
205
203
 
206
204
    virtual ~DrizzleDumpData() { }
207
 
    friend std::ostream& operator <<(std::ostream &os, const DrizzleDumpData &obj);
 
205
    friend std::ostream& operator<<(std::ostream &os, const DrizzleDumpData &obj);
208
206
 
209
207
    virtual std::string checkDateTime(const char*, uint32_t) const { return std::string(""); }
210
208
    std::string convertHex(const unsigned char* from, size_t from_size) const;