aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableCopy.h
diff options
context:
space:
mode:
authordmoagx <post@wickenrode.com>2011-07-06 18:47:44 +0000
committerdmoagx <post@wickenrode.com>2011-07-06 18:47:44 +0000
commit4b071f5866460dbff1bce10a297f3b017dfea26b (patch)
tree23b84a5303e7a6e53f5326ded76e341d9ece888b /Source/SPTableCopy.h
parentd86a86be46ecd2912171d1532e24a4a49afe0f5c (diff)
downloadsequelpro-4b071f5866460dbff1bce10a297f3b017dfea26b.tar.gz
sequelpro-4b071f5866460dbff1bce10a297f3b017dfea26b.tar.bz2
sequelpro-4b071f5866460dbff1bce10a297f3b017dfea26b.zip
* Fixes a spacing issue in Duplicate DB Sheet
* Fixes a case were for string == NULL was checked instead of [string length] == 0 (fixes #1103) * Fixes a logic error while copying databases and adds ability to copy InnoDB tables with foreign key checks (fixes #1111)
Diffstat (limited to 'Source/SPTableCopy.h')
-rw-r--r--Source/SPTableCopy.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/SPTableCopy.h b/Source/SPTableCopy.h
index 32eadcfc..56e1da8c 100644
--- a/Source/SPTableCopy.h
+++ b/Source/SPTableCopy.h
@@ -35,6 +35,7 @@
* @param name name of the table in the source database
* @param sourceDB name of the source database
* @param targetDB name of the target database
+ * @return YES on success, NO on any kind of error (unspecified)
*/
- (BOOL)copyTable:(NSString *)name from: (NSString *)sourceDB to: (NSString *)targetDB;
@@ -54,7 +55,21 @@
* @param sourceDB name of the source database
* @param targetDB name of the target database
* @param copyWithContent whether to copy the content too, otherwise only structure
+ * @return YES on success, NO on any kind of error (unspecified)
*/
- (BOOL)copyTable:(NSString *)tableName from: (NSString *)sourceDB to: (NSString *)targetDB withContent:(BOOL)copyWithContent;
+/**
+ * This method copies a bunch of tables including their data from one db to another.
+ *
+ * @param tableArray array of NSStrings with the table names in the sourceDB
+ * @param sourceDB name of the source database
+ * @param targetDB name of the target database
+ * @param copyWithContent whether to copy the content too, otherwise only structure
+ * @return YES on success, NO on any kind of error (unspecified)
+ *
+ * This method is able to copy InnoDB tables with foreign key constraints.
+ */
+- (BOOL)copyTables:(NSArray *)tablesArray from:(NSString *)sourceDB to:(NSString *)targetDB withContent:(BOOL)copyWithContent;
+
@end