Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Test using a named database
Browse files Browse the repository at this point in the history
  • Loading branch information
James Holtom committed Jul 20, 2020
1 parent 0234cdc commit f512eb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/docker/neo4j/initdb.gql
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:USE system;
CREATE DATABASE testdb IF NOT EXISTS;
:USE testdb;

CREATE CONSTRAINT ON (n:Movie) ASSERT n.title IS UNIQUE;
CREATE CONSTRAINT ON (n:Movie) ASSERT exists(n.title);
CREATE CONSTRAINT ON (n:Person) ASSERT n.name IS UNIQUE;
Expand Down
1 change: 1 addition & 0 deletions test/expected/000_create_foreign_database.out
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CREATE SERVER multicorn_neo4j FOREIGN DATA WRAPPER multicorn
OPTIONS (
wrapper 'neo4jPg.neo4jfdw.Neo4jForeignDataWrapper',
url 'bolt://neo4j:7687',
database 'testdb',
user 'neo4j',
password 'admin'
);
Expand Down

0 comments on commit f512eb0

Please sign in to comment.