aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-08-25 00:49:11 +0000
committerrowanbeentje <rowan@beent.je>2009-08-25 00:49:11 +0000
commit94f177aa0e8350a9bba0790ee41b606c461a314f (patch)
treeff2f0bfe1d03a1b7bdb2b54c8015c69f7ee65ad0 /Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h
parent4f94e0a0a120fba845b040a6247a3af93f753c20 (diff)
downloadsequelpro-94f177aa0e8350a9bba0790ee41b606c461a314f.tar.gz
sequelpro-94f177aa0e8350a9bba0790ee41b606c461a314f.tar.bz2
sequelpro-94f177aa0e8350a9bba0790ee41b606c461a314f.zip
- Fix NSLock console lines
- Speed up table content processing a bit - Make the table content download/processing determinate where an approximate row count is available - Clean up table content source, assuming MCPStreamingResult will remain in use
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h
index ae296192..146f81e7 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.h
@@ -29,27 +29,28 @@
@class MCPConnection;
typedef struct SP_MYSQL_ROWS {
- char *data;
- unsigned long *dataLengths;
- struct SP_MYSQL_ROWS *nextRow;
+ char *data;
+ unsigned long *dataLengths;
+ struct SP_MYSQL_ROWS *nextRow;
} LOCAL_ROW_DATA;
@interface MCPStreamingResult : MCPResult
{
- MCPConnection *parentConnection;
-
- MYSQL_FIELD *fieldDefinitions;
- BOOL fullyStreaming;
- BOOL dataDownloaded;
- BOOL dataFreed;
- LOCAL_ROW_DATA *localDataStore;
+ MCPConnection *parentConnection;
+
+ MYSQL_FIELD *fieldDefinitions;
+ BOOL fullyStreaming;
+ BOOL connectionUnlocked;
+ BOOL dataDownloaded;
+ BOOL dataFreed;
+ LOCAL_ROW_DATA *localDataStore;
LOCAL_ROW_DATA *currentDataStoreEntry;
- LOCAL_ROW_DATA *localDataStoreLastEntry;
- unsigned long localDataRows;
- unsigned long localDataAllocated;
- unsigned long downloadedRowCount;
- unsigned long processedRowCount;
- unsigned long freedRowCount;
+ LOCAL_ROW_DATA *localDataStoreLastEntry;
+ unsigned long localDataRows;
+ unsigned long localDataAllocated;
+ unsigned long downloadedRowCount;
+ unsigned long processedRowCount;
+ unsigned long freedRowCount;
}
- (id)initWithMySQLPtr:(MYSQL *)mySQLPtr encoding:(NSStringEncoding)theEncoding timeZone:(NSTimeZone *)theTimeZone connection:(MCPConnection *)theConnection;