diff --git a/CHANGELOG.md b/CHANGELOG.md index edc63c2c..609c03e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [0.3.0] ### Added - Don't show Cypher autocompletion in comments (#4) - Support existential and count subqueries (#24) +- Support connections to named databases ## [0.2.2] diff --git a/database/neo4j/src/main/java/com/albertoventurini/graphdbplugin/database/neo4j/bolt/Neo4jBoltDatabase.java b/database/neo4j/src/main/java/com/albertoventurini/graphdbplugin/database/neo4j/bolt/Neo4jBoltDatabase.java index ea5cce30..3d5a2fa5 100644 --- a/database/neo4j/src/main/java/com/albertoventurini/graphdbplugin/database/neo4j/bolt/Neo4jBoltDatabase.java +++ b/database/neo4j/src/main/java/com/albertoventurini/graphdbplugin/database/neo4j/bolt/Neo4jBoltDatabase.java @@ -45,6 +45,7 @@ public Neo4jBoltDatabase(Neo4jBoltConfiguration configuration) { final String authType = configuration.getAuthType(); final String protocol = configuration.getProtocol(); + final String database = configuration.getDatabase(); if (protocol == null) { if (host.startsWith("bolt://") || host.startsWith("bolt+routing://")) { @@ -62,8 +63,8 @@ public Neo4jBoltDatabase(Neo4jBoltConfiguration configuration) { auth = AuthTokens.none(); } - if (configuration.getDatabase() != null) { - dbConfig = SessionConfig.forDatabase(configuration.getDatabase()); + if (database != null && !database.trim().isEmpty()) { + dbConfig = SessionConfig.forDatabase(database); } else { dbConfig = SessionConfig.defaultConfig(); } diff --git a/gradle.properties b/gradle.properties index aee5c4f0..fb591301 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ intellijSdkVersion=2022.2 # intellijSdkVersion=LATEST-EAP-SNAPSHOT # Versions -versionGradleIntelliJ=1.10.0 +versionGradleIntelliJ=1.10.1 versionGradleChangelog=2.0.0 versionJunit=4.12 versionAssertj=3.23.1 diff --git a/platform/src/main/resources/graphdb/messages/GraphBundle.properties b/platform/src/main/resources/graphdb/messages/GraphBundle.properties index 43f99e84..38a9c4a7 100644 --- a/platform/src/main/resources/graphdb/messages/GraphBundle.properties +++ b/platform/src/main/resources/graphdb/messages/GraphBundle.properties @@ -1,3 +1,5 @@ updater.title=Graph Database plugin updated to v{0} updater.notification=\ - Add support for Cypher EXISTS and COUNT subqueries. Disable highlighting in Cypher comments. + Add support for Cypher EXISTS and COUNT subqueries. \ + Disable highlighting in Cypher comments. \ + Support connections to named databases.