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

Copy/Paste friendly output format for MariaDB Command Line Client

    XMLWordPrintable

Details

    • New Feature
    • Status: In Testing (View Workflow)
    • Major
    • Resolution: Unresolved
    • 13.2
    • None

    Description

      A new client command \S which allows copy/paste friendly output format to the command line client. A requirement is that it also works on Windows, using a pager is therefor not an option

      Example:

      select concat('analyze table ', table_name, ';') from information_schema.tables where table_schema='test';
      

      generates

      +-------------------------------------------+
      | concat('analyze table ', table_name, ';') |
      +-------------------------------------------+
      | analyze table t_auto;                     |
      | analyze table t2;                         |
      | analyze table t1;                         |
      +-------------------------------------------+
      

      with \S:

      select concat('analyze table ', table_name, ';') from information_schema.tables where table_schema='test'\S
      

      generates

      analyze table t_auto;
      analyze table t2;
      analyze table t1;
      

      \S prints the result of that one statement without column names and without borders, the same output as --silent --skip-column-names. The next statement goes back to the normal format.

      Columns are separated by a tab.

      Attachments

        Issue Links

          Activity

            People

              ramesh Ramesh Sivaraman
              ralf.gebhardt Ralf Gebhardt
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 2d
                  2d
                  Remaining:
                  Time Spent - 1d 7h 38m Remaining Estimate - 22m
                  22m
                  Logged:
                  Time Spent - 1d 7h 38m Remaining Estimate - 22m
                  1d 7h 38m

                  Git Integration

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