Skip to content

Conversation

@faissaloux
Copy link
Contributor

Resolves #19945

@faissaloux faissaloux marked this pull request as ready for review December 15, 2025 11:21
Copy link
Contributor

@liviuconcioiu liviuconcioiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Also, you should update the code, since #19957 has been merged.

A few things:

Can you add this so it will be possible to change the separator and indent.

        $leaf = new TextPropertyItem(
            'separator',
            __('Columns separated with:'),
        );
        $generalOptions->addProperty($leaf);
        $leaf = new TextPropertyItem(
            'indent',
            __('Indent'),
        );
        $generalOptions->addProperty($leaf);

You should also make changes in src\Config\Settings\Export.php so the values can be seen when exporting and also be able to use them from config file

$cfg['Export']['toon_separator'] = '|';
$cfg['Export']['toon_indent'] = 4;

Also, can you add a small text to documentation import_export.rst - #export?

Thank you!

@williamdes williamdes added the Enhancement A feature request for improving phpMyAdmin label Dec 17, 2025
@faissaloux
Copy link
Contributor Author

@liviuconcioiu @williamdes indent and separator are now configurable.

Copy link
Contributor

@liviuconcioiu liviuconcioiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@faissaloux I left some comments.

  1. Add support for tab as delimiter - https://toonformat.dev/playground.html
  2. Renamed from Toon to TOON

Copy link
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the documentation review comments, it looks okay
Thank you !

Edit: rebase all your work please

@faissaloux faissaloux force-pushed the toon-export branch 2 times, most recently from 25ad49f to 440c403 Compare January 22, 2026 14:02
@faissaloux
Copy link
Contributor Author

@williamdes

Documentation updated, code rebased.

Copy link
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good for me, this is ready to merge I think
I will let @kamil-tekiela review one last time

public function exportRawQuery(string|null $db, string $sqlQuery): void
{
if ($db !== null) {
DatabaseInterface::getInstance()->selectDb($db);
Copy link
Member

@williamdes williamdes Jan 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is two calls to getInstance that are deprecated, at first glance I have no idea of what we migrated to.
But other files should say

Copy link
Contributor Author

@faissaloux faissaloux Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I have checked for this but found that all other classes uses the same deprecated method. I have found that it's ignored so I'll ignore it for this file too.

Should be fixed in another PR.

Copy link
Contributor

@kamil-tekiela kamil-tekiela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code quality-wise it looks ok. It's mostly copied and adapted from other plugins. I did not verify the logic or adherence to spec.

Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Signed-off-by: faissaloux <fwahabali@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement A feature request for improving phpMyAdmin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for TOON file format

6 participants