aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDump.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-02-05 01:51:17 +0000
committerrowanbeentje <rowan@beent.je>2010-02-05 01:51:17 +0000
commitf880dea7369cb6ce57c552cd359f871bf7e2e414 (patch)
treee7ae9cecd00dd89dc8a3e66f0ce362fa2c023d6d /Source/TableDump.h
parent557d012ed48835423c36bcd0c10754ea3f7e2d3b (diff)
downloadsequelpro-f880dea7369cb6ce57c552cd359f871bf7e2e414.tar.gz
sequelpro-f880dea7369cb6ce57c552cd359f871bf7e2e414.tar.bz2
sequelpro-f880dea7369cb6ce57c552cd359f871bf7e2e414.zip
- Rework SPSQLParser, extending DELIMITER support into all the original functions (off by default). Remove the forked "...Sql..." functions, as they're now duplicates, and switch CustomQuery to using the original methods.
- TableDump imports can now process DELIMITERs correctly as a result. - Alter the TableDump display of tables etc to use TablesList as the source of information, and used cached lists where appropriate for a small speedup. Also means we gain consistent sorting. - Display procedures and functions in the toggleable list when exporting as SQL - Tweak the procedure and function export to only export selected items, and also to respect the "export drop syntax" and "export create syntax" checkboxes - Fix a crash when removing items from the TablesList resulted in an errorneous selection by deselecting all rows before deleting (and preemptively applying the same fix to TableContent)
Diffstat (limited to 'Source/TableDump.h')
-rw-r--r--Source/TableDump.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/TableDump.h b/Source/TableDump.h
index 7e1dc5cc..ebc686b2 100644
--- a/Source/TableDump.h
+++ b/Source/TableDump.h
@@ -27,6 +27,13 @@
#import <Cocoa/Cocoa.h>
#import <MCPKit/MCPKit.h>
+typedef enum _SPExportModes {
+ SPExportingSQL = 0,
+ SPExportingCSV = 1,
+ SPExportingXML = 2,
+ SPExportingDOT = 3
+} SPExportMode;
+
@interface TableDump : NSObject
{
IBOutlet id tableDocumentInstance;
@@ -103,6 +110,7 @@
NSMutableArray *fieldMappingArray;
NSMutableArray *fieldMappingButtonOptions;
NSInteger fieldMappingCurrentRow;
+ NSUInteger exportMode;
NSUserDefaults *prefs;
BOOL progressCancelled;