diff options
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r-- | Source/TablesList.m | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m index b5dbc110..b5490e7a 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -87,7 +87,7 @@ [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryWillBePerformed" object:tableDocumentInstance]; // Query the structure of all databases in the background (mainly for completion) - [mySQLConnection performSelector:@selector(queryDbStructure) withObject:nil afterDelay:0.1]; + [mySQLConnection performSelector:@selector(queryDbStructure) withObject:nil afterDelay:0.5]; // Select the table list for the current database. On MySQL versions after 5 this will include // views; on MySQL versions >= 5.0.02 select the "full" list to also select the table type column. @@ -1065,6 +1065,14 @@ } /** + * Returns an array of all available database names + */ +- (NSArray *)allSystemDatabaseNames +{ + return [tableDocumentInstance allSystemDatabaseNames]; +} + +/** * Database table types accessor */ - (NSArray *)tableTypes |