Skip to content

Console with absolute path to DB? #761

Closed

Description

@gfinger

ArcadeDB Version: arcadedb-console-23.1.1-SNAPSHOT

JDK Version: SapMachine 19.0.1

OS: MacOS

Expected behavior

I want to connect the console to a local database with an absolute path from the root directory.
connect /Users/d022051/Arcadedb/ontology

Actual behavior

I get the error ERROR: Database './databases//Users/d022051/Arcadedb/ontology' not exists

Wouldn't it be possible to allow the console to also use an absolute path? Perhaps prefixed with local: ?

Activity

  1. lvca commented on Jan 11, 2023

    @lvca
    Member

    With the latest 23.1.1 it's possible to set a different path for the database folder:

    ./console.sh -Darcadedb.server.databaseDirectory=/Users/d022051/Arcadedb
    

    And then you can open your database from the console with:

    connect ontology
    

    But I have to admit that supporting paths in the URL would be very useful.

  2. self-assigned this
    on Jan 11, 2023
  3. gfinger commented on Jan 11, 2023

    @gfinger
    ContributorAuthor

    Hi Luca, I am still on 22.12.1, not on 23.1.1. Sorry for that error. I thin I will wait until 23.1.1 is in the Maven repository and test the databaseDirectory parameter than.
    When the console has the flexibility to use an externally set databaseDirectory it should be not to difficult to add the possibility for a local-URL.
    Gregor

  4. gfinger commented on Jan 11, 2023

    @gfinger
    ContributorAuthor

    Hi Luca,
    I have made a change to Console.java to accept local connection urls and added also a unit test for this feature. Should I create a pull-request from a forked repository?
    Ciao
    Gregor

  5. lvca commented on Jan 11, 2023

    @lvca
    Member

    Absolutely, waiting for your PR!

  6. added this to the 23.1.2 milestone on Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions