~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_data.h

  • Committer: Andrew Hutchings
  • Date: 2010-10-12 15:43:24 UTC
  • mto: (1856.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1857.
  • Revision ID: andrew@linuxjedi.co.uk-20101012154324-mf9lnvixb4lay5ut
Add foreign keys to Drizzle server

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
class DrizzleDumpDatabase;
34
34
class DrizzleDumpData;
35
35
 
 
36
class DrizzleDumpForeignKey
 
37
{
 
38
  public:
 
39
    DrizzleDumpConnection *dcon;
 
40
    std::string constraintName;
 
41
 
 
42
    DrizzleDumpForeignKey(std::string name, DrizzleDumpConnection* connection) :
 
43
      dcon(connection),
 
44
      constraintName(name)
 
45
    { }
 
46
 
 
47
    virtual ~DrizzleDumpForeignKey() { }
 
48
 
 
49
    std::string parentColumns;
 
50
    std::string childColumns;
 
51
    std::string childTable;
 
52
    std::string matchOption;
 
53
    std::string deleteRule;
 
54
    std::string updateRule;
 
55
 
 
56
    friend std::ostream& operator <<(std::ostream &os, const DrizzleDumpForeignKey &obj);
 
57
};
 
58
 
36
59
class DrizzleDumpIndex
37
60
{
38
61
  public:
107
130
 
108
131
    virtual bool populateFields() { return false; }
109
132
    virtual bool populateIndexes() { return false; }
 
133
    virtual bool populateFkeys() { return false; }
110
134
    virtual DrizzleDumpData* getData() { return NULL; }
111
135
    std::vector<DrizzleDumpField*> fields;
112
136
    std::vector<DrizzleDumpIndex*> indexes;
 
137
    std::vector<DrizzleDumpForeignKey*> fkeys;
113
138
 
114
139
    friend std::ostream& operator <<(std::ostream &os, const DrizzleDumpTable &obj);
115
140
    std::string tableName;