From 52309a04b95bc6dea3ead6d1968bd6e17be285bf Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 26 Mar 2010 15:14:11 +0000 Subject: =?UTF-8?q?=E2=80=A2=20first=20steps=20to=20ease=20the=20structure?= =?UTF-8?q?=20querying=20for=20auto-completion=20and=20navigator=20-=20now?= =?UTF-8?q?=20it=20accumulates=20the=20data=20and=20caches=20them=20db=20b?= =?UTF-8?q?y=20db,=20ie=20one=20has=20to=20select=20a=20db=20before=20usin?= =?UTF-8?q?g=20its=20structure=20for=20completion=20and=20navigator=20-=20?= =?UTF-8?q?next=20step=20is=20to=20avoid=20querying=20info=5Fschema=20as?= =?UTF-8?q?=20much=20as=20possible=20-=20it=20will=20only=20query=20the=20?= =?UTF-8?q?structure=20if=20something=20was=20changed=20-=20next=20steps?= =?UTF-8?q?=20follows=20as=20soon=20as=20possible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h') diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h index 89739e23..0b239b5f 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h @@ -83,6 +83,21 @@ */ - (NSString *)connectionID; +/** + * + */ +- (NSString *)database; + +/** + * + */ +- (BOOL)navigatorSchemaPathExistsForDatabase:(NSString*)dbname; + +/** + * + */ +- (NSArray*)allDatabaseNames; + @end @interface MCPConnection : NSObject @@ -123,7 +138,7 @@ BOOL isMaxAllowedPacketEditable; NSString *serverVersionString; - NSDictionary *theDbStructure; + NSMutableDictionary *structure; NSDictionary *uniqueDbIdentifier; NSArray *allKeysofDbStructure; @@ -247,7 +262,7 @@ void performThreadedKeepAlive(void *ptr); - (MCPResult *)listTablesFromDB:(NSString *)dbName like:(NSString *)tablesName; - (MCPResult *)listFieldsFromTable:(NSString *)tableName; - (MCPResult *)listFieldsFromTable:(NSString *)tableName like:(NSString *)fieldsName; -- (void)queryDbStructure; +- (void)queryDbStructureAndForceUpdate:(NSNumber*)forceUpdate; - (NSDictionary *)getDbStructure; - (NSInteger)getUniqueDbIdentifierFor:(NSString*)term; - (NSArray *)getAllKeysOfDbStructure; -- cgit v1.2.3