aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDump.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-26 11:44:19 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-26 11:44:19 +0000
commit0dbc2fe46d3f496b2e6e7be784352767572b6df1 (patch)
tree1eb58bdb36c184574a59d3ec0449dd328b9ead5f /Source/TableDump.m
parentd14a032b6d2ea3c75f46b977e62afc958ae29db2 (diff)
downloadsequelpro-0dbc2fe46d3f496b2e6e7be784352767572b6df1.tar.gz
sequelpro-0dbc2fe46d3f496b2e6e7be784352767572b6df1.tar.bz2
sequelpro-0dbc2fe46d3f496b2e6e7be784352767572b6df1.zip
• if the user chose to open a SQL file which is larger than 1MB SP asks for confirmation, furthermore if a connection is available the user can choose 'Import' instead of loading it into the Query Editor for cases that an user invoked 'Open…' accidentally instead of 'Import…'
Diffstat (limited to 'Source/TableDump.m')
-rw-r--r--Source/TableDump.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m
index 994b45bc..6a55610d 100644
--- a/Source/TableDump.m
+++ b/Source/TableDump.m
@@ -948,6 +948,11 @@
[NSThread detachNewThreadSelector:@selector(importBackgroundProcess:) toTarget:self withObject:[sheet filename]];
}
+- (void)startSQLImportProcessWithFile:(NSString *)filename
+{
+ [importFormatPopup selectItemWithTitle:@"SQL"];
+ [NSThread detachNewThreadSelector:@selector(importBackgroundProcess:) toTarget:self withObject:filename];
+}
/*
* Sets up the fieldMapping array to be shown in the tableView
*/