aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/QueryKit
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-07-10 10:45:15 +0000
committerstuconnolly <stuart02@gmail.com>2012-07-10 10:45:15 +0000
commite8bf22347fd801af63df6a7c287151c7668681ce (patch)
tree2b65d7e336165c5a0e81a26bdffad1471a7f3b5f /Frameworks/QueryKit
parent4aebe5fb9cdcd145ef3b3135700e27d13315effd (diff)
downloadsequelpro-e8bf22347fd801af63df6a7c287151c7668681ce.tar.gz
sequelpro-e8bf22347fd801af63df6a7c287151c7668681ce.tar.bz2
sequelpro-e8bf22347fd801af63df6a7c287151c7668681ce.zip
Add a new enum to allow us to specify the underlying database system we're generating queries for.
Diffstat (limited to 'Frameworks/QueryKit')
-rw-r--r--Frameworks/QueryKit/QueryKit.xcodeproj/project.pbxproj4
-rw-r--r--Frameworks/QueryKit/Source/QKQueryDatabases.h41
-rw-r--r--Frameworks/QueryKit/Source/QueryKit.h1
3 files changed, 46 insertions, 0 deletions
diff --git a/Frameworks/QueryKit/QueryKit.xcodeproj/project.pbxproj b/Frameworks/QueryKit/QueryKit.xcodeproj/project.pbxproj
index 5be0b1b1..d84389e0 100644
--- a/Frameworks/QueryKit/QueryKit.xcodeproj/project.pbxproj
+++ b/Frameworks/QueryKit/QueryKit.xcodeproj/project.pbxproj
@@ -13,6 +13,7 @@
1719E47E151E8CA7003F98C5 /* QKQueryUpdateParameter.m in Sources */ = {isa = PBXBuildFile; fileRef = 1719E47C151E8CA7003F98C5 /* QKQueryUpdateParameter.m */; };
1719E4BD151F51F1003F98C5 /* QKUpdateQueryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1719E4BA151F51EA003F98C5 /* QKUpdateQueryTests.m */; };
1726972915AAF6CE009586E1 /* QKQueryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1726972815AAF6CE009586E1 /* QKQueryTests.m */; };
+ 1726976715AC3DD2009586E1 /* QKQueryDatabases.h in Headers */ = {isa = PBXBuildFile; fileRef = 1726976515AC3DD2009586E1 /* QKQueryDatabases.h */; settings = {ATTRIBUTES = (Public, ); }; };
17577F6715A98FEA00CDF67A /* QKTestConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 17577F6615A98FEA00CDF67A /* QKTestConstants.m */; };
17577FC615A99AC000CDF67A /* QKQueryConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 17577FC415A99AC000CDF67A /* QKQueryConstants.h */; settings = {ATTRIBUTES = (Public, ); }; };
1757801E15A9A14400CDF67A /* QKQueryGenericParameter.h in Headers */ = {isa = PBXBuildFile; fileRef = 1757801C15A9A14400CDF67A /* QKQueryGenericParameter.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -53,6 +54,7 @@
1719E4BA151F51EA003F98C5 /* QKUpdateQueryTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QKUpdateQueryTests.m; sourceTree = "<group>"; };
1726972715AAF6CE009586E1 /* QKQueryTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QKQueryTests.h; sourceTree = "<group>"; };
1726972815AAF6CE009586E1 /* QKQueryTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QKQueryTests.m; sourceTree = "<group>"; };
+ 1726976515AC3DD2009586E1 /* QKQueryDatabases.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QKQueryDatabases.h; sourceTree = "<group>"; };
17577F6515A98FEA00CDF67A /* QKTestConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QKTestConstants.h; sourceTree = "<group>"; };
17577F6615A98FEA00CDF67A /* QKTestConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QKTestConstants.m; sourceTree = "<group>"; };
17577FC415A99AC000CDF67A /* QKQueryConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QKQueryConstants.h; sourceTree = "<group>"; };
@@ -225,6 +227,7 @@
children = (
17E5951B14F301DF0054EE08 /* QKQueryTypes.h */,
17E5951814F301DF0054EE08 /* QKQueryOperators.h */,
+ 1726976515AC3DD2009586E1 /* QKQueryDatabases.h */,
);
name = Constants;
sourceTree = "<group>";
@@ -257,6 +260,7 @@
1719E47D151E8CA7003F98C5 /* QKQueryUpdateParameter.h in Headers */,
17577FC615A99AC000CDF67A /* QKQueryConstants.h in Headers */,
1757801E15A9A14400CDF67A /* QKQueryGenericParameter.h in Headers */,
+ 1726976715AC3DD2009586E1 /* QKQueryDatabases.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
diff --git a/Frameworks/QueryKit/Source/QKQueryDatabases.h b/Frameworks/QueryKit/Source/QKQueryDatabases.h
new file mode 100644
index 00000000..16843b2a
--- /dev/null
+++ b/Frameworks/QueryKit/Source/QKQueryDatabases.h
@@ -0,0 +1,41 @@
+//
+// $Id$
+//
+// QKQueryDatabases.h
+// QueryKit
+//
+// Created by Stuart Connolly (stuconnolly.com) on July 10, 2012
+// Copyright (c) 2012 Stuart Connolly. All rights reserved.
+//
+// Permission is hereby granted, free of charge, to any person
+// obtaining a copy of this software and associated documentation
+// files (the "Software"), to deal in the Software without
+// restriction, including without limitation the rights to use,
+// copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the
+// Software is furnished to do so, subject to the following
+// conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+// OTHER DEALINGS IN THE SOFTWARE.
+
+/**
+ * @enum QKQueryDatabase
+ *
+ * Used to specify the underlying database system we're generating queries for.
+ */
+typedef enum
+{
+ QKDatabaseMySQL,
+ QKDatabasePostgreSQL
+}
+QKQueryDatabase;
diff --git a/Frameworks/QueryKit/Source/QueryKit.h b/Frameworks/QueryKit/Source/QueryKit.h
index 2b62a7b5..624ba08b 100644
--- a/Frameworks/QueryKit/Source/QueryKit.h
+++ b/Frameworks/QueryKit/Source/QueryKit.h
@@ -31,5 +31,6 @@
#import <QueryKit/QKQuery.h>
#import <QueryKit/QKQueryTypes.h>
#import <QueryKit/QKQueryOperators.h>
+#import <QueryKit/QKQueryDatabases.h>
#import <QueryKit/QKQueryParameter.h>
#import <QueryKit/QKQueryUtilities.h>