aboutsummaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* - Correctly store scroll and selection for the navigation history when ↵rowanbeentje2010-03-251-2/+15
| | | | filtering content tables
* General tidy up, with a focus on consolidating more constants in ↵stuconnolly2010-03-2438-281/+293
| | | | SPConstants.h/m.
* • NavigatorBibiko2010-03-244-49/+99
| | | | | | - ENTER and RETURN selects schema path in active connection window - outsourced some stuff to SPNavigatorOutlineView • added rotating sync arrows to project for future usage
* - Add a new selectDatabase:item: method to TableDocument, to centralise ↵rowanbeentje2010-03-247-96/+128
| | | | | | | | | | code for selecting databases and tables. Clean up database selection to use this new method, and avoid reloads when re-selecting the same database. - Convert the history controller to use this new call. This fixes history behaviour when a table list filter was active. - Convert the (hidden) navigator to use this new call. This fixes timing issues. - Make some thread safety tweaks to TablesList. - Change TablesList selectTableOrViewWithName: to selectItemWithName:, including procs etc.
* - Remove observers for key paths when dealloc'ing objects to fix later ↵rowanbeentje2010-03-239-6/+46
| | | | | | | crashes when changing those keyvalues (eg changing query editor background colour after closing windows - http://log.sequelpro.com/view/44 ) - Fix a memory leak of a prefs reference in CMTextView
* • added SPNavigatorOutlineView class for future stuffBibiko2010-03-233-0/+78
| | | | • fixed some keytab indices for navigator window
* Before opening the user manager check that the current user has access to ↵stuconnolly2010-03-231-0/+18
| | | | the mysql.user table. If they don't display a warning message that they don't have the necessary privileges for user management.
* • TablesListBibiko2010-03-232-3/+40
| | | | | | - method selectTableOrViewWithName: scrolls to selected item • Navigator - double-click at db/table/view/field selects the chosen schema path in active connection window if chosen schema path and active connection window have the same connection ID
* • NavigatorBibiko2010-03-233-34/+161
| | | | | | | | - gather more information - show infos for proc/func - improved error handling - reduced jittering while closing a connection window - still hidden - if navigator is not visible no navigator code will be executed
* • fixed issue for new data representation of the key @"default" in [ ↵Bibiko2010-03-231-1/+1
| | | | informationForView:] since it can be [NSNull null]
* - Simplify table source table setup and make thread safe. This should ↵rowanbeentje2010-03-225-178/+163
| | | | | | | | address http://log.sequelpro.com/view/43 , http://log.sequelpro.com/view/46 - Improve keepalive timer interaction - this should address http://log.sequelpro.com/view/74 and http://log.sequelpro.com/view/71 - Further thread safety improvements to Custom Query, Table Document, and the history controller
* • CSV Import Field MapperBibiko2010-03-223-44/+71
| | | | | - added the chance to mark a global value as SQL statement in the sheet to allow to use a calculated value like LENGTH(`foo`) or NOW() while inserting/replacing/updating • added ^⌥⌘N short-cut Navigator (still hidden)
* When adding an index, after splitting the list of supplied columns strip ↵stuconnolly2010-03-221-16/+10
| | | | leading and trailing whitespace rather than checking whether the first character is empty. This accommodates lists of fields which have more than one leading and trailing empty characters and fixes the following exception: http://log.sequelpro.com/view/70.
* • CSV ImportBibiko2010-03-225-21/+39
| | | | | | | | - if a parsed row in the csv file doesn't have the same number of columns as the first row fill the missing columns with SPNotLoaded to allow while importing that these missing data can be replaced by the table column's DEFAULT value - fixed tiny issue for field mapper sheet to display the correct tooltip for default values • SPTableData - ATTENTION: changed the object for returned key 'default': if its value is NULL now it returns a [NSNull null] object - changed instances to handle this [NSNull null] object (must be checked)
* • fixed bug while CSV importBibiko2010-03-224-7/+31
| | | | - calculate correctly whether global variables are used or not to avoid a crash if the number of columns in the csv file differs
* • NavigatorBibiko2010-03-215-2/+222
| | | | | | | | | | - added 'sync' mode - the navigator follows the active window db/table selection if navigator has not multiple selected items - added drag support of selected items -- as comma separated and backtick quoted string for external apps -- as array of schema paths for SP • CMTextView - added drop support for selected items coming from the Navigator - insert them as comma list relative to current selected db/table
* • NavigatorBibiko2010-03-213-40/+161
| | | | | - preserve selection; if generally possible check if selected item still exists if not select parent if still exists on so forth - a reload should only occurs if structure was changed
* Fix memory leak upon connection window close.stuconnolly2010-03-201-0/+1
|
* - Add a new SPMainThreadTrampoline NSObject category, allowing all ↵rowanbeentje2010-03-205-151/+349
| | | | | | | | | | | | | | | NSObjects to easily proxy commands onto the main thread with any number and type of arguments. - Use the new trampoline and other thread safety tweaks to hopefully address a number of what appear to be threading issues: http://log.sequelpro.com/view/20 http://log.sequelpro.com/view/32 http://log.sequelpro.com/view/41 http://log.sequelpro.com/view/42 http://log.sequelpro.com/view/55 http://log.sequelpro.com/view/64 http://log.sequelpro.com/view/65 http://log.sequelpro.com/view/66
* • Navigator progressBibiko2010-03-202-17/+190
| | | | | | | | - made expand status persistent for current SP session - added draft to display additional information about selected fields - tried the minimize the jittering while resizing outline views (test) Note: to test it simply unhide menu item in MainMenu.xib
* Allow arbitrary questions from SSH. This is necessary to support the ↵jakob2010-03-201-0/+29
| | | | keyboard-interactive authentication method, as used by eg. RSA SecurID
* - Alter historyItemsHaveBeenUpdated: call on startup to be performed on ↵rowanbeentje2010-03-201-1/+1
| | | | main thread without a delay to fix http://log.sequelpro.com/view/33
* (no commit message)Bibiko2010-03-201-6/+1
|
* • some improvements for navigatorBibiko2010-03-192-40/+66
|
* • further work on Navigator (not yet active but workable -> unHide menu item)Bibiko2010-03-199-75/+202
|
* • some progress re NavigatorBibiko2010-03-191-18/+12
|
* • fixed "Clear global history" really removes the global history list in ↵Bibiko2010-03-181-0/+4
| | | | the Prefs
* • further progress for navigatorBibiko2010-03-183-20/+45
|
* • some progress of the navigator approach (not yet active - hidden main ↵Bibiko2010-03-183-50/+59
| | | | menu item)
* - Fix a couple of calls which crashed if the window had already been ↵rowanbeentje2010-03-185-2/+27
| | | | | | | closed, fixing window close on query startup or after queries; this fixes http://log.sequelpro.com/view/9 - Fix an exception caused in the NavigatorController if the dbstructure has not been fetched yet
* Present a warning to the user when attempting to print the current table's ↵stuconnolly2010-03-185-14/+74
| | | | content view which exceeds a set number of rows. This number is currently set to 1000 which can be changed via the hidden preference key 'PrintWarningRowLimit'. The approach to cancelling the print HTML generation thread may also need to be re-implemented to ensure that it is killed straight away, something that is currently not possible using NSThread. Rowan suggested using pthreads instead, but this should be discussed in terms of potential memory leaks and stability.
* • initial commit to support a connection/schema navigator (not yet active ↵Bibiko2010-03-174-0/+355
| | | | - to try see line 1134 in TableDocument.m)
* • changed NSDictionary structure for [MCPConnection queryDbStructure]Bibiko2010-03-171-2/+4
| | | | | | - added key, extra, privileges information to it - changed object type for 'field_name' to an array containing the values type, charset, key, extra, priv - completion for fields now also shows PRI, MUL, etc. keys
* - fixed bug for nested snippets if a nested snippet is located at the very ↵Bibiko2010-03-172-1/+14
| | | | | | end of the text buffer and has no default value - added a range sanity check for completion before insertion of the chosen item
* • Connection Controller ViewBibiko2010-03-161-0/+17
| | | | | - set favorite table's next key view in ConnectionView to tab view (standard,socket,ssh) to allow to navigate via ⇥ - if password field of the current selected connection in the ConnectionView is empty set first responder to it since it's very likely that user wants to fill it; otherwise favorite table is first responder
* • fixed bug while presetting the mirrored snippets to their counterparts; ↵Bibiko2010-03-161-5/+5
| | | | take into account the relative position of the insertion point (tab trigger)
* • added help button to Query Favorites EditorBibiko2010-03-162-0/+6
|
* • Query FavoritesBibiko2010-03-164-7/+200
| | | | | | | | | - added support for mirrored snippets $x x:= to be mirrored snippet index - example: SELECT $1.${2:} FROM ${1:¦$SP_ASLIST_ALL_TABLES¦} WHERE $1.${3:} = ${4:value} AND $1.$2 = • CMTextView - fixed completion issue for fuzzy search - added {} chars as auto-pair for connivence
* Modify our current implementation of all singleton instances to be inline ↵stuconnolly2010-03-165-32/+23
| | | | 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.
* - Make a number of changes to attempt to improve disconnection/quit ↵rowanbeentje2010-03-1610-28/+26
| | | | | | | | | crashes: prevent multiple disconnects, add more checks, cancel current queries, and add a tiny delay to allow mysql cleanup. - Alter MCPStreamingResult to no longer return a retained instance, setting up correct result disposal on autorelease but changing callers to retain as soon as they receive. - Review and change a number of local variables shadowing/shielding other local or global variables.
* Fix a couple more potential issues found during static analysis.stuconnolly2010-03-153-5/+6
|
* Fix some potential issues found during static analysis.stuconnolly2010-03-155-10/+24
|
* Following a manual code review, fix some local variables overriding global ↵rowanbeentje2010-03-1512-18/+40
| | | | variables, a few leaks, and additional nil setting/checking to prevent overreleases or releases of random areas of memory.
* Peform the removal of table fields on a background thread with the option to ↵stuconnolly2010-03-141-17/+43
| | | | cancel the operation to prevent locking up the main thread.
* • CSV Import Field MapperBibiko2010-03-141-0/+15
| | | | - added to table target popup menu "Refresh List" menu item, since the user can add/change a table in an other connection window
* - Review copyWithZone: implementations and standardise on best practice ↵rowanbeentje2010-03-143-4/+10
| | | | recommendations
* Update Localizable.strings by running genstrings and remove the use of ↵stuconnolly2010-03-141-2/+2
| | | | multiple comments for the same string.
* Peform the addition and removal of table indexes on a background thread with ↵stuconnolly2010-03-142-22/+54
| | | | the option to cancel the operation to prevent locking up the main thread. Fixes issue #591.
* • fixed printDocument validation if Custom Query is activeBibiko2010-03-131-5/+5
| | | | - allow to print the Custom Query result table even if no database/table is selected
* Don't attempt to release the print thread at the beginning of a print operation.stuconnolly2010-03-131-4/+5
|