-
-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Description
ArcadeDB Version: ArcadeDB Server v23.1.1 (build aa687e4/1673895089679/main)
JDK Version: OpenJDK (zsrc11.54.25-jdk11.0.14.1) [I think]
OS: Windows 11 Home (21H2)
Expected behavior
Running queries creates new nodes.
Actual behavior
Running CREATE queries doesn't create new nodes BUT does correctly update the schema (checked through the web Arcade Studio).
Related behaviour
- Inside my project, read queries work and correctly show output
- In Arcade Studio,
CREATEqueries work
Steps to reproduce
Requirements
- Have a golang project
- Run ArcadeDB with the Postgres plug-in
- Have a graph database called
test - Install the
pqpackage referenced in the ArcadeDB docs
Steps
- Open new database connection
newDb, err := sql.Open("postgres", "user=root password=xxx dbname=test sslmode=disable") - Type your write cypher script
cypher := "{cypher} CREATE (n:Foo) RETURN n;" - Run the query
newDb.Exec(cypher)ornewDb.Query(cypher)
Further notes
Maybe this is something simple like enclosing the queries in transactions or comiting? However, I also tried:
- Running a
:commitquery after, did not change anything - Suffixing
:committo the query itself, did not change anything - Trying to run
newDb.Begin()fails because of some weird error. I guess this is because somehow that doesn't work with cypher queries or a graph database?
Reactions are currently unavailable