diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-07-14 19:34:40 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-07-14 19:34:40 +0000 |
commit | 0612652448f32e620a96e923a44b463fa1b9e0dc (patch) | |
tree | c77ff4cd7596aed10e445d0051620ecfbe295f7e /Source/TablesList.h | |
parent | 6686223d2c30a7b99b8de11a8659851725f6326f (diff) | |
download | sequelpro-0612652448f32e620a96e923a44b463fa1b9e0dc.tar.gz sequelpro-0612652448f32e620a96e923a44b463fa1b9e0dc.tar.bz2 sequelpro-0612652448f32e620a96e923a44b463fa1b9e0dc.zip |
• fix for completion in CustomQuery editor
- now the gathering of suggestions does not query the MySQL connection, instead it uses the TableList/TableDocument tableView data as a kind of cache
- this approach should improve the speed for slow server connections
TODO: auto-update for TableList and Database List resp. (it could happen that an other user changed the name of a table/db meanwhile)
Diffstat (limited to 'Source/TablesList.h')
-rw-r--r-- | Source/TablesList.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/TablesList.h b/Source/TablesList.h index 8a13e487..965f00be 100644 --- a/Source/TablesList.h +++ b/Source/TablesList.h @@ -110,6 +110,12 @@ enum sp_table_types - (int)tableType; - (NSArray *)tables; - (NSArray *)tableTypes; +- (NSArray *)allTableAndViewNames; +- (NSArray *)allTableNames; +- (NSArray *)allViewNames; +- (NSArray *)allFunctionNames; +- (NSArray *)allProcedureNames; +- (NSArray *)allDatabaseNames; - (BOOL)structureLoaded; - (BOOL)contentLoaded; - (BOOL)statusLoaded; |