|
SSQLE
1.0
Simple SQL Editor
|
Class representing an SQL Editor with input, output and other features. More...
Public Member Functions | |
| Editor (IConnection connection) | |
| Constructs new editor with given IConnection. More... | |
| void | SaveQuery (string name) |
| Saves the query currently in query editor by given name to Settings. More... | |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
| Clean up any resources being used. More... | |
Private Member Functions | |
| void | ConfigureScintillaTextSettings () |
| Configures Scintilla.NET settings, which can't be configured in designer. More... | |
| void | ConfigureScintillaKeywords () |
| Configures Scintilla.NET settings, which can't be configured in designer. More... | |
| void | btn_execute_Click (object sender, EventArgs e) |
| Handler, that is executed whenever user clicks on Execute button, or presses key command to execute query. More... | |
| void | SetStatusBarText (string newText="") |
| Changes text of status bar. More... | |
| void | asCsvToolStripMenuItem_Click (object sender, EventArgs e) |
| Handler, that is executed whenever user clicks on Save query as CSV. More... | |
| void | asInsertStatementToolStripMenuItem_Click (object sender, EventArgs e) |
| Handler, that is executed whenever user clicks on Save query as SQL INSERT statement. More... | |
| void | exitToolStripMenuItem_Click (object sender, EventArgs e) |
| Handler, that is executed whenever user clicks on File close menu item. It closes the Editor form. More... | |
| void | btn_next_cmd_Click (object sender, EventArgs e) |
| Handler, that is executed whenever user clicks on next command from history button, or presses key command to execute query. More... | |
| void | btn_previous_cmd_Click (object sender, EventArgs e) |
| Handler, that is executed whenever user clicks on previous command from history button, or presses key command to execute query. More... | |
| void | SetCommandFromHistory (string command) |
| Changes the text of Query editor to given argument. More... | |
| void | Editor_FormClosing (object sender, FormClosingEventArgs e) |
| Handler, that is called when Editor is closing. Handles SettingsSaveException. More... | |
| void | queryToolStripMenuItem_Click (object sender, EventArgs e) |
| Handler, that is executed whenever user clicks on Save query menu item. More... | |
| void | AddLoadQueryDropDown (string name) |
| Adds menu item to Load menu for loading a saved query. More... | |
| void | btn_load_query_Click (object sender, EventArgs e) |
| Handler, that is executed whenever user clicks on load query menu item. More... | |
| void | Editor_KeyDown (object sender, KeyEventArgs e) |
| Handler, that is executed whenever user presses key. More... | |
| void | InitializeComponent () |
| Required method for Designer support - do not modify the contents of this method with the code editor. More... | |
Static Private Member Functions | |
| static string | SaveFileDialog (string filter, Action< TextWriter > dataProvider) |
Performs save of query results to format driven by dataProvider to a file using SaveFileDialog. More... | |
Private Attributes | |
| readonly IConnection | connection |
| Connection that the editor uses for executing queries. More... | |
| QueryResult | currentQueryResult |
| Result of last executed query. More... | |
| int | historyIndex |
| Index to history commands. See CommandsHistory. More... | |
| System.ComponentModel.IContainer | components = null |
| Required designer variable. More... | |
| System.Windows.Forms.SplitContainer | splitContainer |
| System.Windows.Forms.Panel | panelTop |
| System.Windows.Forms.Panel | panelBottom |
| System.Windows.Forms.ToolStripStatusLabel | statusBarLabel |
| System.Windows.Forms.MenuStrip | menuBar |
| System.Windows.Forms.ToolStripMenuItem | fileToolStripMenuItem |
| ScintillaNET.Scintilla | scintillaInput |
| System.Windows.Forms.Button | btn_execute |
| System.Windows.Forms.StatusStrip | statusBar |
| System.Windows.Forms.ToolStripMenuItem | saveToolStripMenuItem |
| System.Windows.Forms.ToolStripMenuItem | resultToolStripMenuItem |
| System.Windows.Forms.ToolStripMenuItem | asCSVToolStripMenuItem |
| System.Windows.Forms.ToolStripMenuItem | asInsertStatementToolStripMenuItem |
| System.Windows.Forms.ToolStripMenuItem | queryToolStripMenuItem |
| System.Windows.Forms.ToolStripMenuItem | loadQueryToolStripMenuItem |
| System.Windows.Forms.ToolTip | tooltip_execute |
| System.Windows.Forms.ToolStripMenuItem | exitToolStripMenuItem |
| System.Windows.Forms.Button | btn_next_cmd |
| System.Windows.Forms.Button | btn_previous_cmd |
| ScintillaNET.Scintilla | scintillaResults |
Class representing an SQL Editor with input, output and other features.
| SSQLE.Editor.Editor | ( | IConnection | connection | ) |
Constructs new editor with given IConnection.
| connection | Connection, which Editor uses for executing queries. |
|
private |
Adds menu item to Load menu for loading a saved query.
| name | Name of the query. |
|
private |
Handler, that is executed whenever user clicks on Save query as CSV.
| sender | ToolStripMenuItem, that was clicked on. |
| e | Event arguments. |
|
private |
Handler, that is executed whenever user clicks on Save query as SQL INSERT statement.
| sender | ToolStripMenuItem, that was clicked on. |
| e | Event arguments. |
|
private |
Handler, that is executed whenever user clicks on Execute button, or presses key command to execute query.
| sender | Button, that was clicked on, or null if it was executed by key stroke. |
| e | Event arguments. |
|
private |
Handler, that is executed whenever user clicks on load query menu item.
| sender | ToolStripMenuItem, that was clicked on. |
| e | Event arguments. |
|
private |
Handler, that is executed whenever user clicks on next command from history button, or presses key command to execute query.
| sender | Button, that was clicked on, or null if it was executed by key stroke. |
| e | Event arguments. |
|
private |
Handler, that is executed whenever user clicks on previous command from history button, or presses key command to execute query.
| sender | Button, that was clicked on, or null if it was executed by key stroke. |
| e | Event arguments. |
|
private |
Configures Scintilla.NET settings, which can't be configured in designer.
|
private |
Configures Scintilla.NET settings, which can't be configured in designer.
|
protected |
Clean up any resources being used.
| disposing | true if managed resources should be disposed; otherwise, false. |
|
private |
Handler, that is called when Editor is closing. Handles SettingsSaveException.
| sender | Editor |
| e | Form closing event arguments. |
|
private |
Handler, that is executed whenever user presses key.
| sender | Editor. |
| e | Key event arguments. |
|
private |
Handler, that is executed whenever user clicks on File close menu item. It closes the Editor form.
| sender | ToolStripMenuItem, that was clicked on. |
| e | Event arguments. |
|
private |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
private |
Handler, that is executed whenever user clicks on Save query menu item.
| sender | ToolStripMenuItem, that was clicked on. |
| e | Event arguments. |
|
staticprivate |
Performs save of query results to format driven by dataProvider to a file using SaveFileDialog.
| filter | Filter for files in the dialog. |
| dataProvider | Function, that provides the conversion of Query Result. |
| void SSQLE.Editor.SaveQuery | ( | string | name | ) |
Saves the query currently in query editor by given name to Settings.
| name | Identifier of the query for further reuse. |
|
private |
Changes the text of Query editor to given argument.
| command | Command to set the query editor to. |
|
private |
Changes text of status bar.
| newText | New text of the status bar. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Required designer variable.
|
private |
Connection that the editor uses for executing queries.
|
private |
Result of last executed query.
|
private |
|
private |
|
private |
Index to history commands. See CommandsHistory.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.8