Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: SQL Database (MariaDB, MySQL) - Database Label #791

Open
datgausaigon opened this issue May 19, 2024 · 2 comments
Open

FEAT: SQL Database (MariaDB, MySQL) - Database Label #791

datgausaigon opened this issue May 19, 2024 · 2 comments

Comments

@datgausaigon
Copy link

Hi, I use MariaDB to many project with many "Database(s)" (100-200) per Database Server (DbGate "Connection").

For security our Database Server administrators name Database Schema Names that are long and difficult to read. For example:
yourdomaincom_YWExYzdmYTFhZDcyY2_dbname

Can you add an additional feature to label the Database Schema Name?

  • Labeled databases will have a different color than unlabeled databases (add a red square in front, for example)
  • Click to view details to see the real name of the Database, or click on the icon showing that this Database has a Label to display information, Database Label, Database Real Name, Edit/Delete Database Label
  • SQL and other features similar to the Database must still use the physical name of the Database. Label is only used for viewing and management.
  • We will have convenience in management and safety in Database management
    Database Real Name: yourdomaincom_YWExYzdmYTFhZDcyY2_dbname
    Database Label: Your Domain Database

I found your Connections configuration in /Users/{username}/.dbgate --> File connections.jsonl
Can we develop further from this configuration?

Label is just an instance definition to view and manage Database using DbGate. Very helpful.

Thanks ❤️

Screenshot 2024-05-19 at 17 59 27

@datgausaigon
Copy link
Author

Hi, I got the "Set Database Color" feature of you. I think this feature can develop from this.

Screenshot 2024-05-19 at 18 06 03
Screenshot 2024-05-19 at 18 05 36
Screenshot 2024-05-19 at 18 07 21

@ProjectInfinity
Copy link
Collaborator

I'm trying to wrap my head around this. Why would having database names be so complicated increase security in any way? I think personally whoever designed this has worked you into a corner and it's quite the edge case.

Could perhaps another solution for you be to create separate connections for databases you use and label them accordingly using "display name"? That way you just set the "default database" field to whatever complicated name you wish to use.

It's not ideal but neither is your setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants