aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseCopy.m
Commit message (Collapse)AuthorAgeFilesLines
* Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-231-1/+2
| | | | | | | | | | | | exceptions as database structure retrieval is currently missing! Further work on SPMySQLFramework integration: - Improve SPMySQL framework build settings including correct ppc builds and a Distribution configuration for the build distributions to match - Add new convenience querying and result methods to the framework - Amend Sequel Pro source to use the new SPMySQL.framework methods everywhere, replacing MCPKit methods where they differ and improving some functions - Remove MCPKit from the source - Fix a number of warnings on Release-style builds
* * Fixes a spacing issue in Duplicate DB Sheetdmoagx2011-07-061-10/+4
| | | | | * 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)
* - Fix more compiler warningsrowanbeentje2011-03-041-1/+2
|
* Add missing SVN properties and general comments tidy up.stuconnolly2010-09-211-1/+0
|
* Fix various potential memory leaks and general warnings as a result of ↵stuconnolly2010-08-191-3/+3
| | | | static analysis.
* Tidy up database renaming and copying by removing the use of alert dialogs ↵stuconnolly2010-08-131-31/+28
| | | | within loops to prevent locking up the main thread. These operations ideally should also be threaded.
* Fix various memory leaks as a result of static analysis.stuconnolly2010-07-061-0/+3
|
* Rework alert sheets:rowanbeentje2010-05-091-2/+2
| | | | | | | - Change MCPConnection.m to no longer use a reference to tableWindow to attach sheets - instead use a delate error display method if available - Rework TableSource and TableContent sheetDidEnd methods into per-task methods rather than overloading contextInfo - Rework SPAlertSheets to perform actions on the main thread, with the loss of (unused) support for a didDismissSelector. This addresses a number of crashes logged by the crash reporter
* Only switch to the renamed/duplicated database name, if the action was ↵drx7772010-04-291-1/+4
| | | | successful. Caused an existing DB to be selected, after ren/dup failed because it exists.
* Cleanup/simplification: using messageWindow property directly instead of the ↵drx7772010-04-291-6/+2
| | | | getTableWindow method; removed the latter
* Now longer using [NSApp mainWindow] but a reference to the correct window ↵drx7772010-04-291-2/+2
| | | | for message sheets. It could have caused messages appearing in the wrong window.
* Added class SPDBActionCommons providing common functionality to all derived ↵drx7772010-04-291-8/+1
| | | | DatabaseActions classes, thus reducing code duplicates.
* SVN properties.stuconnolly2010-04-281-1/+1
|
* This changeset implements renaming and duplicating databases on a server. ↵drx7772010-04-281-0/+113
Details as follows: * altered MCPConnection listTablesFromDB:like: to return NSArray * altered MCPConnection listFieldsFromTable:like: to use backtick quoted strings for table and fieldnames * added MCPConnection listTablesFromDB for a complete table list * added SPStringAdditions.h to various files to prevent warnings * added sheets for duplicate/rename DB in DBView.xib * added duplicate/rename menu items to MainMenu.xib * added outlets in TableDocument: databaseNewSheet databaseRenameSheet databaseCopyNameField databaseRenameNameField copyOnlyStructureButton copyDatabaseButton renameDatabaseButton * added methods in TableDocument: getConnection, copyDatabase, renameDatabase, _copyDatabase, _renameDatabase * added OCMock Framework for object mocking in tests * added group Others/DatabaseActions