aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
Commit message (Collapse)AuthorAgeFilesLines
* Improvements to connection view outline view:rowanbeentje2012-05-201-1/+1
| | | | | | | | | | - Prevent groups from being dragged into themselves (or child nodes) to prevent data loss - Improve selection handling when manually reordering nodes - Don't allow drags of the "Favorites" title at the top of the view to prevent exceptions - Prevent the "Favorites" title from being collapsed to prevent confusion on 10.7+ - Improve group tooltips to reflect contained favourites and groups - Improve menu validation checks
* Improve connection keepalive, disconnect, and connection loss after ↵rowanbeentje2012-05-151-3/+5
| | | | | | | | | | | reviewing crash logs and testing a number of situations: - Improve stability of closing connections after a connection loss - Minimise prompting a user for connection state restore if closing windows/tabs - Allow cancellation of keepalive ping threads to prevent crashes after deallocation of parent - Manually handle ping thread state struct memory to avoid cross-thread deallocation issues - Improve disconnection speed and resilience
* Add initial support of moving views when renaming a database. Currently not ↵stuconnolly2012-05-041-0/+1
| | | | hooked up yet. Part of issue #1235.
* - Alter the variable that currentFavorite tracks to the favourite instead ↵rowanbeentje2012-05-021-5/+5
| | | | | | | of a copy of the represented node; this addresses a crash on Lion (Issue #1328) - Clean up variables and initialisers, restore connection keychain ID tracking and setting
* Merge outline view branch into trunk.stuconnolly2012-05-021-5/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for managing and grouping favorites into folders in the connection view and removes the associated favorites management from the preferences window. NOTE: On first launch your connection favorites will be migrated from Sequel Pro's preference file to a new file in ~/Application Support/Sequel Pro/Data. Your old favorites will remain in the preference file until removed in a future version. Outstanding known issues: - Removing a group node with no child favorites presents a warning about also removing the non-existent favorites. - Starting the application with no favorites, creating a group node then selecting, hides the connection details input. Doesn't support emoty selection. - Setting the name of a connection, adding it to the favorites and then swicthing to a different connection type, screws with the favorite name. - The preservation between launches of whether group nodes are collapsed or not is currently not supported.
| * Bring outline view branch up to date with trunk.stuconnolly2012-04-161-92/+130
| |
| * Bring outline view branch up to date with trunk (r3471:r3517).stuconnolly2012-03-181-136/+123
| |
| * Bring outline view branch up to date with trunk (r3471:r3481).stuconnolly2012-02-191-3/+3
| |
| * Split out connection controller initialization.stuconnolly2012-01-221-1/+1
| |
| * Bring outlinew view branch up to date with trunk (r3375:3468).stuconnolly2012-01-221-35/+175
| |
| * Fix compile error.stuconnolly2011-08-041-3/+0
| |
| * Bring outline view up to date with trunk (r3307:r3375).stuconnolly2011-08-031-21/+31
| |
| * Fix exceptions being thrown upon launch.stuconnolly2011-05-141-3/+3
| |
| * Bring outline view branch up to date with trunk (r3279:r3306).stuconnolly2011-05-141-16/+28
| |
| * Fix broken build after merge with trunk.stuconnolly2011-04-241-2/+1
| |
| * Bring outline view branch up to date with trunk (r3234:3277).stuconnolly2011-04-221-16/+239
| |
| * Bring outline view branch up to date with trunk (r3246:r3264).stuconnolly2011-04-031-6/+7
| |
| * Bring outline view branch up to date with trunk (r3235:r3245), which should ↵stuconnolly2011-03-191-0/+1
| | | | | | | | resolve all warnings.
| * Bring outline view branch up to date with trunk (r3227:r3233).stuconnolly2011-03-081-37/+40
| |
| * Bring outline view branch up to date with trunk (r3203:r3224).stuconnolly2011-03-071-7/+12
| |
| * Bring outline view branch up to date with trunk (r3179:r3187).stuconnolly2011-02-071-1/+0
| |
| * Bring outline view branch up to date with trunk (r3165:r3177).stuconnolly2011-02-011-22/+27
| |
| * Bring outline view branch up to date with trunk (r3056:r3162).stuconnolly2011-01-271-134/+74
| |\
| * \ Bring fravorites outline view branch up to date with trunk (r3036:3058).stuconnolly2010-12-281-14/+4
| |\ \
| * \ \ Bring outline view branch up to date with trunk (r3030:3035).stuconnolly2010-12-171-26/+338
| |\ \ \
| * \ \ \ Bring outline view branch up to date with trunk (r3018:3028).stuconnolly2010-12-141-3/+35
| |\ \ \ \
| * \ \ \ \ Bring outline view branch up to date with trunk (r3011:3016).stuconnolly2010-12-131-0/+3
| |\ \ \ \ \
| * \ \ \ \ \ Bring outline view branch up to date with trunk (r3007:3010).stuconnolly2010-12-121-15/+19
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Bring outlineview branch up to date with trunk (r2989:3005).stuconnolly2010-12-111-3/+2
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ Bring outline view branch up to date with trunk (r2976:2988).stuconnolly2010-12-081-0/+22
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ Bring outlineview branch up to date with trunk (r2967:2974).stuconnolly2010-12-061-0/+15
| |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | Apply new favorites outline view patch.stuconnolly2010-12-051-4/+4
| | | | | | | | | | |
* | | | | | | | | | | Tidy up and remove commented out code.stuconnolly2012-04-071-3/+2
| | | | | | | | | | |
* | | | | | | | | | | #ifdef'ing out references to frameworks that are not used in SP_REFACTOR buildssqlprodev2012-03-291-1/+5
| | | | | | | | | | |
* | | | | | | | | | | Refresh the database drop down menu before selecting the new database after ↵stuconnolly2012-03-281-73/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a rename to prevent a secondary thread using the database list while it's being modified on the main thread. Fixes log reports http://spbug.com/l/2294
* | | | | | | | | | | User manager code tidy up.stuconnolly2012-03-281-1/+1
| | | | | | | | | | |
* | | | | | | | | | | - Clean up SPMySQL and QueryKit inclusion and search methods, which should ↵rowanbeentje2012-03-271-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix nightly builds - Fix warnings
* | | | | | | | | | | tweaks to compile on Xcode 4 / 10.6 SDK for SP_REFACTORsqlprodev2012-03-271-3/+31
| | | | | | | | | | |
* | | | | | | | | | | - Rework SPTableData PRIMARY KEY and UNIQUE KEY parsing to use SPSQLParser ↵rowanbeentje2012-03-221-18/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of regexes - Support multiple primary keys in the SPTableData parse - If possible, use primary keys to preserve table content selection instead of row indexes - Improve SPTableData primary keys method to use cached value instead of using another query - Preserve selection when filtering tables if appropriate
* | | | | | | | | | | - Fix crashes caused by the database structure retrieval continuing briefly ↵rowanbeentje2012-03-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after the parent document was closed
* | | | | | | | | | | Fix build errors.stuconnolly2012-03-171-4/+4
| | | | | | | | | | |
* | | | | | | | | | | Add constants for MySQL 'system' databases.stuconnolly2012-03-171-3/+6
| | | | | | | | | | |
* | | | | | | | | | | - Remove the GPL-licensed Colloquy-sourced NSNotificationAdditions category ↵rowanbeentje2012-03-171-19/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the project, and replace with an MIT-licensed TCMPortMapper sources NSNotificationCenterThreadingAdditions category. This should fix method clashes in the SP_REFACTOR project, so remove behavioural/namespacing switches.
* | | | | | | | | | | Merge in the SPMySQL Framework. This new framework should provide much of ↵rowanbeentje2012-03-171-106/+118
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the functionality required from MCPKit and is based around its interface for relatively easy integration. Externally visible changes as a result of this merge: - Speed improvements, particularly when loading large data sets - Stability improvements, particularly related to connection state after the connection is dropped (eg Issue #1256) - Improved support for new MySQL data types, which should address Issue #1052. - Database structure retrieval and query cancellation now use a single persistent helper connection instead of lots of connections on-demand. This should help Issue #1097. - More internal commands now use queries instead of MySQL functions; for example USE queries are now used to trigger database selection, improving transcripts. This addresses Issue #1247. - Improved internal encoding work; while this needs support within the UI, it lays the foundation for issues like Issue #1280. Code improvements: - Much improved class layouts including extensive category usage - Improved documentation across framework methods - Support for fast enumeration across result objects - Rewrite fixes use of a number of deprecate functions - Much less code duplication across result set types - Improved encapsultation within the framework, limiting the number of methods exposed, and also not exposing all the MySQL headers From the Readme file: The SPMySQL Framework is intended to provide a stable MySQL connection framework, with the ability to run text-based queries and rapidly retrieve result sets with conversion from MySQL data types to Cocoa objects. SPMySQL.framework has an interface loosely based around that provided by MCPKit by Serge Cohen and Bertrand Mansion (http://mysql-cocoa.sourceforge.net/), and in particular the heavily modified Sequel Pro version (http://www.sequelpro.com/). It is a full rewrite of the original framework, although it includes code from patches implementing the following Sequel Pro functionality, largely contributed by Hans-Jörg Bibiko, Stuart Connolly, Jakob Egger, and Rowan Beentje: - Connection locking (Jakob et al) - Ping & keepalive (Rowan et al) - Query cancellation (Rowan et al) - Delegate setup (Stuart et al) - SSL support (Rowan et al) - Connection checking (Rowan et al) - Version state (Stuart et al) - Maximum packet size control (Hans et al) - Result multithreading and streaming (Rowan et al) - Improved encoding support & switching (Rowan et al) - Database structure; moved to inside the app (Hans et al) - Query reattempts and error-handling approach (Rowan et al) - Geometry result class (Hans et al) - Connection proxy (Stuart et al)
| * | | | | | | | | | | More bugfixes to the SPMySQL integration branch:rowanbeentje2012-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix background database structure checks throwing exceptions at the end of certain table operations - Fix incorrect timer access/overrelease when closing a SPNarrowDownCompletion window when database structure fetching is active
| * | | | | | | | | | | Final feature work on the SPMySQL branch before merging:rowanbeentje2012-03-141-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a ping keepalive managing object to prevent retain cycles from the NSTimer - Add -[SPMySQLConnection copy] support - Refactor Hans-Jörg Bibiko's database structure retrieval, moving it out of the MySQL framework and building it around a copy of the connection. This reduces the amount of connections-over-time used by Sequel Pro to two constant connections (addressing Issue #1097) and improves robustness. - Use the database structure retrieval connection for faster query cancellation without an extra connection required, if possible
| * | | | | | | | | | | Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-231-103/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | | | | | * Moves the background color code for SPTextView into the class. Fixes #1073dmoagx2012-03-161-12/+0
|/ / / / / / / / / / /
* | | | | | | | | | | - Cleanup: improve compatibility with 10.7 SDK to reduce compiler warningsrowanbeentje2012-02-081-3/+3
| | | | | | | | | | |
* | | | | | | | | | | - Fix connection Growl notifications for background tabs to show the ↵rowanbeentje2012-01-151-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | correct server name