Changeset View
Changeset View
Standalone View
Standalone View
src/KDbConnection_p.h
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 45 | public: | |||
---|---|---|---|---|---|
76 | system tables schema. | 76 | system tables schema. | ||
77 | These objects are used internally in this connection and are added to list of tables | 77 | These objects are used internally in this connection and are added to list of tables | ||
78 | (by name, not by id because these have no ids). | 78 | (by name, not by id because these have no ids). | ||
79 | */ | 79 | */ | ||
80 | void setupKDbSystemSchema(); | 80 | void setupKDbSystemSchema(); | ||
81 | 81 | | |||
82 | void insertTable(KDbTableSchema* tableSchema); | 82 | void insertTable(KDbTableSchema* tableSchema); | ||
83 | 83 | | |||
84 | /*! Removes table schema pointed by tableSchema.id() and tableSchema.name() | 84 | /*! Removes table schema having identifier @a id from internal structures and destroys it. | ||
85 | from internal structures and destroys it. Does not make any change at the backend. | 85 | Does not make any change at the backend. */ | ||
86 | Note that the table schema being removed may be not the same as @a tableSchema. */ | 86 | void removeTable(int id); | ||
87 | void removeTable(const KDbTableSchema& tableSchema); | | |||
88 | 87 | | |||
89 | void takeTable(KDbTableSchema* tableSchema); | 88 | void takeTable(KDbTableSchema* tableSchema); | ||
90 | 89 | | |||
91 | void renameTable(KDbTableSchema* tableSchema, const QString& newName); | 90 | void renameTable(KDbTableSchema* tableSchema, const QString& newName); | ||
92 | 91 | | |||
93 | void changeTableId(KDbTableSchema* tableSchema, int newId); | 92 | void changeTableId(KDbTableSchema* tableSchema, int newId); | ||
94 | 93 | | |||
95 | void clearTables(); | 94 | void clearTables(); | ||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |