aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryConsole.m
Commit message (Collapse)AuthorAgeFilesLines
* • renamed SPQueryConsole to SPQueryController since it controls not only ↵Bibiko2009-09-031-632/+0
| | | | | | the query console but also query favorites and history application-wide - accessible via: [SPQueryController sharedQueryController]
* • fixed document registering with its query favorites and historyBibiko2009-09-031-15/+39
| | | | | | | | • added and applied removeRegisteredDocumentWithURL to remove a registered document from the app-wide query fav/history controller • saveDocumentWithFilePath now returns the success status after saving - if saving fails for some reasons SP suggests to save that doc under a new name • fixed issues for "Save" an Untitled doc • improved error handling
* • commented out a not yet fully implemented feature in SPQueryConsole in ↵Bibiko2009-09-031-13/+13
| | | | | | order to be able to open files from Finder correctly Note: I tested it with 21 spf files (different connections, encrypt state, auto connect state, non-readable spf files etc) selected in Finder ⇢ ⌘O ⇢ all of them were handled correctly
* • fixed issue if a SPF file contains non-valid URL character like space, etc.Bibiko2009-09-031-0/+64
| | | | | | • each new connection which is non-SPF file-based gets the document name "Untitled x" • prepared SPQueryConsole to manage all query favorite and history data application-wide • minor code fixes and renaming issues
* • added to SPArrayAdditions.h: NSArrayObjectAtIndex() inline functionBibiko2009-06-181-1/+2
| | | | | | | | | - id o = NSArrayObjectAtIndex(anArray, index) :== id o = [anArray objectAtIndex:index] - this speed up it ~3µs per call - replaced that inline function for such calls within loops to speed up them • used IMP function pointers for keepAlive calls within queryString: • set -O3 (Fastest) compiler option • allow in preference pane "Tables" to set the Limit up to 50000
* • some tiny improvements to speed up queryString:Bibiko2009-06-181-3/+11
| | | | | | | | | - cache the function pointer for delegate willPerformQuery: - if Console Log window is NOT visible suppress reloadData and scrolling to last line (this speeds it up remarkably); if user opens the Console log window it will be synchronized - timeIntervall for execution time will be divide by CLOCKS_PER_SEC in [NSString stringForTimeInterval] - removed for utf8 enc in cString the return UTF8String (no significant difference) • now execution time shows only the time for mysql_real_query
* Add a very basic preference to disable all query logging. This can be ↵stuconnolly2009-06-111-3/+18
| | | | expanded upon to disable different types of queries.
* More header updates for source files, including Subversion Id property.stuconnolly2009-05-191-0/+3
|
* Query console save panel shouldn't be being run twice.stuconnolly2009-05-171-6/+0
|
* • added "Show HELP statements" to MySQL ConsoleBibiko2009-04-281-2/+22
|
* Replace in console, new lines (\n) with spacebamse162009-04-231-2/+2
| | | | | | Default extension for query log file save is .sql
* Fix for issue #238. Convert the console message to uppercase when performing ↵stuconnolly2009-04-221-2/+2
| | | | the SELECT/SHOW prefix check.
* - Save the state of the "Show timestamps" and "Show SELECT/SHOW statements" ↵rowanbeentje2009-04-201-6/+6
| | | | options for the console in the user preferences
* - If filters are active and adding messages to the console, ensure the ↵rowanbeentje2009-04-201-0/+2
| | | | save/clear buttons are enabled
* - Changed console window to match style of main window.avenjamin2009-04-201-3/+6
| | | | | | - New bottom bar. - Both checkboxes moved into gear button with menu. - Clear Console button has new custom image
* - Rework the query console logic. This fixes a memory leak caused by a ↵rowanbeentje2009-04-181-134/+158
| | | | | | | mutableCopy when toggling SELECT/SHOWS; it allows the SELECT/SHOWS toggle and text filters to stack together whatever order they are changed in; and it allows both filtering and hiding SELECT/SHOWs to be applied 'live', ie messages added to the console will have the same logic applied to them. - Clean up trailing whitespace in the file
* Fix an issue where by the show/hide console menu item was not being updated ↵stuconnolly2009-04-051-0/+12
| | | | when the toolbar item was used. Also add more interface validation by only enabling the 'Clear Console' menu and toolbar items when there is at least one message in the console.
* Fix 'Clear Console' menu item, which was disabled because of missing ↵stuconnolly2009-03-301-5/+3
| | | | 'clearConsole:' method in TableDocument.m.
* Completely redesigned query console that now uses a table view instead of a ↵stuconnolly2009-03-261-62/+374
| | | | | | | | | | | | | text view. This should significantly improve import speed, but most importantly resolves the crashes caused by the drawing that was being performed by the text view. Fixes issue #87 and implements #167. New console provides the following: - Live filtering - Ability to hide message time stamps - Ability to hide SELECT/SHOW statement messages - Ability to copy messages to pasteboard, including multiple messages - Ability to save the current filtered content to a file, with the option to include the message time stamps
* - Removed old no longer used images.avenjamin2009-03-211-1/+6
|
* Reduce the amount of padding on the new console panel and also auto save its ↵stuconnolly2009-02-281-0/+12
| | | | position. Thanks to Rowan for suggesting these.
* + Separate the console from being drawer based to its own panel. New console ↵stuconnolly2009-02-281-0/+135
panel also adds the ability to save the current console content to a file on disk. Speed up the updating of the text view by removing the re-draw of the view after each message is appended. The console is still very basic, but is a starting point for more functionality to be added now that it is all handled in a single class. + Add the ability to specify the encoding when creating a new database. Addresses issue #125. Also improve the usability of the create database sheet by only enabling the 'Add' button if the database name length is greater than zero. This elimates the check that is done and the error panel that is displayed if the name is empty.