Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-12192

Shell-style alias/unalias commands for MariaDB client

Details

    Description

      mariadb client should support alias creation and removing of aliases via unalias.
      Example of use case:

      MariaDB [(none)]> alias x="select 1";
      MariaDB [(none)]> alias
      alias x = 'select 1'
      MariaDB [(none)]> x;
      +---+
      | x|
      +---+
      | 1 |
      +---+
      # Remove alias
      MariaDB [(none)]> unalias x;
      

      Attachments

        Issue Links

          Activity

            anel After discussing with serg, we believe the idea has its merit. Can you pick up this task when there isn't anything else burning and see if you can make use of Nirbhay's PR and address Svoj's comments?

            Then assign it to me for Review.

            cvicentiu Vicențiu Ciorbaru added a comment - anel After discussing with serg , we believe the idea has its merit. Can you pick up this task when there isn't anything else burning and see if you can make use of Nirbhay's PR and address Svoj's comments? Then assign it to me for Review.
            ralf.gebhardt Ralf Gebhardt added a comment -

            Will there be implemented a shortcut /a ? How will an alias be removed?
            I like the way https://www.mycli.net/favorites is doing it with explicit commands for saving and removing and alias. I also think that the term "favorite" matches the use case better.

            ralf.gebhardt Ralf Gebhardt added a comment - Will there be implemented a shortcut /a ? How will an alias be removed? I like the way https://www.mycli.net/favorites is doing it with explicit commands for saving and removing and alias. I also think that the term "favorite" matches the use case better.

            Hi ralf.gebhardt,
            have updated the description.
            There has been some work on argument passing, but will take a look of shortcuts.

            anel Anel Husakovic added a comment - Hi ralf.gebhardt , have updated the description. There has been some work on argument passing, but will take a look of shortcuts.

            People

              cvicentiu Vicențiu Ciorbaru
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.