neo4jrb / activegraph

An active model wrapper for the Neo4j Graph Database for Ruby.
http://neo4jrb.io
MIT License
1.4k stars 277 forks source link

Feature Request: Support specifying neo4j database #1651

Open yourpalal opened 3 years ago

yourpalal commented 3 years ago

Neo4j 4.0+ (enterprise) supports multiple databases.

It seems this is not super complicated, you just need to send a cypher USE <database> command to switch to the right database.

This would be really helpful for running both a test and dev database locally with a single instance of neo4j, similar to how ActiveRecord uses test/dev databases by default.

amitsuryavanshi commented 3 years ago

@yourpalal Thanks for reporting. We will add this in Feature list.

yourpalal commented 3 years ago

The relevant issue on neo4j-ruby-driver appears to be https://github.com/neo4jrb/neo4j-ruby-driver/issues/48