aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPServerSupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPServerSupport.h')
-rw-r--r--Source/SPServerSupport.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Source/SPServerSupport.h b/Source/SPServerSupport.h
index 55b8a6ad..e4551643 100644
--- a/Source/SPServerSupport.h
+++ b/Source/SPServerSupport.h
@@ -28,6 +28,11 @@
//
// More info at <https://github.com/sequelpro/sequelpro>
+typedef struct {
+ NSString *queryString;
+ NSUInteger columnIndex;
+} SPInnoDBStatusQueryFormat;
+
/**
* @class SPServerSupport SPServerSupport.h
*
@@ -79,12 +84,17 @@
BOOL supportsArchiveStorageEngine;
BOOL supportsCSVStorageEngine;
BOOL supportsQuotingEngineTypeInCreateSyntax;
+ BOOL supportsShowEngine;
// Triggers
BOOL supportsTriggers;
// Indexes
BOOL supportsIndexKeyBlockSize;
+ BOOL supportsFulltextOnInnoDB;
+
+ // Events
+ BOOL supportsEvents;
// Data types
BOOL supportsFractionalSeconds;
@@ -230,6 +240,11 @@
@property (readonly) BOOL supportsTriggers;
/**
+* @property supportsEvents Indicates if the server supports scheduled events
+*/
+@property (readonly) BOOL supportsEvents;
+
+/**
* @property supportsIndexKeyBlockSize Indicates if the server supports specifying an index's key block size
*/
@property (readonly) BOOL supportsIndexKeyBlockSize;
@@ -245,9 +260,24 @@
*/
@property (readonly) BOOL supportsFractionalSeconds;
+/**
+ * @property supportsFulltextOnInnoDB Indicates whether the server supports FULLTEXT indexes with the InnoDb engine.
+ */
+@property (readonly) BOOL supportsFulltextOnInnoDB;
+
+/**
+ * @property supportsShowEngine Indicates whether the server supports the "SHOW ENGINE x {LOGS|STATUS}" query.
+ */
+@property (readonly) BOOL supportsShowEngine;
+
- (id)initWithMajorVersion:(NSInteger)majorVersion minor:(NSInteger)minorVersion release:(NSInteger)releaseVersion;
- (void)evaluate;
- (BOOL)isEqualToOrGreaterThanMajorVersion:(NSInteger)majorVersion minor:(NSInteger)minorVersion release:(NSInteger)releaseVersion;
+/**
+ * @return The correct query to get the InnoDB engine status. queryString is nil for unsupported versions.
+ * The columnIndex tells the index of the column (starting with 0) in which the status text is returned.
+ */
+- (SPInnoDBStatusQueryFormat)innoDBStatusQuery;
@end