diff options
author | stuconnolly <stuart02@gmail.com> | 2009-11-10 00:11:27 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-11-10 00:11:27 +0000 |
commit | c5a38fc6f465683d01e0dbc79b7e857ab2a43ef7 (patch) | |
tree | 404a54e90d2ca32726d22435b2855c5549630f7d /Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h | |
parent | 404e21cfa7e9d20b7afeac10675b61fab621eeec (diff) | |
download | sequelpro-c5a38fc6f465683d01e0dbc79b7e857ab2a43ef7.tar.gz sequelpro-c5a38fc6f465683d01e0dbc79b7e857ab2a43ef7.tar.bz2 sequelpro-c5a38fc6f465683d01e0dbc79b7e857ab2a43ef7.zip |
MCPConnection.[hm] refactoring.
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h')
-rw-r--r-- | Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h index 604b69d5..a49112b0 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h @@ -75,7 +75,7 @@ static inline NSData* NSStringDataUsingLossyEncoding(NSString* self, NSInteger e BOOL mConnected; /* Reflect the fact that the connection is already in place or not. */ NSStringEncoding mEncoding; /* The encoding used by MySQL server, to ISO-1 default. */ NSTimeZone *mTimeZone; /* The time zone of the session. */ - NSUInteger mConnectionFlags; /* The flags to be used for the connection to the database. */ + NSUInteger mConnectionFlags; /* The flags to be used for the connection to the database. */ id delegate; /* Connection delegate */ NSLock *queryLock; /* Anything that performs a mysql_net_read is not thread-safe: mysql queries, pings */ @@ -128,6 +128,10 @@ static inline NSData* NSStringDataUsingLossyEncoding(NSString* self, NSInteger e SEL timeConnectedSEL; } +// Readonly properties +@property (readonly) double lastQueryExecutionTime; + +// Read/write properties @property (readwrite, assign) BOOL useKeepAlive; @property (readwrite, assign) BOOL delegateQueryLogging; @property (readwrite, assign) NSInteger connectionTimeout; @@ -198,7 +202,6 @@ void performThreadedKeepAlive(void *ptr); - (MCPStreamingResult *)streamingQueryString:(NSString *)query; - (MCPStreamingResult *)streamingQueryString:(NSString *)query useLowMemoryBlockingStreaming:(BOOL)fullStream; - (id)queryString:(NSString *) query usingEncoding:(NSStringEncoding) encoding streamingResult:(NSInteger) streamResult; -- (double)lastQueryExecutionTime; - (my_ulonglong)affectedRows; - (my_ulonglong)insertId; |