aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportController.m
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve the preservation of the selected output path of exports between ↵stuconnolly2010-07-021-4/+2
| | | | openings of the export dialog.
* Prevent the background colour of the view custom filename format view of the ↵stuconnolly2010-07-021-0/+4
| | | | export dialog from changing when clicked.
* Fix the behaviour of the export dialog when toggling the customise filename ↵stuconnolly2010-07-021-13/+14
| | | | and advanced options views.
* When cancelling an export operation, keep the progress sheet on screen until ↵stuconnolly2010-07-021-4/+12
| | | | all the export files are removed.
* Preserve the selected output path of exports between openings of the export ↵stuconnolly2010-06-301-5/+5
| | | | dialog.
* Add tooltips to the export dialog's tableview.stuconnolly2010-06-301-1/+4
|
* • replaced @"sql" and @"spf" by their SPConstant definitionsBibiko2010-06-241-1/+1
| | | | | | | • further Save Session progress - store "saved as session accessory view data" globally to support "Save Session" - delete global "saved as session accessory view data" if last SP window will be closed - added to info.plist which tab is currently selected
* Remove NSLog() debug.stuconnolly2010-06-131-3/+1
|
* Exporter ehancements:stuconnolly2010-06-131-86/+91
| | | | | | | - Make sure the export button is disabled when the global structure, content and drop options are enabled, but the desellect all button is checked. - Replace the export dialog toolbar with a tabview, reducing the dialogs overall size. - Add the option to SQL dumps to specify when a new INSERT statement should be created, either after a certain amount of data or after a specific number of rows (defaults to every 250KiB). Known issue: incorrect VALUES clause generation of last row when creating a new INSERT after a specific number of rows.
* Exporter fixes:stuconnolly2010-06-101-7/+10
| | | | | | | - Correctly disable exporting custom query results as SQL and enable for all other formats. - Fix CSV exports when exporting from a source other than the selected tables. - Correctly export custom query results instead of all tables as a result of a missing IB connection.
* Exporter enhancements, including:stuconnolly2010-06-091-95/+205
| | | | | | | | - Move the custom filename options view to a drop down view on the main exporter dialog. - Change the export data source matrix to a popup button. - Fix the export button being enabled when no tables are selected to be exported. - Various interface validation fixes.
* When cancelling an export remove all files already written to disk.stuconnolly2010-06-071-1/+24
|
* A number of exporter improvements:rowanbeentje2010-06-071-7/+6
| | | | | | | | | | | | - Improve interface validation on the SQL view, including fixing no-content toggling - Fix the export of views to correctly construct placeholder tables and fix view syntax export (this addresses Issue #707) - Fix logic controlling Stored Procedure and Function export - fix hangs and allow correct export - Handle permission errors when retrieving Stored Pro/Function syntax - Improve export of linebreaks in CSV quoted cells for improved Excel compatibility - SQL export now retrieves table syntax as it progresses through the tables - more accurate progress bar and removes initial pause when exporting lots of tables - Alter filename construction to use centralised filename string: fixes end export Growl notification - Improve dump comments
* On the XML export dialog add the option to specify the placeholder of ↵stuconnolly2010-06-061-0/+1
| | | | exported NULL values. Fixes issue #718.
* - Exporter: SQL select/deselect all will now toggle structure/drop table if ↵rowanbeentje2010-06-061-2/+17
| | | | | | | | those are enabled - Exporter: SQL export now correctly excludes structure/drop table if the global structure/drop toggles are disabled - Exporter: Save exporter window size
* Fix export dialog interface validation when switching between data formats. ↵stuconnolly2010-06-011-3/+3
| | | | Fixes issue #714.
* Rename TableContent to SPTableContent.stuconnolly2010-05-281-1/+1
|
* Rename TablesList to SPTablesList.stuconnolly2010-05-271-1/+1
|
* Perform interface validation on the new export window on a background thread ↵stuconnolly2010-05-271-31/+69
| | | | to prevent locking up the main thread when dealing with databases with a large number (>100) of tables.
* - Fix SQL export progress displayrowanbeentje2010-05-271-1/+1
| | | | | - When compression is enabled, use .sql.gz as file extension instead of .gz
* Update Growl controller notify method selector when an export finishes. ↵stuconnolly2010-05-251-1/+1
| | | | Fixes logs http://spbug.com/l/521 and http://spbug.com/522.
* Merge export redesign branch back into trunk.stuconnolly2010-05-241-289/+477
| | | | | | | | | | | | | | | | | | | | | Includes a completely redesign approach to all export data types based on the use of NSOperation subclasses. CSV, SQL, XML and dot export types are currently functional, while the source files for PDF and HTML export types exist they are to be implemented, but are currently hidden from the interface. Also includes the following: - Completely redesigned export interface. - The ability to customize CSV NULL values. - The ability to specify whether the UTF-8 BOM should be used in SQL dumps. - The ability to specify whether BLOB fields are output as hex or plain text during SQL dumps. Defaults to hex. - Exporting currently selected tables via the tables list context menu. Outstanding issues: - Not all progress indicators for all export types are functional (or functioning correctly). - A few issues related to the introduction of only exporting the content and create and drop syntax of specific tables during SQL dumps. Needs some serious testing and benchmarking to ensure it replicates the current export functionality.
* Initial implementation of tabs:rowanbeentje2010-05-231-3/+15
| | | | | | | | - Addition of PSMTabBar framework - Rework away from a document-based TableDocument - Support tabs throughout the application - Add menu items for creating tabs, and add support for dragging tabs to different windows
* - Make [MCPConnection getLastErrorMessage] more consistent by always ↵rowanbeentje2010-03-251-1/+1
| | | | | | | returning nil if no error occurred (previously a blank string was returned most of the time) - Add a new (BOOL)[MCPConnection queryErrored] method, changing all error message checks to use it for clarity
* Modify our current implementation of all singleton instances to be inline ↵stuconnolly2010-03-161-2/+4
| | | | with Apple's recommendations detailed at http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/CocoaObjects.html#//apple_ref/doc/uid/TP40002974-CH4-SW32 This also fixes the associated static analysis warnings of potentially leaked objects.
* Fix some potential issues found during static analysis.stuconnolly2010-03-151-1/+1
|
* - Upgrade Sequel Pro to be compiled as a 3-way PPC/i386/x86_64 binary for ↵rowanbeentje2010-01-091-5/+5
| | | | | | | release builds, including a large number of 64bit compatibility upgrades and tweaks - Upgrade RegexKitLite to 3.3
* - Ensure all results for server variable requests are returned as strings, ↵rowanbeentje2010-01-031-0/+1
| | | | | | | to avoid binary-mode result issues with certain versions of MySQL (including 4.1.14). This should address Issue #509. - TableDocument now requests the server version string from MCPConnection, aiding caching
* Minor export work.stuconnolly2009-10-261-7/+12
|
* Replace the use of hard coded preference keys with constants to prevent ↵stuconnolly2009-10-171-1/+2
| | | | issues such as the one fixed in revision 1419. All future preference usage should be done so using these constants.
* Remove the use of the logger in debugging the new export redesign as it's ↵stuconnolly2009-10-101-2/+0
| | | | creating the log file on every launch.
* Yet more export redesign work. Export is now currently working for single ↵stuconnolly2009-10-091-86/+74
| | | | tables, but produces deadlock errors when attempting to export multiple tables as a result of the initial streaming request for the tables' data all being done from the same thread. To resolve this each of the streaming requests will be made concurrently in separate operations and once the data is available a new concurrent operation (SPExporter subclass instance) will be spawned to perform the data conversion process.
* More export redesign work. Note that the current implementation has a major ↵stuconnolly2009-10-071-71/+51
| | | | flaw in that exporter instances (NSOperation subclasses) are not reusable and so we have to create a new instance for every 'chunk' of data we want to process.
* More export redesign work.stuconnolly2009-10-061-13/+29
|
* More export redesign work. CSV data generation is currently working using ↵stuconnolly2009-10-061-16/+32
| | | | 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.
* Some more data exporter redesign changes I've been meaning to commit.stuconnolly2009-09-161-142/+351
|
* More data export work.stuconnolly2009-08-291-5/+111
|
* Implement the core CSV export process in the new CSV exporter class.stuconnolly2009-08-291-5/+17
|
* Add the first classes of the new export architecture. See the description at ↵stuconnolly2009-08-291-5/+9
| | | | the top of SPExporter.h for more information.
* Small tidy up and improvements to new export controller.stuconnolly2009-08-061-48/+37
|
* Merge framework integration branch back to trunk. Summary of changes:stuconnolly2009-07-211-3/+3
| | | | | | | | | | | | | | | - Includes all custom code from subclasses CMMCPConnection and CMMCPResult, meaning they have subsequently been removed from the project. - All previous Sequel Pro specific code in the above subclasses has been removed in favour of the delegate (currently set to TableDocumet) informing the framework of such information. - All references to CMMCPConnection and CMMCPResult have subsequently been changed to MCPConnection and MCPResult. - Framework includes MySQL 5.1.36 client libraries and source headers. - Framework is now built as a 4-way (32/64 bit, i386/PPC arch) binary. - All import references to <MCPKit_bundled/MCPKit_bundled.h> have been changed to <MCPKit/MCPKit.h>. - New script 'build-mysql-client.sh' can be used to build the MySQL client libraries from the MySQL source. See the script's header for a list of available options or run it with no arguments to display it's usage. Note that there are still a few changes to be made to the framework with regard to removing Sequel Pro specific calls to the delegate. These however can be made later on as they have no effect on functionality and are merely design changes. Also, note that any future development done on the framework should be made to be as 'generic' as possible, with no Sequel Pro specific references. This should allow the framework to be integrated into another project without the need for SP specific code.
* • added to SPArrayAdditions.h: NSArrayObjectAtIndex() inline functionBibiko2009-06-181-3/+4
| | | | | | | | | - id o = NSArrayObjectAtIndex(anArray, index) :== id o = [anArray objectAtIndex:index] - this speed up it ~3µs per call - replaced that inline function for such calls within loops to speed up them • used IMP function pointers for keepAlive calls within queryString: • set -O3 (Fastest) compiler option • allow in preference pane "Tables" to set the Limit up to 50000
* - Table Info pane now has fixed heightavenjamin2009-06-101-3/+10
| | | | | - Table Info pane is collapsable - Export Controller code cleanup
* Added print accesory view with option to Print Backgroundsbamse162009-06-041-0/+6
|
* More header updates for source files, including Subversion Id property.stuconnolly2009-05-191-0/+2
|
* - part 4 of merge from 'avenjamin' branch into trunk.avenjamin2009-04-101-0/+177
- committing Source