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

Discover dolt databases on a computer #7163

Open
danielsiegl opened this issue Dec 14, 2023 · 4 comments
Open

Discover dolt databases on a computer #7163

danielsiegl opened this issue Dec 14, 2023 · 4 comments
Labels

Comments

@danielsiegl
Copy link

danielsiegl commented Dec 14, 2023

For my scenarios it would be helpful if dolt knew which databases are on a computer!

something like dolt discover listing all available databases (or recently used)

@danielsiegl
Copy link
Author

I want this because I want to make the process of opening a dolt database easy from a COTS Applicaiton (Sparx Systems Enterprise Architect).

I need to locate the database and run the dolt sqlserver interface for a specific database.

An alternative would be if the SQL Interface can be started and only then via connection string (e.g. full path) attached to a dolt database.

@timsehn timsehn added enhancement New feature or request cli labels Dec 14, 2023
@timsehn
Copy link
Contributor

timsehn commented Dec 14, 2023

Interesting idea. I'm not sure how we would implement it but let us discuss internally.

There's two things possible:

  1. Detecting running servers. Look at open ports and probe whether they are dolt ports (not sure if we can do this)
  2. Take a path and look for .dolt directories.

@danielsiegl
Copy link
Author

@timsehn probably you would have to keep a list of all previously used databases on a machine somewhere

@timsehn
Copy link
Contributor

timsehn commented Dec 14, 2023

That's another option, we could stick the list in the users ~/.dolt configuration.

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

No branches or pull requests

3 participants