You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/modules/ROOT/pages/management-ops/create-cypher-db.adoc
+30-6Lines changed: 30 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
[[create-cypher-db]]
1
+
[[cypher-on-gds]]
2
2
= Cypher on GDS graph
3
3
:description: This chapter explains how to execute Cypher queries on named graphs in the Neo4j Graph Data Science library.
4
4
@@ -23,14 +23,13 @@ That database will then use data from the projected graph as compared to the sto
23
23
Although it is possible to execute arbitrary Cypher queries on the database created by the `gds.alpha.create.cypherdb` procedure, not every aspect of Cypher is implemented yet.
24
24
Some known limitations are listed below:
25
25
26
-
* Dropping the newly created database
27
-
** Restarting the DBMS will remove the database instead
28
-
* Writes
29
-
** All queries that attempt to write things, such as nodes, properties or labels, will fail
26
+
* Some writes will fail
27
+
** Creating new nodes and adding node labels
28
+
** Everything related to relationships
30
29
31
30
32
31
[[create-cypher-db-syntax]]
33
-
== Syntax
32
+
== Create database syntax
34
33
35
34
[.create-cypher-db-syntax]
36
35
--
@@ -157,3 +156,28 @@ MATCH (n:Person)-[:KNOWS]->(m:Person) RETURN n.age AS age1, m.age AS age2
157
156
|===
158
157
159
158
We can see that the returned ages correspond to the structure of the original graph.
159
+
160
+
161
+
[[drop-cypher-db]]
162
+
== Dropping a GDS database
163
+
164
+
As described above, in-memory GDS databases are impermanent and will be removed when the DBMS is shut down.
165
+
If we need to drop the GDS database earlier, there are 2 ways to achieve this:
166
+
1. Using an administrative cypher command against the system database (`DROP DATABASE <db-name>`)
167
+
2. Using the <<drop-cypher-db-procedure-syntax, `gds.alpha.drop.cypherdb`>> procedure
0 commit comments