- Dynamic terminal titles based on prompt format strings.
- Require a more recent version of the
wcwidthlibrary.
- Allow shorter timeout lengths after pressing Esc, for vi-mode.
- Let tab and control-space behaviors be configurable.
- Add short hostname prompt format string.
- Prioritize common functions in the "value" position.
- Improve value-position keywords.
- Allow warning-count in status output to be styled.
- Fix crash for completion edge case (#1668).
- Update to a
cli_helpersversion with atabulatebugfix.
- Offer filename completions on more special commands, such as
\edit. - Allow styling of status and timings text.
- Set up customization of prompt/continuation colors in
~/.myclirc. - Allow customization of the toolbar with prompt format strings.
- Add warnings-count prompt format strings:
\wand\W. - Handle/document more attributes in the
[colors]section of~/.myclirc. - Enable customization of table border color/attributes in
~/.myclirc. - Complete much more precisely in the "value" position.
- Make toolbar widths consistent on toggle actions.
- Don't write ANSI prompt escapes to
teeoutput.
- Use prompt_toolkit's
bell(). - Refactor
SQLResultdataclass. - Avoid depending on string matches into host info.
- Add more URL constants.
- Set
$VISUALwhenever$EDITORis set. - Fix tempfile leak in test suite.
- Avoid refreshing the prompt unless needed.
- Add
\bugcommand. - Let the
F1key open a browser to mycli.net/docs and emit help text. - Add documentation index URL to inline help.
- Rewrite bottom toolbar, showing more statuses, but staying compact.
- Let
help <keyword>list similar keywords when not found. - Optionally highlight fuzzy search previews.
- Make
\editsynonymous with the\ecommand. - Add environment variable section to
--checkup.
- Force a prompt_toolkit refresh after fzf history search to avoid display glitches.
- Include
statusfooter in paged output. - Ensure fullscreen in fuzzy history search.
- Add
help <keyword>to TIPS. - Refine inline help descriptions.
- Add
$VISUALenvironment variable hint to TIPS.
- Better tests for
null_stringconfiguration option. - Better cleanup of resources in the test suite.
- Simplify prettify/unprettify handlers.
- Make prettify/unprettify logic more robust.
- Add extra error output on connection failure for possible SSL mismatch (#1584).
- Bind alternate terminal sequences for function keys F2 - F4.
- Add
llm helpsubcommand. - Rewrite
helptable. - Remove "info" counter from fzf history-search UI.
- Let interactive changes to the prompt format respect dynamically-computed values.
- Better handle arguments to
system cd. - Fix missing keepalives in
\eprompt loop. - Always strip trailing newlines with
\e. - Fix
\llmwithout arguments, and remove debug output.
- Startup tips: add right-arrow key binding.
- Startup tips: add control-space and the
min_completion_triggersetting. - Startup tips: add history-search bindings.
- Prefer
httpsprotocol overhttpin documentation.
- Remove outdated email address in
pyproject.toml. - Set well-known URL values in
pyproject.toml.
- Let the
--dsnargument accept literal DSNs as well as aliases. - Accept
--character-setas an alias for--charsetat the CLI. - Add SSL/TLS version to
statusoutput. - Accept
socketas a DSN query parameter. - Accept new-style
ssl_modein DSN URI query parameters, to match CLI argument. - Fully deprecate the built-in SSH functionality.
- Let
--keepalive-ticksbe set per-connection, as a CLI option or DSN parameter. - Accept
character_setas a DSN query parameter. - Don't attempt SSL for local socket connections when in "auto" SSL mode.
- Add prompt format string for SSL/TLS version of the connection.
- Add prompt format strings for displaying uptime.
- Add batch mode to startup tips.
- Update startup tips with new options.
- Make
--ssl-capathargument a directory. - Allow users to use empty passwords without prompting or any configuration (#1584).
- Check the existence of a socket more directly in
status. - Allow multi-line SQL statements in batch mode on the standard input.
- Fix extraneous prompt refresh on every keystroke.
--checkupnow checks for external executables.
- Improve completion suggestions within backticks.
- Watch command now returns correct time when run as part of a multi-part query (#1565).
- Don't diagnose free-entry sections such as
[favorite_queries]in--checkup. - When accepting a filename completion, fill in leading
./if given.
- Bump
cli_helpersto non-yanked version.
- Don't offer autocomplete suggestions when the cursor is within a string.
- Catch
getpwuiderror on unknown socket owner.
- Tune Codex reviews.
- Refactor
is_inside_quotes()detection.
- Add many CLI flags to startup tips.
- Accept all special commands without trailing semicolons in multi-line mode.
- Add prompt format strings for socket connections.
- Optionally defer auto-completions until a minimum number of characters is typed.
- Make the completion interface more responsive using a background thread.
- Option to suppress control-d exit behavior.
- Better support Truecolor terminals.
- Ability to send app-layer keepalive pings to the server.
- Add
WITH,EXPLAIN, andLEFT JOINto favorite keyword suggestions. - Let the Escape key cancel completion popups.
- Correct parameterization for completion queries.
- Grammar nits in help display.
- Prefer
yield fromover yielding in a loop. - Update
rufflinter and CI. - Update
LICENSE.txtfor dates and GitHub detection. - Update key feature list in
README.md, syncing with web. - Sync prompt format string commentary with web.
- Add a GitHub Actions workflow to run Codex review on pull requests.
- Remove vim-style exit sequence which had no effect.
- Pin dependencies more tightly in
pyproject.toml. - Exclude more documentation files from CI.
- Add all
~/.myclircentries/sections to startup tips.
- Fix
\dt+ table_namereturning empty results. - Further bulletproof generating completions on stored procedures.
- Add GitHub Issue templates.
- Suggest tables/views that contain the given columns first when provided in a SELECT query.
- Reduce duplicated
--checkupoutput. - Handle errors generating completions on stored procedures.
- Fix whitespace/inline comments breaking destructive
UPDATE … WHEREstatement detection.
- Let CI ignore additional documentation files.
- Upgrade
cli_helperslibrary to v2.10.0. - Organize startup tips.
- Options to limit size of LLM prompts; cache LLM prompt data.
- Add startup usage tips.
- Move
main.ssl_modeconfig option toconnection.default_ssl_mode. - Add "unsupported" and "deprecated"
--checkupsections.
- Correct mangled schema info sent in LLM prompts.
- Give destructive warning on multi-table
UPDATEs.
- Deprecate reading configuration values from
my.cnffiles. - Add
--checkupmode to show unconfigured new features. - Add
binary_displayconfiguration option.
- Link to
--ssl/--no-sslGitHub issue in deprecation warning. - Don't emit keyring-updated message unless needed.
- Include port and socket in keyring identifier.
- "Eager" completions for the
sourcecommand, limited to*.sqlfiles. - Suggest column names from all tables in the current database after SELECT (#212).
- Put fuzzy completions more often to the bottom of the suggestion list.
- Store and retrieve passwords using the system keyring.
- Refactor completions for special commands, with minor casing fixes.
- Raise
--password-filehigher in the precedence of password specification. - Fix regression: show username in password prompt.
- Remove
align_decimalspreprocessor, which had no effect. - Fix TLS deprecation warning in test suite.
- Convert importlib read_text and open_text uses to newer files() syntax.
- Update Pull Request template.
- Right-align numeric columns, and make the behavior configurable.
- Add completions for stored procedures.
- Escape database completions.
- Offer completions on
CREATE TABLE ... LIKE. - Use 0x-style hex literals for binaries in SQL output formats.
- Better respect case when
keyword_casingisauto. - Fix error when selecting from an empty table.
- Let favorite queries contain special commands.
- Render binary values more consistently as hex literals.
- Offer format completions on special command
\Tr/redirectformat.
- Add a
--checkpoint=argument to log successful queries in batch mode. - Add
--throttleoption for batch mode.
- Fix timediff output when the result is a negative value (#1113).
- Don't offer completions for numeric text.
- Add
--unbufferedmode which fetches rows as needed, to save memory. - Default to standards-compliant
utf8mb4character set. - Stream input from STDIN to consume less memory, adding
--noninteractiveand--format=CLI arguments. - Remove suggested quoting on completions for identifiers with uppercase.
- Allow table names to be completed with leading schema names.
- Soft deprecate the built-in SSH features.
- Add true fuzzy-match completions with rapidfuzz.
- Fix CamelCase fuzzy matching.
- Place special commands first in the list of completion candidates, and remove duplicates.
- Make password options also function as flags. Reworked password logic to prompt user as early as possible (#341).
- More complete and up-to-date set of MySQL reserved words for completions.
- Place exact-leading completions first.
- Allow history file location to be configured.
- Make destructive-warning keywords configurable.
- Smarter fuzzy completion matches.
- Respect
--logfilewhen using--executeor standard input at the shell CLI. - Gracefully catch Paramiko parsing errors on
--list-ssh-config. - Downgrade to Paramiko 3.5.1 to avoid crashing on DSA SSH keys.
- Offer schema name completions in
GRANT ... ONforms.
- Update watch query output to display the correct execution time on all iterations (#763).
- Use correct database (if applicable) when reconnecting after a connection loss (#1437).
- Create new data class to handle SQL/command results to make further code improvements easier.
- Let
sqlparseaccept arbitrarily-large queries.
- Add enum value completions for WHERE/HAVING clauses. (#790)
- Add
show_favorite_queryconfig option to control query printing when running favorite queries. (#1118)
- Prompt for password within SSL-auto retry flow.
- Update query processing functions to allow automatic show_warnings to work for more code paths like DDL.
- Add new ssl_mode config / --ssl-mode CLI option to control SSL connection behavior. This setting will supercede the existing --ssl/--no-ssl CLI options, which are deprecated and will be removed in a future release.
- Rework reconnect logic to actually reconnect or create a new connection instead of simply changing the database (#746).
- Configurable string for missing values (NULLs) in outputs.
- Update the prompt display logic to handle an edge case where a socket is used without a host being parsed from any other method (#707).
- Refine documentation for Windows.
- Target Python 3.10 for linting.
- Use fully-qualified pymysql exception classes.
- Add support for the automatic displaying of warnings after a SQL statement is executed. May be set with the commands \W and \w, in the config file with show_warnings, or with --show-warnings/--no-show-warnings on the command line.
- Improve robustness for flaky tests when publishing.
- Improve type annotations for latest mypy/type stubs.
- Set mypy version more strictly.
- Close connection to server properly to avoid "Aborted connection" warnings in server logs.
- Add ruff to developement dependencies.
- Update contributing guidelines to match GitHub pull request checklist.
- Upgrade
clickto v8.3.1, resolving a longstanding pager bug.
- Include LLM dependencies in tox configuration.
- Make LLM dependencies an optional extra.
- Let LLM commands respect show-timing configuration.
- Add mypy to Pull Request template.
- Enable flake8-bugbear lint rules.
- Fix flaky editor-command tests in CI.
- Require release format of
changelog.mdwhen making a release. - Improve type annotations on LLM driver.
- Support reconnecting to mysql server when the server restarts.
- Test on Python 3.14.
- Switch from pyaes to pycryptodomex as it seems to be more actively maintained.
- Don't require
--sslargument when other SSL arguments are given.
- Support only Python 3.10+.
- Fixes use of incorrect ssl config after retrying connection with prompted password.
- Fix ssl_context always created.
Typing fix for pymysql.connect().
- Limit Alt-R bindings to Emacs mode.
- Fix timing being printed twice.
- Only read "my" configuration files once, rather than once per call to read_my_cnf_files.
- Fix the infinite looping when
\llmis called without args.
- Fix failure to save Favorite Queries.
- Partially fix Favorite Query completion crash.
- Improve CI workflow naming.
- Add LLM support.
- Improve missing ssh-extras message.
- Fix repeated control-r in traditional reverse isearch.
- Fix spelling of
ssl-verify-server-certoption. - Improve handling of
ssl-verify-server-certFalse values. - Guard against missing contributors file on startup.
- Friendlier errors on password-file failures.
- Better handle empty-string passwords.
- Permit empty-string passwords at the interactive prompt.
- Improve pull request template lint commands.
- Complete typehinting the non-test codebase.
- Modernization: conversion to f-strings.
- Modernization: remove more Python 2 compatibility logic.
- Align LICENSE with SPDX format.
- Fix deprecated
licensespecification format inpyproject.toml.
- Show username in password prompt.
- Add
mysqlandmysql_unicodetable formats.
- Help Windows installations find a working default pager.
- Support only Python 3.9+ in
pyproject.toml. - Add linting suggestion to pull request template.
- Make CI names and properties more consistent.
- Enable typechecking for most of the non-test codebase.
- CI: turn off fail-fast matrix strategy.
- Remove unused Python 2 compatibility code.
- Also run CI tests without installing SSH extra dependencies.
- Update
cli_helpersdependency, and list of table formats.
- Make control-r reverse search style configurable.
- Make fzf search key bindings more compatible with traditional isearch.
- Better reset after pipe command failures.
- Add limited typechecking to CI.
- Support chained pipe operators such as
select first_name from users $| grep '^J' $| head -10. - Support trailing file redirects after pipe operators, such as
select 10 $| tail -1 $> ten.txt.
- Fix old-style
\pipe_once.
- Use only
communicate()to communicate with subprocess.
- Use plain
print()to communicate with subprocess.
- Bump cli_helpers dependency for corrected output formats.
- Post-save command hook for redirected output.
- Documentation cleanup.
- Bump cli_helpers dependency for more output formats.
- Keybindings to insert current date/datetime.
- Improve feedback when running external commands.
- Independent format for redirected output.
- Trailing shell-style redirect syntax.
- Remove
requirements-dev.txtin favor of uv/pyproject.toml.
- Support SSL query parameters on DSNs.
- More information and care on KeyboardInterrupt.
- Work on passing
ruff checklinting. - Relax expectation for unreliable test.
- Bump sqlglot version to v26 and add rs extras.
- Let table-name extraction work on multi-statement inputs.
- Work on passing
ruff checklinting. - Remove backward-compatibility hacks.
- Pin more GitHub Actions and add Dependabot support.
- Enable xpassing test.
- skip style checks on Publish action
- Added explicit error handle to get_password_from_file with EAFP.
- Use the "history" scheme for fzf searches.
- Deduplicate history in fzf searches.
- Add a preview window to fzf history searches.
- New Project Lead: Roland Walker
- Update sqlparse to <=0.6.0
- Typing/lint fixes.
- DSN specific init-command in myclirc. Fixes (#1195)
- Add
\\gto force the horizontal output.
- Exclude tests from the python package.
- Fix the GH actions to publish a new version.
- fix SSL through SSH jump host by using a true python socket for a tunnel
- Fix mycli crash when connecting to Vitess
- Modernize to use PEP-621. Use
uvinstead ofpipin GH actions. - Remove Python 3.8 and add Python 3.13 in test matrix.
- Added fzf history search functionality. The feature can switch between the old implementation and the new one based on the presence of the fzf binary.
- Fixes
Database connection failed: error('unpack requires a buffer of 4 bytes') - Only show keyword completions after *
- Enable fuzzy matching for keywords
- Don't use default prompt when one is not supplied to the --prompt option.
- Don't install tests.
- Do not ignore the socket passed with the -S option, even when no port is passed
- Fix unexpected exception when using dsn without username & password (Thanks: Will Wang)
- Let the
--promptoption act normally with its predefined default value
- paramiko is newer than 2.11.0 now, remove version pinning
cryptography. - Drop support for Python 3.7
- Detect TiDB instance, show in the prompt, and use additional keywords.
- Fix the completion order to show more commonly-used keywords at the top.
- Better handle empty statements in un/prettify
- Remove vi-mode bindings for prettify/unprettify.
- Honor
\Gwhen executing from commandline with-e. - Correctly report the version of TiDB.
- Revised
bottonspelling mistakes withbottominmycli/clitoolbar.py
- Require Python 3.7 in
setup.py
- Add
--sslflag to enable ssl/tls. - Add
pageroption to~/.myclirc, for instancepager = 'pspg --csv'(Thanks: BuonOmo) - Add prettify/unprettify keybindings to format the current statement using
sqlglot.
- Add
--tls-versionoption to control the tls version used.
- Pin
cryptographyto suppressparamikowarning, helping CI complete and presumably affecting some users. - Upgrade some dev requirements
- Change tests to always use databases prefixed with 'mycli_' for better security
- Support for some MySQL compatible databases, which may not implement connection_id().
- Fix the status command to work with missing 'Flush_commands' (mariadb)
- Ignore the user of the system [myslqd] config.
- Add
beep_after_secondsoption to~/.myclirc, to ring the terminal bell after long queries.
- Upgrade Ubuntu VM for runners as Github has deprecated it
- Change in main.py - Replace the
click.get_terminal_size()withshutil.get_terminal_size()
- Upgrade cli_helpers to workaround Pygments regression.
- Fix autocompletion for more than one JOIN
- Fix the status command when connected to TiDB or other servers that don't implement 'Threads_connected'
- Pin pygments version to avoid a breaking change
- Restore dependency on cryptography for the interactive password prompt
- Deprecate Python mock
- Allow
FileNotFoundexception for SSH config files. - Fix startup error on MySQL < 5.0.22
- Check error code rather than message for Access Denied error
- Fix login with ~/.my.cnf files
- Add
-gshortcut to option--login-path. - Alt-Enter dispatches the command in multi-line mode.
- Allow to pass a file or FIFO path with --password-file when password is not specified or is failing (as suggested in this best-practice https://www.netmeister.org/blog/passing-passwords.html)
- Remove unused function is_open_quote()
- Use importlib, instead of file links, to locate resources
- Test various host-port combinations in command line arguments
- Switched from Cryptography to pyaes for decrypting mylogin.cnf
- Ensure
--portis always an int.
- Allow
--hostwithout--portto make a TCP connection.
- Fix config file include logic
- Add an option
--init-commandto execute SQL after connecting (Thanks: [KITAGAWA Yasutaka]). - Use InputMode.REPLACE_SINGLE
- Add support for ANSI escape sequences for coloring the prompt.
- Allow customization of Pygments SQL syntax-highlighting styles.
- Add a
\clipspecial command to copy queries to the system clipboard. - Add a special command
\pipe_onceto pipe output to a subprocess. - Add an option
--charsetto set the default charset when connect database.
- Fixed compatibility with sqlparse 0.4 (Thanks: mtorromeo).
- Fixed iPython magic (Thanks: mwcm).
- Send "Connecting to socket" message to the standard error.
- Respect empty string for prompt_continuation via
prompt_continuation = ''in.myclirc - Fix \once -o to overwrite output whole, instead of line-by-line.
- Dispatch lines ending with
\eor\clipon return, even in multiline mode. - Restore working local
--socket=<UDS>(Thanks: xeron). - Allow backtick quoting around the database argument to the
usecommand. - Avoid opening
/dev/ttywhen--no-warnis given. - Fixed some typo errors in
README.md.
- Make the
pwdmodule optional.
- Fix the breaking change introduced in PyMySQL 0.10.0. (Thanks: [Amjith]).
- Add an option
--ssh-config-hostto read ssh configuration from OpenSSH configuration file. - Add an option
--list-ssh-configto list ssh configurations. - Add an option
--ssh-config-pathto choose ssh configuration path.
- Fix specifying empty password with
--password=''when config file has a password set (Thanks: Zach DeCook).
- Fix broken auto-completion for favorite queries (Thanks: [Amjith]).
- Fix undefined variable exception when running with --no-warn (Thanks: Georgy Frolov)
- Support setting color for null value (Thanks: laixintao)
- Added DSN alias name as a format specifier to the prompt (Thanks: Georgy Frolov).
- Mark
updatewithoutwhere-clause as destructive query (Thanks: [Klaus Wünschel]). - Added DELIMITER command (Thanks: Georgy Frolov)
- Added clearer error message when failing to connect to the default socket.
- Extend main.is_dropping_database check with create after delete statement.
- Search
${XDG_CONFIG_HOME}/mycli/myclircafter${HOME}/.myclircand before/etc/myclirc(Thanks: [Takeshi D. Itoh])
- Allow \o command more than once per session (Thanks: Georgy Frolov)
- Fixed crash when the query dropping the current database starts with a comment (Thanks: Georgy Frolov)
- deprecate python versions 2.7, 3.4, 3.5; support python 3.8
- Fix an error when using login paths with an explicit database name (Thanks: Thomas Roten).
- Auto find alias dsn when
://not indatabase(Thanks: [QiaoHou Peng]). - Mention URL encoding as escaping technique for special characters in connection DSN (Thanks: [Aljosha Papsch]).
- Pressing Alt-Enter will introduce a line break. This is a way to break up the query into multiple lines without switching to multi-line mode. (Thanks: Amjith Ramanujam).
- Use a generator to stream the output to the pager (Thanks: Dick Marinus).
- Fix the missing completion for special commands (Thanks: Amjith Ramanujam).
- Fix favorites queries being loaded/stored only from/in default config file and not --myclirc (Thanks: Matheus Rosa)
- Fix automatic vertical output with native syntax style (Thanks: Thomas Roten).
- Update
cli_helpersversion, this will remove quotes from batch output like the official client (Thanks: Dick Marinus) - Update
setup.pyto no longer requiresqlparseto be less than 0.3.0 as that just came out and there are no notable changes. ([VVelox]) - workaround for ConfigObj parsing strings containing "," as lists (Thanks: [Mike Palandra])
- fix unhashable FormattedText from prompt toolkit in unit tests (Thanks: Dick Marinus).
- Add Python 3.7 trove classifier (Thanks: Thomas Roten).
- Fix pytest in Fedora mock (Thanks: Dick Marinus).
- Require
prompt_toolkit>=2.0.6(Thanks: Dick Marinus).
- Add Token.Prompt/Continuation (Thanks: Dick Marinus).
- Don't reconnect when switching databases using use (Thanks: [Angelo Lupo]).
- Handle MemoryErrors while trying to pipe in large files and exit gracefully with an error (Thanks: Amjith Ramanujam)
- Enable Ctrl-Z to suspend the app (Thanks: Amjith Ramanujam).
- Fixes database reconnecting feature (Thanks: [Yang Zou]).
- Update Twine version to 1.12.1 (Thanks: Thomas Roten).
- Fix warnings for running tests on Python 3.7 (Thanks: Dick Marinus).
- Clean up and add behave logging (Thanks: Dick Marinus).
- Add Keywords: TINYINT, SMALLINT, MEDIUMINT, INT, BIGINT (Thanks: [QiaoHou Peng]).
- Update prompt toolkit (Thanks: Jonathan Slenders, Irina Truong, Dick Marinus).
- Display server version in welcome message (Thanks: Irina Truong).
- Set
program_nameconnection attribute (Thanks: Dick Marinus). - Use
returnto terminate a generator for better Python 3.7 support (Thanks: [Zhongyang Guan]). - Add
SAVEPOINTto SQLCompleter (Thanks: [Huachao Mao]). - Connect using a SSH transport (Thanks: Dick Marinus).
- Add
FROM_UNIXTIMEandUNIX_TIMESTAMPto SQLCompleter (Thanks: [QiaoHou Peng]) - Search
${PWD}/.myclirc, then${HOME}/.myclirc, lastly/etc/myclirc(Thanks: [QiaoHao Peng])
- When DSN is used, allow overrides from mycli arguments (Thanks: Dick Marinus).
- A DSN without password should be allowed (Thanks: Dick Marinus)
- Convert
sql_formatto unicode strings for py27 compatibility (Thanks: Dick Marinus). - Fixes mycli compatibility with pbr (Thanks: Thomas Roten).
- Don't align decimals for
sql_format(Thanks: Dick Marinus).
- Use fileinput (Thanks: Dick Marinus).
- Enable tests for Python 3.7 (Thanks: Thomas Roten).
- Remove
*.swpfrom gitignore (Thanks: Dick Marinus).
- Add
CONCATto SQLCompleter and remove unused code (Thanks: [caitinggui]) - Do not quit when aborting a confirmation prompt (Thanks: Thomas Roten).
- Add option list-dsn (Thanks: Frederic Aoustin).
- Add verbose option for list-dsn, add tests and clean up code (Thanks: Dick Marinus).
- Add enable_pager to the config file (Thanks: Frederic Aoustin).
- Mark
test_sql_outputas a dbtest (Thanks: Dick Marinus). - Don't crash if the log/history file directories don't exist (Thanks: Thomas Roten).
- Unquote dsn username and password (Thanks: Dick Marinus).
- Output
Password:prompt to stderr (Thanks: [ushuz]). - Mark
alteras a destructive query (Thanks: Dick Marinus). - Quote CSV fields (Thanks: Thomas Roten).
- Fix
thanks_picker(Thanks: Dick Marinus).
- Refactor Destructive Warning behave tests (Thanks: Dick Marinus).
- Add DSN aliases to the config file (Thanks: Frederic Aoustin).
- Do not try to connect to a unix socket on Windows (Thanks: Thomas Roten).
- Add sql-update/insert output format. (Thanks: Dick Marinus).
- Also complete aliases in WHERE. (Thanks: Dick Marinus).
- Add
watch [seconds] querycommand to repeat a query every [seconds] seconds (by default 5). (Thanks: David Caro) - Default to unix socket connection if host and port are unspecified. This simplifies authentication on some systems and matches mysql behaviour.
- Add support for positional parameters to favorite queries. (Thanks: Scrappy Soft)
- Fix source command for script in current working directory. (Thanks: Dick Marinus).
- Fix issue where the
teecommand did not work on Python 2.7 (Thanks: Thomas Roten).
-
Drop support for Python 3.3 (Thanks: Thomas Roten).
-
Make tests more compatible between different build environments. (Thanks: [David Caro])
-
Merge
_on_completions_refreshedand_swap_completer_objectsfunctions (Thanks: Dick Marinus).
- Fix keyword completion suggestion for
SHOW(Thanks: Thomas Roten). - Prevent mycli from crashing when failing to read login path file (Thanks: Thomas Roten).
- Make tests ignore user config files (Thanks: Thomas Roten).
- Add file name completion for source command (issue #500). (Thanks: Irina Truong).
- Fix UnicodeEncodeError when editing sql command in external editor (Thanks: Klaus Wünschel).
- Fix MySQL4 version comment retrieval (Thanks: François Pietka)
- Fix error that occurred when outputting JSON and NULL data (Thanks: Thomas Roten).
- Prevent missing MySQL help database from causing errors in completions (Thanks: Thomas Roten).
- Fix mycli from crashing with small terminal windows under Python 2 (Thanks: Thomas Roten).
- Prevent an error from displaying when you drop the current database (Thanks: Thomas Roten).
- Use less memory when formatting results for display (Thanks: Dick Marinus).
- Preliminary work for a future change in outputting results that uses less memory (Thanks: Dick Marinus).
- Add fish-style auto-suggestion from history. (Thanks: Amjith Ramanujam)
- Handle reserved space for completion menu better in small windows. (Thanks: Thomas Roten).
- Display current vi mode in toolbar. (Thanks: Thomas Roten).
- Opening an external editor will edit the last-run query. (Thanks: Thomas Roten).
- Output once special command. (Thanks: Dick Marinus).
- Add special command to show create table statement. (Thanks: [Ryan Smith])
- Display all result sets returned by stored procedures (Thanks: Thomas Roten).
- Add current time to prompt options (Thanks: Thomas Roten).
- Output status text in a more intuitive way (Thanks: Thomas Roten).
- Add colored/styled headers and odd/even rows (Thanks: Thomas Roten).
- Keyword completion casing (upper/lower/auto) (Thanks: Irina Truong).
- Fixed incorrect timekeeping when running queries from a file. (Thanks: Thomas Roten).
- Do not display time and empty line for blank queries (Thanks: Thomas Roten).
- Fixed issue where quit command would sometimes not work (Thanks: Thomas Roten).
- Remove shebang from main.py (Thanks: Dick Marinus).
- Only use pager if output doesn't fit. (Thanks: Dick Marinus).
- Support tilde user directory for output file names (Thanks: Thomas Roten).
- Auto vertical output is a little bit better at its calculations (Thanks: Thomas Roten).
- Rename tests/ to test/. (Thanks: Dick Marinus).
- Move AUTHORS and SPONSORS to mycli directory. (Thanks: [Terje Røsten] []).
- Switch from pycryptodome to cryptography (Thanks: Thomas Roten).
- Add pager wrapper for behave tests (Thanks: Dick Marinus).
- Behave test source command (Thanks: Dick Marinus).
- Test using behave the tee command (Thanks: Dick Marinus).
- Behave fix clean up. (Thanks: Dick Marinus).
- Remove output formatter code in favor of CLI Helpers dependency (Thanks: Thomas Roten).
- Better handle common before/after scenarios in behave. (Thanks: Dick Marinus)
- Added a regression test for sqlparse >= 0.2.3 (Thanks: Dick Marinus).
- Reverted removal of temporary hack for sqlparse (Thanks: Dick Marinus).
- Add setup.py commands to simplify development tasks (Thanks: Thomas Roten).
- Add behave tests to tox (Thanks: Dick Marinus).
- Add missing @dbtest to tests (Thanks: Dick Marinus).
- Standardizes punctuation/grammar for help strings (Thanks: Thomas Roten).
- Add ability to specify alternative myclirc file. (Thanks: Dick Marinus).
- Add new display formats for pretty printing query results. (Thanks: Amjith Ramanujam, Dick Marinus, Thomas Roten).
- Add logic to shorten the default prompt if it becomes too long once generated. (Thanks: [John Sterling]).
- Fix external editor bug (issue #377). (Thanks: Irina Truong).
- Fixed bug so that favorite queries can include unicode characters. (Thanks: Thomas Roten).
- Fix requirements and remove old compatibility code (Thanks: Dick Marinus)
- Fix bug where mycli would not start due to the thanks/credit intro text. (Thanks: Thomas Roten).
- Use pymysql default conversions (issue #375). (Thanks: Dick Marinus).
- Upload mycli distributions in a safer manner (using twine). (Thanks: Thomas Roten).
- Test mycli using pexpect/python-behave (Thanks: Dick Marinus).
- Run pep8 checks in travis (Thanks: Irina Truong).
- Remove temporary hack for sqlparse (Thanks: Dick Marinus).
- Add tee/notee commands for outputing results to a file. (Thanks: Dick Marinus).
- Add date, port, and whitespace options to prompt configuration. (Thanks: Matheus Rosa).
- Allow user to specify LESS pager flags. (Thanks: [John Sterling]).
- Add support for auto-reconnect. (Thanks: [Jialong Liu]).
- Add CSV batch output. (Thanks: Matheus Rosa).
- Add
auto_vertical_outputconfig to myclirc. (Thanks: Matheus Rosa). - Improve Fedora install instructions. (Thanks: Dick Marinus).
- Fix crashes occuring from commands starting with #. (Thanks: [Zhidong]).
- Fix broken PyMySQL link in README. (Thanks: [Daniël van Eeden]).
- Add various missing keywords for highlighting and autocompletion. (Thanks: [zer09]).
- Add the missing REGEXP keyword for highlighting and autocompletion. (Thanks: [cxbig]).
- Fix duplicate username entries in completion list. (Thanks: [John Sterling]).
- Remove extra spaces in TSV table format output. (Thanks: Dick Marinus).
- Kill running query when interrupted via Ctrl-C. (Thanks: [chainkite]).
- Read the
smart_completionconfig from myclirc. (Thanks: Thomas Roten).
- Improve handling of test database credentials. (Thanks: Dick Marinus).
- Add Python 3.6 to test environments and PyPI metadata. (Thanks: Thomas Roten).
- Drop Python 2.6 support. (Thanks: Thomas Roten).
- Swap pycrypto dependency for pycryptodome. (Thanks: [Michał Górny]).
- Bump sqlparse version so pgcli and mycli can be installed together. (Thanks: [darikg]).
- Remove duplicate listing of DISTINCT keyword. (Thanks: Amjith Ramanujam).
- Add an try/except for AS keyword crash. (Thanks: Amjith Ramanujam).
- Support python-sqlparse 0.2. (Thanks: Dick Marinus).
- Fallback to the raw object for invalid time values. (Thanks: Amjith Ramanujam).
- Reset the show items when completion is refreshed. (Thanks: Amjith Ramanujam).
- Make the dependency of sqlparse slightly more liberal. (Thanks: Amjith Ramanujam).
- Add support for --execute/-e commandline arg. (Thanks: Matheus Rosa).
- Add
less_chattyconfig option to skip the intro messages. (Thanks: Scrappy Soft). - Support
MYCLI_HISTFILEenvironment variable to specify where to write the history file. (Thanks: Scrappy Soft). - Add
prompt_continuationconfig option to allow configuring the continuation prompt for multi-line queries. (Thanks: Scrappy Soft). - Display login-path instead of host in prompt. (Thanks: Irina Truong).
- Pin sqlparse to version 0.1.19 since the new version is breaking completion. (Thanks: Amjith Ramanujam).
- Remove unsupported keywords. (Thanks: Matheus Rosa).
- Fix completion suggestion inside functions with operands. (Thanks: Irina Truong).
- Add stdin batch mode. (Thanks: Thomas Roten).
- Add warn/no-warn command-line options. (Thanks: Thomas Roten).
- Upgrade sqlparse dependency to 0.1.19. (Thanks: Amjith Ramanujam).
- Update features list in README.md. (Thanks: Matheus Rosa).
- Remove extra \n in features list in README.md. (Thanks: Matheus Rosa).
- Enable history search via . (Thanks: Amjith Ramanujam).
- Upgrade
prompt_toolkitto 1.0.0. (Thanks: Jonathan Slenders)
- Change continuation prompt for multi-line mode to match default mysql.
- Add
statuscommand to match mysql'sstatuscommand. (Thanks: Thomas Roten). - Add SSL support for
mycli. (Thanks: Artem Bezsmertnyi). - Add auto-completion and highlight support for OFFSET keyword. (Thanks: Matheus Rosa).
- Add support for
MYSQL_TEST_LOGIN_FILEenv variable to specify alternate login file. (Thanks: Thomas Roten). - Add support for
--auto-vertical-outputto automatically switch to vertical output if the output doesn't fit in the table format. - Add support for system-wide config. Now /etc/myclirc will be honored. (Thanks: Thomas Roten).
- Add support for
nopagerand\nto turn off the pager. (Thanks: Thomas Roten). - Add support for
--local-infilecommand-line option. (Thanks: Thomas Roten).
- Remove -S from
lessoption which was clobbering the scroll back in history. (Thanks: Thomas Roten). - Make system command work with Python 3. (Thanks: Thomas Roten).
- Support \G terminator for \f queries. (Thanks: Terseus).
- Upgrade
prompt_toolkitto 0.60. - Add Python 3.5 to test environments. (Thanks: Thomas Roten).
- Remove license meta-data. (Thanks: Thomas Roten).
- Skip binary tests if PyMySQL version does not support it. (Thanks: Thomas Roten).
- Refactor pager handling. (Thanks: Thomas Roten)
- Capture warnings to log file. (Thanks: Mikhail Borisov).
- Make
syntax_stylea tiny bit more intuitive. (Thanks: Phil Cohen).
- Protect against port number being None when no port is specified in command line.
- Cast the value of port read from my.cnf to int.
-
Make a config option to enable
audit_log. (Thanks: Matheus Rosa). -
Add support for reading .mylogin.cnf to get user credentials. (Thanks: Thomas Roten). This feature is only available when
pycryptopackage is installed. -
Register the special command
promptwith the\Ras alias. (Thanks: Matheus Rosa). Users can now change the mysql prompt at runtime usingpromptcommand. eg:mycli> prompt \u@\h> Changed prompt format to \u@\h> Time: 0.001s amjith@localhost> -
Perform completion refresh in a background thread. Now mycli can handle databases with thousands of tables without blocking.
-
Add support for
systemcommand. (Thanks: Matheus Rosa). Users can now run a system command from within mycli as follows:amjith@localhost:(none)>system cat tmp.sql select 1; select * from django_migrations; -
Caught and hexed binary fields in MySQL. (Thanks: Daniel West). Geometric fields stored in a database will be displayed as hexed strings.
-
Treat enter key as tab when the suggestion menu is open. (Thanks: Matheus Rosa)
-
Add "delete" and "truncate" as destructive commands. (Thanks: Martijn Engler).
-
Change \dt syntax to add an optional table name. (Thanks: Shoma Suzuki).
\dt [tablename]will describe the columns in a table. -
Add TRANSACTION related keywords.
-
Treat DESC and EXPLAIN as DESCRIBE. (Thanks: spacewander).
- Fix the removal of whitespace from table output.
- Add ability to make suggestions for compound join clauses. (Thanks: Matheus Rosa).
- Fix the incorrect reporting of command time.
- Add type validation for port argument. (Thanks Matheus Rosa)
- Make pycrypto optional and only install it in *nix systems. (Thanks: Irina Truong).
- Add badge for PyPI version to README. (Thanks: Shoma Suzuki).
- Updated release script with a --dry-run and --confirm-steps option. (Thanks: Irina Truong).
- Adds support for PyMySQL 0.6.2 and above. This is useful for debian package builders. (Thanks: Thomas Roten).
- Disable click warning.
-
Add
sourcecommand. This allows running sql statement from a file.eg:
mycli> source filename.sql -
Added a config option to make the warning before destructive commands optional. (Thanks: Daniel West)
In the config file ~/.myclirc set
destructive_warning = Falsewhich will disable the warning before runningDROPcommands. -
Add completion support for CHANGE TO and other master/slave commands. This is still preliminary and it will be enhanced in the future.
-
Add custom styles to color the menus and toolbars.
-
Upgrade
prompt_toolkitto 0.46. (Thanks: Jonathan Slenders)Multi-line queries are automatically indented.
- Fix keyword completion after the
WHEREclause. - Add
\gand\Gas valid query terminators. Previously in multi-line mode ending a query with a\Gwouldn't run the query. This is now fixed.
-
Add a new special command (\T) to change the table format on the fly. (Thanks: Jonathan Bruno) eg:
mycli> \T tsv -
Add
--defaults-group-suffixto the command line. This lets the user specify a group to use in the my.cnf files. (Thanks: Irina Truong)In the my.cnf file a user can specify credentials for different databases and invoke mycli with the group name to use the appropriate credentials. eg:
# my.cnf [client] user = 'root' socket = '/tmp/mysql.sock' pager = 'less -RXSF' database = 'account' [clientamjith] user = 'amjith' database = 'user_management' $ mycli --defaults-group-suffix=amjith # uses the [clientamjith] section in my.cnf -
Add
--defaults-fileoption to the command line. This allows specifying amy.cnfto use at launch. This also makes it play nice with mysql sandbox. -
Make
-pand--passwordtake the password in commandline. This makes mycli a drop in replacement for mysql.
-
Add support for wider completion menus in the config file.
Add
wider_completion_menu = Truein the config file (~/.myclirc) to enable this feature.
- Prevent Ctrl-C from quitting mycli while the pager is active.
- Refresh auto-completions after the database is changed via a CONNECT command.
- Upgrade
prompt_toolkitdependency version to 0.45. - Added Travis CI to run the tests automatically.
- Change dictonary comprehension used in mycnf reader to list comprehension to make it compatible with Python 2.6.
- Fuzzy completion is now case-insensitive. (Thanks: bjarnagin)
- Added new-line (
\n) to the list of special characters to use in prompt. (Thanks: brewneaux) - Honor the
pagersetting in my.cnf files. (Thanks: Irina Truong)
- Fix a crashing bug in completion engine for cross joins.
- Make
<null>value consistent between tabular and vertical output.
- Changed pymysql version to be greater than 0.6.6.
- Upgrade
prompt_toolkitversion to 0.42. (Thanks: Yasuhiro Matsumoto) - Removed the explicit dependency on six.
- Customizable prompt. (Thanks Steve Robbins)
- Make
\Gformatting to behave more like mysql.
- Formatting issue in \G for really long column values.
- Upgrade
prompt_toolkitto 0.38. This improves the performance of pasting long queries. - Add support for reading my.cnf files.
- Add editor command \e.
- Replace ConfigParser with ConfigObj.
- Add \dt to show all tables.
- Add fuzzy completion for table names and column names.
- Automatically reconnect when connection is lost to the database.
- Fix a bug with reconnect failure.
- Fix the issue with
usecommand not changing the prompt. - Fix the issue where
\\rshortcut was not recognized.
- Add support for connecting via socket.
- Add completion for SQL functions.
- Add completion support for SHOW statements.
- Made the timing of sql statements human friendly.
- Automatically prompt for a password if needed.
- Fixed the installation issues with PyMySQL dependency on case-sensitive file systems.