aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/QueryKit/Source
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/Source
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/Source')
-rw-r--r--Frameworks/QueryKit/Source/QKQueryDatabases.h41
-rw-r--r--Frameworks/QueryKit/Source/QueryKit.h1
2 files changed, 42 insertions, 0 deletions
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>