From 378ada52b1edd0a2f023c13fb8adf7bb1d98a2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandbox=20=F0=9F=A4=96?= Date: 2022年1月12日 14:54:11 +0000 Subject: [PATCH] Triggered by direct commit. Origin: https://github.com/neo4j-contrib/sandbox-code-updater/commit/abc562ba5b5fb197c8cdbbe5cfb3d9576ecb134c --- code/csharp/Example.cs | 2 +- code/go/example.go | 2 +- code/java/Example.java | 2 +- code/javascript/example.js | 2 +- code/python/example.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/csharp/Example.cs b/code/csharp/Example.cs index 780b01a..c76ba17 100644 --- a/code/csharp/Example.cs +++ b/code/csharp/Example.cs @@ -13,7 +13,7 @@ namespace dotnet { class Example { static async Task Main() { - var driver = GraphDatabase.Driver("bolt://:", + var driver = GraphDatabase.Driver("neo4j://:", AuthTokens.Basic("", "")); var cypherQuery = diff --git a/code/go/example.go b/code/go/example.go index 405b065..e709d60 100644 --- a/code/go/example.go +++ b/code/go/example.go @@ -10,7 +10,7 @@ import ( ) func main() { - results, err := runQuery("bolt://:", "neo4j", "", "") + results, err := runQuery("neo4j://:", "neo4j", "", "") if err != nil { panic(err) } diff --git a/code/java/Example.java b/code/java/Example.java index 3857d62..001b59c 100644 --- a/code/java/Example.java +++ b/code/java/Example.java @@ -11,7 +11,7 @@ public class Example { public static void main(String...args) { - Driver driver = GraphDatabase.driver("bolt://:", + Driver driver = GraphDatabase.driver("neo4j://:", AuthTokens.basic("","")); try (Session session = driver.session(SessionConfig.forDatabase("neo4j"))) { diff --git a/code/javascript/example.js b/code/javascript/example.js index 43202c3..b24be92 100644 --- a/code/javascript/example.js +++ b/code/javascript/example.js @@ -1,7 +1,7 @@ // npm install --save neo4j-driver // node example.js const neo4j = require('neo4j-driver'); -const driver = neo4j.driver('bolt://:', +const driver = neo4j.driver('neo4j://:', neo4j.auth.basic('', ''), {/* encrypted: 'ENCRYPTION_OFF' */}); diff --git a/code/python/example.py b/code/python/example.py index 16e5c55..4d17dbb 100644 --- a/code/python/example.py +++ b/code/python/example.py @@ -4,7 +4,7 @@ from neo4j import GraphDatabase, basic_auth driver = GraphDatabase.driver( - "bolt://:", + "neo4j://:", auth=basic_auth("", "")) cypher_query = '''

AltStyle によって変換されたページ (->オリジナル) /