aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExporter.m
Commit message (Collapse)AuthorAgeFilesLines
* Replace all non-cyclic NSAutoreleasepools with @autoreleasepoolMax2018-05-031-11/+7
|
* Move some shared code to the parent classMax2015-11-211-0/+10
|
* Reorder some code to remove duplicate code and make leaking a ↵Max2015-11-201-2/+22
| | | | NSAutoreleasePool more difficult
* Hand ServerSupport instance to exportersMax2015-11-201-0/+2
|
* * Change a method name to fit standard naming conventionsMax2015-10-081-1/+1
| | | | | | | | | | | | * Remove a redundant ivar (and while we are at it, restructure some code) * And then there was this gem: (...) if (fileMode == O_RDONLY) { int i, c; char bzbuf[4]; const char *charFileMode = fileMode == O_WRONLY ? "wb" : "rb"; (...)
* Formalize [x release], x = nil; conventionMax2015-01-041-3/+3
| | | | | Take this commit as a proposal to formalize our existing "[x release], x = nil;" convention by introducing a macro for it. Feel free to revert this commit if you see issues with the approch or implementation.
* Update URL in source file header to point to GitHub.Stuart Connolly2014-01-261-1/+1
|
* Remove SVN property placeholder.Stuart Connolly2014-01-261-2/+0
|
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-12/+19
|
* Fix more compiler warnings.stuconnolly2011-03-141-0/+1
|
* fixed compiler warningssqlprodev2011-03-011-0/+1
|
* Various export enhancements and fixes, including:stuconnolly2010-08-121-7/+9
| | | | | | | | | | | | - A new SPExportFile class, providing an abstract interface to the handling and creation of export files. - Enables the centralisation of all file/file handle creation logic as well as better support for handling situations where files fail to be created, including files that already exist at the export location. - New SPExportFileHandleStatus constants to support the reporting of file handle creation. - Update SPExporter to use the new file class instead of directly using an instance of SPFileHandle. - Add the necessary logic to deal with files that already exist on disk, by providing the user with 3 options: cancel the export, ignore the files in question or overwrite them. We might want to enhance this to make new files sequential in name to prevent overwriting. Fixes issue #742. - New SPExportFileUtilities category, which centralises all the logic relating to writing export type headers as well as dealing with problems occurred during file/file handle creation. - Improve feedback given on the export progress sheet during export initialisation. - Tidy up and improve comments.
* In addition to Gzip compression support when exporting SQL dumps add the ↵stuconnolly2010-07-241-2/+26
| | | | | | | | | | | | | | | | | | ability to use Bzip2 compression. Other changes include: + Enable the use of export compression (Gzip and Bzip2) for all export formats. + Move the compression options in the export dialog to the 'Advanced' export settings view. + Simplify the setting of common exporter properties (e.g. the connection, use of compression). + Fix a potential memory leak in the dot exporter. + Update the data importer to recognise Bzip2 compressed files. + Fix several display issues on export dialog. + Restore the default .csv file extension of CSV exports. + Correctly update the default export filename when selecting a output compression type. The addition of Bzip2 compression support implements issue #688.
* Merge export redesign branch back into trunk.stuconnolly2010-05-241-11/+13
| | | | | | | | | | | | | | | | | | | | | 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.
* Minor export work.stuconnolly2009-10-261-1/+1
|
* More export redesign work. Note that the current implementation has a major ↵stuconnolly2009-10-071-1/+15
| | | | 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-3/+7
|
* More export redesign work. CSV data generation is currently working using ↵stuconnolly2009-10-061-2/+1
| | | | 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-1/+29
|
* Implement the core CSV export process in the new CSV exporter class.stuconnolly2009-08-291-0/+3
|
* Add the first classes of the new export architecture. See the description at ↵stuconnolly2009-08-291-0/+30
the top of SPExporter.h for more information.