Skip to content

Add a "copy as markdown" button for Table structure to be "AI prompt friendly" #172

@theoludwig

Description

@theoludwig

Hey!

AdminNeo is great for testing SQL queries, checking the data and interacting with database. 👍
I hope that the project will keep being maintained in the long-term. I personally find that AdminNeo is the best among all alternatives tools. Thank you for this project, it's really useful!

However, in our AI era, I often need to provide the database structure/tables structure in the prompt, so that the AI can help me write SQL queries.

For now, I do it "manually" by selecting with the mouse the structure, and then copy:

Image

However, I need to manually remove Select data, Show structure, Alter table, New item and format a bit to be "really usable".

A nice Quality Of Life improvement, could be to add a button "copy as markdown", which will copy the table structure, for example like that:

## Comments

| Column      | Type                       | Collation | Comment |
| :---------- | :------------------------- | :-------- | :------ |
| `id`        | `uuid [gen_random_uuid()]` |           |         |
| `userId`    | `uuid NULL`                |           |         |
| `content`   | `text`                     |           |         |
| `createdAt` | `timestamp [now()]`        |           |         |
| `updatedAt` | `timestamp NULL`           |           |         |
| `parentId`  | `uuid NULL`                |           |         |

Even outside of AI, it can be used for documentation or other purposes.

For reference another project implement this "copy markdown" button: https://tanstack.com/start/latest/docs/framework/react/overview

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions