aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFileHandle.m
Commit message (Collapse)AuthorAgeFilesLines
* Restore bundled zlib (#1972)Abhi Beckert2016-03-051-1/+1
|
* Remove bundled zlib #1927Abhi Beckert2016-03-041-1/+1
|
* Fix uncompressed export causing a crash (issue introduced by me 2 commits ↵Max2015-10-081-0/+1
| | | | ago in 1dedadcaba2cd474a251a24d893dc3b7b2a719a7)
* * Change a method name to fit standard naming conventionsMax2015-10-081-113/+96
| | | | | | | | | | | | * 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"; (...)
* * Turn some successive onMainThread ops into a blockMax2015-10-081-1/+2
| | | | * Move a lock() that could become unbalanced and theoretically cause havoc
* Addition to commit 2735e15bMax2015-01-041-2/+2
|
* Fix #1983 (bz2 import breaks)Max2014-09-181-7/+4
| | | | | * Avoid a malloc(4) / free() and let the compiler figure that out * sizeof(pointer) != sizeof(memory area pointed to by pointer)
* Fix warnings.Stuart Connolly2014-08-211-4/+7
|
* 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
|
* - Add names for most threads created by Sequel Pro for easier debugrowanbeentje2012-10-141-0/+1
|
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-12/+19
|
* Minor tidy up.stuconnolly2012-06-261-29/+40
|
* Silence static analyzer warnings.stuconnolly2012-06-261-1/+1
|
* - Manually handle some SPFileHandle memory management to significantly ↵rowanbeentje2012-04-121-1/+3
| | | | | | | improve memory usage during large exports, particularly improving memory which appeared to never be reclaimed - Fix some minor memory leaks throughout the application
* - Fix more compiler warningsrowanbeentje2011-03-151-6/+8
| | | | | - Tweak README
* New add index sheet, which includes:stuconnolly2010-09-171-1/+1
| | | | | | | | | - The ability to easily index multiple columns - The ability to specify the storage type (HASH or BTREE) that should be used when available and permitted - The ability to specify a length prefix when indexing a specific column (required on TEXT columns) Requires lots of testing.
* Various export enhancements and fixes, including:stuconnolly2010-08-121-1/+1
| | | | | | | | | | | | - 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.
* - Fix a bug in the bz2 changes causing the first three bytes to be skipped ↵rowanbeentje2010-07-241-0/+1
| | | | when reading uncompressed files
* In addition to Gzip compression support when exporting SQL dumps add the ↵stuconnolly2010-07-241-62/+177
| | | | | | | | | | | | | | | | | | 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.
* - Improve threading of SPFileHandle to achieve much faster writing due to ↵rowanbeentje2010-04-261-9/+30
| | | | increased separation of the writing thread. This results in a up-to 1.2x faster MySQL dump for fast servers, and makes SPFileHandle faster than NSFileHandle for writing data (either directly or GZIP compressed).
* - Add SVN id property to SPFileHandle, correct headers, and add more ↵rowanbeentje2010-04-121-13/+48
| | | | | | | function documentation - Tweak subfolder ordering
* Add a new SPFileHandle class to support gzip compression and writing on a ↵rowanbeentje2010-04-121-0/+287
background thread, and integrate for SQL import: - Implement streaming reading of gzip-compressed files for SQL import - Support exporting SQL dumps into a gzip-compressed file - SPFileHandle supports the most-used subset of NSFileHandle commands for easy integration - Integrate zlib 1.2.4 for improved gzip streaming performance (and support for custom buffer sizes and file offset positions) This implements Issue #571 .