aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-10 19:23:42 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-10 19:23:42 +0000
commitbd1c8a535691781746f1a1ff4ea9d215744061c5 (patch)
tree5ee5d4b7f3a7f42b737ec8aa7bc42a7fde4bec0c /Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h
parent602633c84982f4e8061cde8a3cb09ada6c4d11bf (diff)
downloadsequelpro-bd1c8a535691781746f1a1ff4ea9d215744061c5.tar.gz
sequelpro-bd1c8a535691781746f1a1ff4ea9d215744061c5.tar.bz2
sequelpro-bd1c8a535691781746f1a1ff4ea9d215744061c5.zip
• first preparations to improve the Custom Query database names/table names/field names + type and encoding completion
- after connecting and updating the table list a background task executed on a different connection will be performed to query the information_schema db (MySQL >= 5 only so far) - the MCPConnection object holds a NSDictionary with all structural data Note: not yet active
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h
index f9e0fa82..8398f4ca 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h
@@ -105,6 +105,7 @@ static inline NSData* NSStringDataUsingLossyEncoding(NSString* self, NSInteger e
BOOL isMaxAllowedPacketEditable;
NSString *serverVersionString;
+ NSDictionary *theDbStructure;
NSTimer *keepAliveTimer;
pthread_t keepAliveThread;
@@ -115,6 +116,7 @@ static inline NSData* NSStringDataUsingLossyEncoding(NSString* self, NSInteger e
BOOL queryCancelUsedReconnect;
BOOL delegateQueryLogging;
BOOL delegateResponseToWillQueryString;
+ BOOL isQueryingDbStructure;
// Pointers
IMP cStringPtr;
@@ -225,6 +227,8 @@ void performThreadedKeepAlive(void *ptr);
- (MCPResult *)listTablesFromDB:(NSString *)dbName like:(NSString *)tablesName;
- (MCPResult *)listFieldsFromTable:(NSString *)tableName;
- (MCPResult *)listFieldsFromTable:(NSString *)tableName like:(NSString *)fieldsName;
+- (void)queryDbStructure;
+- (NSDictionary *)getDbStructure;
// Server information
- (NSString *)clientInfo;
@@ -254,5 +258,6 @@ void performThreadedKeepAlive(void *ptr);
- (const char *)cStringFromString:(NSString *)theString usingEncoding:(NSStringEncoding)encoding;
- (NSString *)stringWithCString:(const char *)theCString;
- (NSString *)stringWithText:(NSData *)theTextData;
+- (NSString *)stringWithUTF8CString:(const char *)theCString;
@end