aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportInitializer.m
Commit message (Collapse)AuthorAgeFilesLines
* fix various compile warningsAbhi Beckert2016-04-031-0/+1
|
* * move some duplicate code into it's own methodMax2015-11-201-8/+21
| | | | | * remove some duplicate onMainThread calls * if an exporter needs a certain charset it'll have to set that itself now
* Hand ServerSupport instance to exportersMax2015-11-201-1/+2
|
* Fix an exception when trying to export CSV to multiple filesMax2015-10-251-2/+2
| | | | (caused by my earlier changes to the export filename tokens)
* Fix table name token not being used in SQL exports even when only one table ↵Max2015-10-241-1/+2
| | | | is selected
* Fix export of BIT fields in SQL (#2262)Max2015-10-041-1/+1
|
* Fix some minor compiler warningsMax2015-02-031-0/+6
|
* Formalize [x release], x = nil; conventionMax2015-01-041-1/+1
| | | | | 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.
* Reformatting code for modern ObjCMax2014-12-131-3/+3
| | | | | Replaced all [NSNumber numberWithBool:YES/NO] with the @YES/@NO literals. Also replaced some TRUE/FALSE with their YES/NO counterparts.
* Fix memory leaks.Stuart Connolly2014-05-281-3/+3
|
* 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-15/+22
|
* - Improve export encoding changes to occur after the export start, fixing ↵rowanbeentje2012-06-101-13/+10
| | | | errors when exports are interrupted, for example by file path errors, and then restarted. This addresses Issue #1364.
* Export tidy up.stuconnolly2012-05-251-6/+6
|
* Fix implicit cast warnings.stuconnolly2012-05-111-2/+2
|
* - Clean up SPMySQL and QueryKit inclusion and search methods, which should ↵rowanbeentje2012-03-271-1/+1
| | | | | | | fix nightly builds - Fix warnings
* - When exporting a query result or filtered table view make sure we're ↵stuconnolly2012-03-201-3/+4
| | | | | | | | including the entire content of BLOBs, not just what we display. Fixes issue #1124. - Move SPTableContent's table view datasource and delegate methods to separate categories in order to reduce it's size.
* Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-231-2/+1
| | | | | | | | | | | | 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
* Fix for NULL values in CSV export (same as last commit, but this one ↵stuconnolly2011-07-241-1/+2
| | | | actually works).
* Add the option to the SQL export view as to whether or not the ↵stuconnolly2011-07-101-0/+1
| | | | AUTO_INCREMENT value on a table's structure is included. Defaults to not included. Implements issue #1064.
* Implement a large number of minor fixes and improvements to export ↵rowanbeentje2011-05-071-12/+46
| | | | | | | | | | | | | | | | | | | | | | functionality, including an overhaul of filename NSTokenField functionality: - Improve the NSTokenField used for export filenames: only tokenise reserved tokens, don't tokenise reserved words which are parts of other words, allow the comma to be used, update tokenisation during typing, and prevent whitespace triming. - Save the last selected export path, and make the path selection button open a dialog to the selected directory - Save the export filename and restore on future uses of the export dialog (only if the name contains placeholder tokens, so one-off export names aren't saved) - If the advanced options are collapsed, display a summary of the selected options next to the disclosure triangle - Display a small warning in the corner of the window if the export file cannot be imported into Sequel Pro, to warn those people attempting to back up their databases in XML - Clarify and improve the export warning dialog if files already exist or could not be created; make the simpler file-exists cases reflect OS-style dialogs, alter wording based on the number of files that failed and how they failed, and only show the "replace" or "skip" type buttons if it makes sense to do so. - Fix a mutation-during-enumeration error when skipping files - If "Cancel" is chosen in the export file creation replace/error dialog, redisplay the export sheet with the previous selection still active - Add support for year, month and day tokens in the filename token list - Don't allow blank custom filenames, before or after tokenisation, as this can cause problems - instead fall back to default filenames in those cases - Only append the extension if one hasn't been set - on all export formats, extending r3284 - If exporting to multiple files option is enabled but only one table is selected, supply that table name for filename table tokens - Update the progress bar to reflect update progress when exporting CSV data - Fix a bug causing exports to hang if the low-memory advanced option was set and content was selected to export and any empty tables were encountered - Save memory use and compression advanced export settings across sessions - Update localisable strings
* When performing an SQL export only append the file extension if necessary. ↵stuconnolly2011-04-291-2/+5
| | | | Fixes issue #1035.
* - Fix compiler warnings for MCPKit - largely typecast relatedrowanbeentje2011-03-021-1/+1
| | | | | | | | | - Fix further compiler warnings, including a couple of bugs - Disable the -wselector warnings (Multiple definition types for selector) as they're currently unsupported in LLVM - Disable the -wconversion warnings (Prototype conversion) warnings as we usually can't affect protocol declaration - Disable the -wstrict-selector-match (Strict selector matching) due to too many false positives
* fixed compiler warningssqlprodev2011-03-011-0/+2
|
* fixed compiler warningssqlprodev2011-03-011-1/+2
|
* Apply a tweaked version of a patch by Aaron Linville ↵rowanbeentje2010-12-051-0/+1
| | | | | | | | | | (http://www.linville.org/) to handle table linking in .dot exports on case-insensitive servers: - Adds a new checkbox on the .dot export interface controlling the case sensitivty of link handling - Improve .dot export to use lowercase link references when the option is enabled, fixing .dot exports of table relations of table names with uppercase characters on case-insensitive servers - Check the server's case-sensitivity setting and use that to control the checkbox when using the export interface to select .dot export This addresses Issue #920.
* Complete the implementation of supporting MySQL's XML schema format when ↵stuconnolly2010-11-051-1/+4
| | | | exporting. Also, restore our old format and give the user the choice during export (defaults to MySQL schema). Completes the implementation of issue #840.
* Fix a few issues that prevented an XML export to multiple files.stuconnolly2010-11-041-14/+30
|
* Minor comment.stuconnolly2010-10-241-0/+2
|
* - Split out all of SPExportController's delegate methods to their own category.stuconnolly2010-10-241-2/+0
| | | | | | | | - Prepare for the implementation of PDF and HTML export by hiding the export options box for export types that don't need it. - Fix some spacing issues on the export dialog. - Create a new SPCategoryAdditions header that is included in the apps precompiled header, making all additions available to all classes. - Update strings files.
* If the user chooses to overwrite the output file(s) when performing an ↵stuconnolly2010-08-261-1/+1
| | | | export make sure compression and CSV and XML headers and re-enable/rewritten.
* Exporter:rowanbeentje2010-08-261-1/+4
| | | | | | - Enable alternating table lines in the export table view - this addresses Issue #797 - Reconnect GZIp & BZIP2 compression functionality (TODO: not currently working for file overwrites; to be discussed)
* Encoding changes and improvements, particularly to increase compatibility ↵rowanbeentje2010-08-251-5/+5
| | | | | | | | | | | with extended characters in MySQL identifiers (names of dbs/tables/cols): - Move encoding queries and control into MCPKit, with newly cleaned-up methods, and switch a number of locations to using the new code. - Use UTF8 connections for many identifier-based queries (selecting and listing databases, tables, stored procs, table information). This fixes selection and creation of table and database names containing extended characters, also fixing exceptions and errors. - Improve UTF8 over Latin1 to correctly set the client character set encoding as well, fixing custom queries and edits; remove custom code in SPTableContent achieving the same thing in a single location. - Fix database encoding detection routines - Update localisable strings
* Fix release and dist builds.stuconnolly2010-08-161-4/+2
|
* Ensure that the XML file header is written when performing an XML export of ↵stuconnolly2010-08-141-0/+2
| | | | the current filtered result.
* Various export enhancements and fixes, including:stuconnolly2010-08-121-148/+126
| | | | | | | | | | | | - 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.
* Replace redundant code with newly established methods.stuconnolly2010-07-301-50/+10
|
* Tidy up SPExportController by splitting out all filename related methods to ↵stuconnolly2010-07-251-6/+6
| | | | a new category SPExportFilenameUtilities.
* In addition to Gzip compression support when exporting SQL dumps add the ↵stuconnolly2010-07-241-48/+21
| | | | | | | | | | | | | | | | | | 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.
* - Expose a number of help menu items and help buttons to use localisable ↵rowanbeentje2010-07-181-1/+1
| | | | | | | | strings - Tweak MySQL help search to include a localisable language code for results in requested languages This addresses Issue #743
* Export redesign (#610) CSV filename tweaks:rowanbeentje2010-07-171-2/+4
| | | | | | - Don't forcibly include the table name if only exporting a single table, even if the multiple tables checkbox is ticked - Fix additional _null files exported for Filtered Result exports when the multiple tables checkbox is ticked. Also addresses leaking write threads for those files.
* Rename CustomQuery as SPCustomQuery.stuconnolly2010-07-061-1/+1
|
* • 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
* Fix CSV exporting by correctly setting the filename when exporting to ↵stuconnolly2010-06-181-2/+6
| | | | multiple files.
* Exporter ehancements:stuconnolly2010-06-131-0/+3
| | | | | | | - 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-3/+0
| | | | | | | - 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-13/+2
| | | | | | | | - 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-6/+10
|
* A number of exporter improvements:rowanbeentje2010-06-071-47/+28
| | | | | | | | | | | | - 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