aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-10-06 00:44:48 +0000
committerstuconnolly <stuart02@gmail.com>2009-10-06 00:44:48 +0000
commit27eba105aef0a612e5a91af02a0b87b99b06ab78 (patch)
treec7324f1156d602cb798a4d4ae8ada3b4907f5bcf /Source/TableDocument.m
parent29cfd02f7828d92136fce32e0cb888e9dd9fd2ba (diff)
downloadsequelpro-27eba105aef0a612e5a91af02a0b87b99b06ab78.tar.gz
sequelpro-27eba105aef0a612e5a91af02a0b87b99b06ab78.tar.bz2
sequelpro-27eba105aef0a612e5a91af02a0b87b99b06ab78.zip
More export redesign work. CSV data generation is currently working using the old non-streaming code, but does not yet write to any files. Please note that this is still very much a work in progress.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m21
1 files changed, 9 insertions, 12 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index b98d7d51..e8290043 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -587,18 +587,16 @@
[tableRelationsInstance setConnection:mySQLConnection];
[customQueryInstance setConnection:mySQLConnection];
[tableDumpInstance setConnection:mySQLConnection];
- [spExportControllerInstance setConnection:mySQLConnection];
+ [exportControllerInstance setConnection:mySQLConnection];
[tableDataInstance setConnection:mySQLConnection];
[extendedTableInfoInstance setConnection:mySQLConnection];
[databaseDataInstance setConnection:mySQLConnection];
- if (userManagerInstance == nil)
- {
+
+ if (!userManagerInstance) {
userManagerInstance = [[SPUserManager alloc] initWithConnection:mySQLConnection];
}
- else
- {
- [userManagerInstance setConnection:mySQLConnection];
- }
+
+ [userManagerInstance setConnection:mySQLConnection];
// Set the cutom query editor's MySQL version
[customQueryInstance setMySQLversion:mySQLVersion];
@@ -2528,11 +2526,10 @@
*/
- (IBAction)export:(id)sender
{
- if ([sender tag] == -1) {
- //[tableDumpInstance export];
-
- [spExportControllerInstance export];
- } else {
+ if ([sender tag] == -1) {
+ [exportControllerInstance export];
+ }
+ else {
[tableDumpInstance exportFile:[sender tag]];
}
}