Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #176 from mtxr/release_v0.9.8
Browse files Browse the repository at this point in the history
Release v0.9.8
  • Loading branch information
tkopets authored Jan 17, 2018
2 parents ae86d93 + d4c2e5f commit 14cb7a5
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.9.7
current_version = 0.9.8
files = SQLTools.py
tag = True
commit = True
Expand Down
66 changes: 31 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
![SQLTools v0.5.4](https://github.com/mtxr/SQLTools/raw/images/icon.png?raw=true) SQLTools
![SQLTools](https://github.com/mtxr/SQLTools/raw/images/icon.png?raw=true) SQLTools
===============

<span class="badge-paypal"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RSMB6DGK238V8" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span>

Your swiss knife SQL for Sublime Text.

> If you are looking for VSCode version go to [https://github.com/mtxr/vscode-sqltools](https://github.com/mtxr/vscode-sqltools).
Write your SQL with smart completions and hady table and function definitions, execute SQL and explain queries, format your queries and save them in history.
Write your SQL with smart completions and handy table and function definitions, execute SQL and explain queries, format your queries and save them in history.

Project website: [http://mtxr.github.io/SQLTools/](http://mtxr.github.io/SQLTools/)

> If you are looking for VSCode version go to [https://github.com/mtxr/vscode-sqltools](https://github.com/mtxr/vscode-sqltools).
## Donate

SQLTools was developed with ♥ to save us time during our programming journey. But It also takes me time and efforts to develop SQLTools.
Expand All @@ -19,49 +17,40 @@ SQLTools will save you (for sure) a lot of time and help you to increase your pr

<span class="badge-paypal"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RSMB6DGK238V8" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span>



## Contributors

These fellows helped SQLTools become better than ever. Thank you so much!

* [@tkopets](https://github.com/tkopets)
* [@gabrielebarbieri](https://github.com/gabrielebarbieri)

## Features

* Smart auto completions (for PostgreSQL, MySQL, Oracle, MSSQL, Vertica, Firebird)
* Run SQL Queries (<kbd>CTRL+e</kbd>, <kbd>CTRL+e</kbd>)
![Auto complete (PostgreSQL & MySQL) && Run SQL Queries](https://github.com/mtxr/SQLTools/raw/images/execute_auto_complete.gif?raw=true)
* View table schemas (<kbd>CTRL+e</kbd>, <kbd>CTRL+d</kbd>)
* Works with PostgreSQL, MySQL, Oracle, MSSQL, SQLite, Vertica, Firebird
* Smart completions (except SQLite)
* Run SQL Queries &nbsp; <kbd>CTRL+e</kbd>, <kbd>CTRL+e</kbd>
![Auto complete and run SQL queries](https://github.com/mtxr/SQLTools/raw/images/execute_auto_complete.gif?raw=true)
* View table description &nbsp; <kbd>CTRL+e</kbd>, <kbd>CTRL+d</kbd>
![View table schemas](https://github.com/mtxr/SQLTools/raw/images/table_description.gif?raw=true)
* View Queries history (<kbd>CTRL+e</kbd>, <kbd>CTRL+h</kbd>)
* Show table records (<kbd>CTRL+e</kbd>, <kbd>CTRL+s</kbd>)
* Show table records &nbsp; <kbd>CTRL+e</kbd>, <kbd>CTRL+s</kbd>
![Show table records](https://github.com/mtxr/SQLTools/raw/images/table_records.gif?raw=true)
* Show explain plan for queries (PostgreSQL, MySQL, Oracle, Vertica, SQLite) (<kbd>CTRL+e</kbd>, <kbd>CTRL+x</kbd>)
* Formatting SQL Queries (<kbd>CTRL+e</kbd>, <kbd>CTRL+b</kbd>)
* Show explain plan for queries &nbsp; <kbd>CTRL+e</kbd>, <kbd>CTRL+x</kbd>
* Formatting SQL Queries &nbsp; <kbd>CTRL+e</kbd>, <kbd>CTRL+b</kbd>
![Formatting SQL Queries](https://github.com/mtxr/SQLTools/raw/images/format_sql.gif?raw=true)
* Threading Support (prevent ST lockups)
* Query timeout (Kill thread if query takes too long)
* Unescape chars for languages (PHP \" is replace by ")
* Save queries (<kbd>CTRL+e</kbd>, <kbd>CTRL+q</kbd>)
* List and Run saved queries (<kbd>CTRL+e</kbd>, <kbd>CTRL+a</kbd>)
* Remove saved queries (<kbd>CTRL+e</kbd>, <kbd>CTRL+r</kbd>)
* View Queries history &nbsp; <kbd>CTRL+e</kbd>, <kbd>CTRL+h</kbd>
* Save queries &nbsp; <kbd>CTRL+e</kbd>, <kbd>CTRL+q</kbd>
* List and Run saved queries &nbsp; <kbd>CTRL+e</kbd>, <kbd>CTRL+l</kbd>
* Remove saved queries &nbsp; <kbd>CTRL+e</kbd>, <kbd>CTRL+r</kbd>
* Threading support to prevent lockups
* Query timeout (kill thread if query takes too long)

## Installing

### Using Sublime Package Control

If you are using [Sublime Package Control](http://wbond.net/sublime_packages/package_control), you can easily install SQLTools via the `Package Control: Install Package` menu item.
If you are using [Sublime Package Control](https://packagecontrol.io/packages/SQLTools), you can easily install SQLTools via the `Package Control: Install Package` menu item.

1. Press `CTRL+SHIFT+p`
2. Type *"Install Package"*
3. Find SQLTools
1. Press <kbd>CTRL+SHIFT+p</kbd>
2. Type *`Install Package`*
3. Find *`SQLTools`*
4. Wait & Done!

### Download Manually

I strongly recomend you to use Package Control. It helps you to keep the package updated with the last version.
I strongly recommend you to use Package Control. It helps you to keep the package updated with the last version.

1. Download the files zip file [here](http://mtxr.github.io/SQLTools/)
2. Unzip the files and rename the folder to `SQLTools`
Expand All @@ -70,7 +59,14 @@ I strongly recomend you to use Package Control. It helps you to keep the package

### Using SQLTools with Mac OS X

Sublime Text has it's evironment variable `PATH` set from launchctl, not by your shell. Binaries installed by packages such as homebrew, for instance `psql` DB CLI for `PostgreSQL`, cannot be found by Sublime Text and results in error in Sublime Text console by `SQLTools`. Installing the package `Fix Mac Path` or setting the full path to your DB CLI binary in `SQLTools.sublime-settings` resolves this issue. Package can be downloaded via [PackageControl](https://packagecontrol.io/packages/Fix%20Mac%20Path) or [github](https://github.com/int3h/SublimeFixMacPath).
Sublime Text has it's environment variable `PATH` set from launchctl, not by your shell. Binaries installed by packages such as homebrew, for instance `psql` DB CLI for `PostgreSQL`, cannot be found by Sublime Text and results in error in Sublime Text console by `SQLTools`. Installing the package `Fix Mac Path` or setting the full path to your DB CLI binary in `SQLTools.sublime-settings` resolves this issue. Package can be downloaded via [PackageControl](https://packagecontrol.io/packages/Fix%20Mac%20Path) or [github](https://github.com/int3h/SublimeFixMacPath).

## Contributors

These fellows helped SQLTools to become better than ever. Thank you so much!

* [@tkopets](https://github.com/tkopets)
* [@gabrielebarbieri](https://github.com/gabrielebarbieri)

## Configuration

Expand Down
2 changes: 1 addition & 1 deletion SQLTools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "v0.9.7"
__version__ = "v0.9.8"

import sys
import os
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"0.9.4": "messages/v0.9.4.md",
"0.9.5": "messages/v0.9.5.md",
"0.9.6": "messages/v0.9.6.md",
"0.9.7": "messages/v0.9.7.md"
"0.9.7": "messages/v0.9.7.md",
"0.9.8": "messages/v0.9.8.md"
}
28 changes: 14 additions & 14 deletions messages/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@

Your swiss knife SQL for Sublime Text.

Write your SQL with smart completions and hady table and function definitions, execute SQL and explain queries, format your queries and save them in history.
Write your SQL with smart completions and handy table and function definitions, execute SQL and explain queries, format your queries and save them in history.

Project website: http://mtxr.github.io/SQLTools/

## Features

* Smart auto completions (for PostgreSQL, MySQL, Oracle, MSSQL, Vertica, Firebird)
* Run SQL Queries (`CTRL+e, CTRL+e`)
* View table schemas (`CTRL+e, CTRL+d`)
* View Queries history (`CTRL+e, CTRL+h`)
* Show table records (`CTRL+e, CTRL+s`)
* Show explain plan for queries (PostgreSQL, MySQL, Oracle, Vertica, SQLite) (`CTRL+e, CTRL+x`)
* Formatting SQL Queries (`CTRL+e, CTRL+b`)
* Threading Support (prevent ST lockups)
* Query timeout (Kill thread if query takes too long)
* Unescape chars for languages (PHP \" is replaced by ")
* Save queries (`CTRL+e, CTRL+q`)
* List and Run saved queries (`CTRL+e, CTRL+a`)
* Remove saved queries (`CTRL+e, CTRL+r`)
* Works with PostgreSQL, MySQL, Oracle, MSSQL, SQLite, Vertica, Firebird
* Smart completions (except SQLite)
* Run SQL Queries `CTRL+e, CTRL+e`
* View table description `CTRL+e, CTRL+d`
* Show table records `CTRL+e, CTRL+s`
* Show explain plan for queries `CTRL+e, CTRL+x`
* Formatting SQL Queries `CTRL+e, CTRL+b`
* View Queries history `CTRL+e, CTRL+h`
* Save queries `CTRL+e, CTRL+q`
* List and Run saved queries `CTRL+e, CTRL+l`
* Remove saved queries `CTRL+e, CTRL+r`
* Threading support to prevent lockups
* Query timeout (kill thread if query takes too long)

## Configuration

Expand Down
28 changes: 28 additions & 0 deletions messages/v0.9.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## v0.9.8 Notes

### Improvements

* Add MSSQL support via native `sqlcmd` CLI
* Add more options for expanding the empty selection. Instead of config option `expand_to_paragraph`, introduce new option called `expand_to`, which can be configured to expand empty selection to: `line`, `paragraph` or `file`
* General review/improvement of each DB config
* Use the `encoding` option supplied in connection settings when writing to standard input and reading from standard output of CLI command
* Changes how top level and per-query `options` apply to CLI invocations
* Changes how `before` and `after` applied (top level and per-query)
* Introduction of new `execute` named query section which is used when executing statements with `ST: Execute` and friends
* Now all named query formatting is done via `str.format()`, therefore all instances of `%s` in template strings got replaced with `{0}`, with back-patch support (i.e. `%s` should still work for those users who have it on their own user config)
* Improve the way the output is shown - the output panel is not shown until the first output from DB CLI arrives
* Add sample connections for `Vertica` and `Firebird`
* [PostgreSQL] Connection options `host`, `port`, `username` are now optional (can be set via environment vars and other means)
* [MySQL] Add configurable connection option `default-character-set`
* [MySQL] Add `--no-auto-rehash` and `--compress` to improve MySQL startup time and improve latency on slow networks
* [MySQL] Connection options `host`, `port`, `username` are now optional (can be set via `--defaults-extra-file` and `--login-path`)
* [MySQL] Supply password via environment variable `MYSQL_PWD` to avoid security warning
* [Oracle] Add ability to configure `NSL_LANG` to match the server encoding
* [Oracle] Add support for quoted table and column names
* [Oracle] Add support for functions & procedures completions as well as getting and functions & procedures definitions (both top level and those in packages)
* [Vertica] Add support for quoted identifiers
* Other minor improvements

### Fixes

* Remove unused settings option `unescape_quotes` from config

0 comments on commit 14cb7a5

Please sign in to comment.